On 2008-08-27, Jeff Jansen wrote: > > I have a number of .courier files pointing to external email > > addresses and I would like to rewrite the From_ line to avoid > > SPF blocking on destination mail servers that use SPF checking.
> By "From_" line do you mean the SMTP envelope "MAIL FROM:"? If so then > I think you could simply change your .courier to be > > | sendmail -f <some-good-address> [EMAIL PROTECTED] > > That would pump the message back out through sendmail, but with a > different "MAIL FROM:" I haven't tried this, so YMMV, as they say. ;-) Yes, brilliantly simple, thank you for that hint, it works :-) So the above can be used to prevent SPF blocking on remote servers, from locally forwarded aliases, assuming the remote server checks for MAILFROM using the equivalent of couriers mailfromok... # grep mailfromok /etc/courier/bofh opt BOFHSPFFROM=pass,unknown,error,none,neutral,mailfromok and this in /etc/courier/smtpaccess/default will whitelist a remote server from any SPF checks for incoming messages that would otherwise fail an SPF check, because it was forwarded through that remote server... 192.168.1.100<TAB>allow,BOFHSPFMAILFROM=off,BOFHSPFFROM=off,BOFHCHECKDNS=0,BOFHCHECKHELO=0 Whew, this mostly takes care of (my) SPF problems caused by forwarding. Thanks to all for your patience and help! --markc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
