Marc Silver wrote: > Hi guys, > > I have two (probably) very simple questions for you Postfix gurus. > > Firstly, I was wondering if there's a Postfix equivalent of the 'exim > -bt <address>' command in Exim? This command shows the specific route > that the MTA would use to deliver the message for the given > recipient. An example of the output can be seen below: > > [EMAIL PROTECTED] exim]# exim -bt [EMAIL PROTECTED] > [EMAIL PROTECTED] > router = dnslookup, transport = remote_smtp > host smtp3.google.com [64.233.183.25] MX=10 > host smtp4.google.com [72.14.221.25] MX=10 > host smtp2.google.com [64.233.167.25] MX=10 > host smtp1.google.com [209.85.237.25] MX=10 > > [EMAIL PROTECTED] exim]# exim -bt [EMAIL PROTECTED] > [EMAIL PROTECTED] > router = forcepath, transport = remote_smtp > host 172.24.125.11 [172.24.125.11]
There is no such command in Postfix. Postfix uses "best way". Deliver via (local|virtural|etc.) if local. Relay via relayhost or direct if not. > > Secondly, is there a way to specify multiple hosts in a > transport_map? Ie, can I have mail send to one host and/or > balance/failover to another if the primary host is unavailable? > There is no such balancing in Postfix itself. However, local DNS entries can be used to provide multiple routes. The first transport map entry always wins. No further entries are checked once a match is found. Brian