You just need to mention one domain on your transport maps and then configure dns to have multiple MX records for same domain.
Don't forget to add the priority number for its host.
Postfix will automatically discover those mx records for you.

e.g.
mail.test.com
   IN   MX   10   mailserver1.test.com
   IN   MX   20   mailserver2.test.com

Bill

Noel Jones wrote:
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