Mark Constable writes:
On 16/02/11, Sam Varshavchik wrote: > > Received-SPF: error (DNS MX lookup failed.?) > > SPF=FROM; > > sender=po...@pobox.com; > > remoteip=::ffff:64.74.157.115; > > remotehost=; > > helo=support.icgroup.com; > > receiver=mail.spiderweb.com.au; > > > > The above is courier 0.60.0 with this bofh... > > > > opt BOFHBADMIME=accept > > opt BOFHSPFHELO=pass,none,neutral,softfail,unknown,error > > opt BOFHSPFMAILFROM=pass,none,neutral,softfail,unknown,error > > opt BOFHSPFFROM=pass,none,neutral,softfail,unknown,error,mailfromok > > opt BOFHSPFTRUSTME=1 > > opt BOFHSUPPRESSBACKSCATTER=smtp,authsmtp > > I just sifted through the code. I believe that when a DNS lookup fails, > the resulting status is "error", and not "softfail", so you really need > the following patch. > > I think I can put together a test scenario in the next day or two -- > set up a fake subdomain on one of my domain with an NS record pointing > to a bogus IP address. That should reliably result in a DNS lookup error > resolving the given domain. > > Stay tuned… > > diff -U3 -r1.74 submit.C > --- courier/submit.C 12 Oct 2010 00:27:55 -0000 1.74 > +++ courier/submit.C 16 Feb 2011 02:56:53 -0000 > @@ -887,7 +887,8 @@ > return 1; > } > frominfo.receivedspfmailfrom=&receivedspfmailfrom; > - if (strcmp(result, "pass") == 0) > + if (strcmp(result, "pass") == 0 || > + strcmp(result, "error") == 0) > frominfo.mailfrom_passed_spf=1; > }Sorry to bother you Sam but this problem is impacting even more clients than I thought and I'm stuck on older Debian systems which I can't upgrade until I physically get near the server. IOW I can't really test this myself. Any progress or workarounds until an official solution?
The above code is the code that's currently in, and will be in the next release.
pgpqIxkaGSw9P.pgp
Description: PGP signature
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users