Bug 6842 - Spamc should have an option to only try v4 addresses when hostnames are specified with -d.
Summary: Spamc should have an option to only try v4 addresses when hostnames are speci...
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: 3.3.2
Hardware: PC Mac OS X
: P2 blocker
Target Milestone: 3.4.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 05:58 UTC by Dan Mahoney
Modified: 2013-01-17 01:11 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status
Add options -4 and -6 to spamc patch None Mark Martinec [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Mahoney 2012-09-26 05:58:35 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.
Comment 1 Mark Martinec 2012-10-02 00:23:07 UTC
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.
Comment 2 Mark Martinec 2013-01-17 01:11:13 UTC
Done, closing.