Hello, I want to use multiple relayhost parameter because i want to use more than one relay to send emails. My serve will handle emails for only one domain. My need is to have multiple relayhost.
Thanks, Wilson -----Mensagem original----- De: Noel Jones [mailto:njo...@megan.vbhcs.org] Enviada em: quinta-feira, 2 de julho de 2009 22:17 Para: Wilson A. Galafassi Jr.; postfix-us...@cloud9.net Assunto: Re: single domain - multiple smtp relayhosts Wilson A. Galafassi Jr. wrote: > Hello to all, > > I need to configure postfix to use multiple smtp relayhosts for a single > domain. > > This is possible? How? > Your question is not entirely clear, so I'm going to answer as if "single domain" refers to a single outbound destination, with other outbound domains delivered directly. Use transport_maps and MX records to direct mail to the group of hosts you want, or use multiple /etc/hosts entries. An example: # main.cf - tell postfix to use a transport table transport_maps = hash:/etc/postfix/transport # transport - domains that get special treatment example.com smtp:example.local # /etc/hosts - host <> IP mapping 10.1.2.2 example.local 10.1.2.3 example.local Or you can define example.local in your local DNS server. http://www.postfix.org/transport.5.html -- Noel Jones