Thanks Wietse, In order to run multiple postfix instances on a single host, I read in the http://www.postfix.org/MULTI_INSTANCE_README.html that we need to upgrade the Postfix to 2.6 and preferably to 2.7.3
This would take us some time to evaluate, so maybe the simplest thing is to clone the machine and configure another mail host. A more educational experience will be getting the source and building my own package for redhat. (yum update doesn't work) Igal -----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema Sent: Wednesday, March 09, 2011 2:30 AM To: Postfix users Subject: Re: rewrite the from based on a client hostname or ip 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