Charles Marcus wrote:
Hi,
I know this is simple, but I never had to do it, so wanna check myself...
For outbound mail, do transport entries supersede the relayhost
parameter in main.cf?
The reason I ask is, currently, I relay all outbound mail through our
outsourced anti-spam service (smtp.example1.com).
We are having a problem sending to one domain, and until we get this
resolved, I want to relay just mail destined for that one domain through
our ISP (example2.com) - the rest should still go through our current
relay, smtp.example1.com.
Currently, in main.cf I simply have:
relayhost = [smtp.example1.com]
I think all I need to do is add a single entry to my transport file, as:
problem-destination.com relay:[smtp.example2.com]
Is this correct?
It looks as if you already consulted the documentation and
just want to confirm your interpretation of it. That's good,
but say so next time or you'll just be pointed back to the docs.
Yes, the above example is correct. Mail for
problem-destination.com will be sent to the A record of
smtp.example2.com, everything else will go to the relayhost.
Or should I comment out the relayhost parameter altogether, and add two
entries to my transport table, as:
problem-destination.com relay:[smtp.example2.com]
* relay:[smtp.example1.com]
This would work equally well, but (I think) the previous
example is cleaner.
--
Noel Jones