Martin Strand wrote:
Is it possible to make a header_checks rule apply only to a certain client?

I've got an annoying piece of software which sends messages through Postfix.
This software insists on including a "Sender" header that I wish to filter out 
with Postfix, but only for this certain client (or the envelope sender, which is always 
the same)
Unfortunately, fixing the software is not an option :(
Any tips?

If you want to change the sender's email address for the message, you can use

smtp_generic_maps = hash:/etc/postfix/generic

In main.cf

and add the address translation to

/etc/postfix/generic

(don't forget to postmap and reload config)

If you really want to not deliver it, you can add:

badsen...@yourdomain.tld    error:mail from badsender is not deliverable

to your transport table.

Terry




Terry




Reply via email to