Katzir, Igal:
> Hi Postfix Users,
> 
> We are running a couple of postfix servers version 2.3.x which
> mainly relay notification messages to our customers.
> The various application servers which trigger notifications are
> not consistent so we are rewriting the mail <from> field with
> these two tables:
> sender_canonical_maps = hash:/etc/postfix/mail_rewrite
> smtp_generic_maps = hash:/etc/postfix/generic
> 
> Now the problem:
> We have one customer which host the application for his partners
> so he wishes that all mail coming from this specific app. Server
> will have a fixed address.
> Can I create a rule where all mail coming from one / two servers
> will have a specific <from> address?

The simplest is to set up a dedicated Postfix instance on a dedicated
IP address, with sender canonical mapping to a fixed sender address.

http://www.postfix.org/MULTI_INSTANCE_README.html makes the first
part easy. For the second part, use "sender_canonical_maps =
regexp:/some/where/mail_rewrite.regexp", with contents like:

/./ REPLACE usern...@example.com

        Wietse

Reply via email to