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

Reply via email to