Ricardo Kleemann writes:

Hi,

I see I'm getting some delivery SPF rejections for couriermlm recipients.
This is because the list messages go out with the sender's address, which
is external.

\>> That's incorrect. Messages distributed by couriermlm have couriermlm's
return address set, so that bounces go back to couriermlm to process.

How can I fix this? Is the only way to have the sender address forced to
be of the same domain as the list domain?

That is already the case, provided that you set the ADDRESS configuration
setting properly.

Ok, I do have ADDRESS setup as the list address... but then why am I getting SPF errors in the log?

For example,

Nov 6 10:24:25 email1 courieresmtp: id=0000000000008870.0000000049133083.0000128B,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: 550 <my IP address> does not pass SPF requirements for domain <sender's email address>

See, it's your domain that's used as the return address (from=).

What the recipient's mail server is doing apparently is checking the contents of the From: header. Utterly assinine. The only thing you can do is have couriermlm remove the From: header from all outgoing messages. That can be done by setting headerdel (with an optional headeradd to add a generic
From header), but that would make your list completely useless.

It's possible that what's happening is that they're trying to check SPF for the return address, you do not have an SPF record defined for your domain, so they try to check the message's From: header. That's what Courier actually does -- it checks the return address against SPF. If an SPF record exists for the return address's domain, it is used to validate the message and the From: header gets ignored. If no SPF record is set for the sender's domain, the From: header's domain gets checked.

Try adding an SPF record for your domain.

Attachment: pgpKvSh1R2Xmm.pgp
Description: PGP signature

-------------------------------------------------------------------------
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

Reply via email to