The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 multiple relayhost
Author: indul 
Date:   10-05-10 21:43

Hi!
I'm using postfix 2.7, and I would like to use 2 external smtp servers on port 587. The second is the 'backup'.

I set the transport map to
* smtp:smtphost:587
then postmap transport;
transport map in main.cf is OK.
in the /etc/hosts file:
12.23.34.45 smtphost mail.mydomain.tld
23.34.45.56 smtphost mail.anotherdomain.tld
postfix restarts without errors.

If I send a mail, the smtphost points to my external IP.
Why? How can I set up this config without a DNS server? It is possible?

Thanks.



Reply To This Message
 
 Re: multiple relayhost
Author: Dan 
Date:   12-10-10 10:29

Use an IP address here instead of a hostname:

* smtp:smtphost:587

You may have to put the IP address in [square brackets].

--
Webmaster

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org