http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4834
Summary: Patch: SA 3.1.1 "make test" fails in jail on FreeBSD
5.2.1-RELEASE
Product: Spamassassin
Version: 3.1.1
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P3
Component: Building & Packaging
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
SA 3.1.1, perl 5.8.7 on FreeBSD 5.2.1-RELEASE.
Assorted spamd/spamc tests fail during "make test" if run within jails on
FreeBSD 5.2.1-RELEASE (and I suspect other releases). This is because jailed
processes cannot open TCP connections with a source address of 127.0.0.1, only
the jail assigned address. In this case, spamd rejects the connections from the
testing spamc process because they come from an apparently external address.
To fix this, the start_spamd sub needs to allow the use of "-A <ipaddress>".
This is mutually exclusive with --socketpath.
I've done this by using $spamdhost. I've modified it to use dotted-quad
addressing (which breaks spamc_l.t, see below) and included "-A $spamdhost" in
each call to start spamd, except where we use local sockets. This allow us to
use:
make test SPAMD_HOST=172.16.3.180
to offer the correct IP address to spamd/spamc when testing. This may need
documenting.
The above patch breaks spamc_l.t. The fix is fairly cosmetic, to check for the
correct error string.
If accepted this patch might be considered for backporting to earlier versions
of SA.
Patch will be attached.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.