Neil wrote:
On Wed, Jan 14, 2009 at 5:01 AM, Gilles Albusac
<gilles.albu...@wanadoo.fr> wrote:
Is it possible to set up Postfix to choose an SMTP relayhost when routing
outbound mail based on the domain name of the sender ?


If you're okay with using addresses instead of domains, I think
sender_dependent_relayhost_maps might do the trick for you.
If you mean recipient domain, this will work:


/etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport


/etc/postfix/transport:
army.mil smtp:smtp.yourisp.com
fussymx.com smtp:mail.whoevertheytalkto.com

Don't forget to "postmap transport"


If you really mean sender, I'm not sure what you would use.


Terry



--
Terry Carmen
CNY Support, LLC

315.382.3939
http://cnysupport.com

Reply via email to