Mark Constable wrote:
On 25 Jan 2008 16:29, Alessandro Vesely wrote:
The include:spf.messagelabs.com actually evaluates
spf.messagelabs.com, which happens to have a TXT rec
"v=spf1 exists:%{ir}.nets.messagelabs.com"
In the macro, "i" stands for IP, "r" for reverse, thus
that becomes "exists:83.241.82.216.nets.messagelabs.com".
That record actually exists (127.0.0.2), thus the test
should have passed, as far as the MAILFROM is concerned.
That's very informative, excellent, thank you.
Hm... looking closer it may be wrong or different than what
I thought it was. In facts, testing it at mine I get this:
wmail-505# cd ..
wmail-506# cd rfc1035
wmail-507# ./testspf -h
Usage: ./testspf mailfrom remoteip remotehost helo me
wmail-508#
wmail-508# ./testspf "[EMAIL PROTECTED]" "216.82.241.83" "" "" ""
fail: Address does not pass the Sender Policy Framework
wmail-509#
wmail-509#
wmail-509# !!
./testspf "[EMAIL PROTECTED]" "216.82.241.83" "" "" ""
fail: Address does not pass the Sender Policy Framework
wmail-510# ./testspf "[EMAIL PROTECTED]" "::ffff:216.82.241.83"
"" "" ""
fail: Address does not pass the Sender Policy Framework
What's wrong? The program queries "nets.messagelabs.com",
i.e. the "%{ir}" macro results in a null string expansion.
After tinkering a bit I applied the attached patch and the same
command line above this time gave a "pass". You may have the same
problem, if it hasn't been already fixed.
--
--- spf.original.c 2006-04-13 01:00:49.000000000 +0200
+++ spf.c 2008-01-26 16:21:19.000000000 +0100
@@ -1390,7 +1390,7 @@
** number, but MUST support at least a value of 9.
*/
- if (transformer_count > n)
+ if (transformer_count > n || transformer_count <= 0)
transformer_count=n;
if (transformer_reverse)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users