On 2017-12-01 16:17, Bill Cole wrote:
On 1 Dec 2017, at 8:44 (-0500), Tom Hendrikx wrote:

You're mistaken about postfix. It does not rewrite the From headers in
the way you describe, unless you explicitly configured it to.

It will if it is very old (<2.2) OR if it has an organically-evolved
configuration that has maintained backward-compatibility since 2.1. It
is also possible in a "Before-Queue Content Filter" smtpd-proxy
configuration that is commonly used with amavisd, if the after-filter
smtpd isn't prevented from treating its input as local (see
documentation of append_at_myorigin, which is on by default)

You should
change your postfix configuration, or verify the input data that postfix receives (maybe the addresses were already malformed before they entered
your system?

The easy way to catch these messages is to set your machine name to some
domain that never receives mail.

That's a good fix for a broader range of misbehaviors.

Thank you Tom for your suggestions. I implemented a rule matching my local servername which works great. And thank you Bill for the clarification. I indeed use amavisd as a before-queue content filter and this is exactly the reason why the From header looks like this.

all solved!
Simeon

Reply via email to