On Thursday 27 August 2009 12:31:15 tom lee wrote:
> If relayhost support multiple IP or serevrs, it could be a better
> option. 
>
>  relayhost = [first_IP, second_ip]
>
> What do you think?

Use the MX, Luke!

In main.cf :
relayhost = relayhost.example.com

(No [] bracketing means look up the MX record.)

In your DNS zone file :
relayhost.example.com.          MX      10 host1.example.com.
relayhost.example.com.          MX      20 host2.example.com.

Or, same priorities if that fits the need better.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to