|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Terry Carmen (terry
cnysupport.com)
Date: Mon Mar 23 2009 - 09:28:03 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:
badsender
yourdomain.tld error:mail from badsender is not deliverable
to your transport table.
Terry
Terry
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]