SA Bugzilla – Bug 6842
Spamc should have an option to only try v4 addresses when hostnames are specified with -d.
Last modified: 2013-01-17 01:11:13 UTC
This is a pretty simple enhancement. Imagine a setup where spamd lives on a different host, but because of a previously-filed-bug, only listens on one address class -- and the admin has chosen to use v4. (Perhaps by specifying -i without an ip address). What I'm suggesting is an enhancement to discard AAAA records from the semantics used to look up addresses for -d. This is useful both where v4 connectivity is more stable than v6 (for example, when tunnels are in play), while still benefitting from the benefits of hostname-mapping rather than embedding an ip in a config file.
Created attachment 5096 [details] Add options -4 and -6 to spamc Bug 6842 - Spamc should have an option to only try v4 addresses when hostnames are specified with -d ... implemented options -4 and -6 to spamc Sending spamc/libspamc.c Sending spamc/libspamc.h Sending spamc/spamc.c Committed revision 1392699. > This is a pretty simple enhancement It turned out not to be so trivial, lots of details to handle :) Please try it out: either the spamc from trunk, or apply the attached patch to earlier versions.
Done, closing.