View Single Post
  #3  
Old 20th July 2011, 21:52
XoCine XoCine is offline
Junior Member
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

Maybe that question is ooooooooold but have some nice solution :-)

Well warlock, in searching of solution I did some googling but did not found solution sooo I turned off Google and enable a Brain++ :->

What we want? That Postfix connect to one of FEW hosts (relayhosts).

Welll, lets play with DNS :-)

In example do domain mysweetdomain.com lets make some A lines:

mxr IN A 192.168.1.121
mxr IN A 192.168.1.131
mxr IN A 192.168.1.141
mxr IN A 192.168.1.151
mxr IN A 192.168.1.161


Lets flush bind and what we have? Nice :-)

[root@anubis postfix]# host mxr.mysweetdomain.com
mxr.mysweetdomain.com has address 194.177.4.121
mxr.mysweetdomain.com has address 194.177.4.131
mxr.mysweetdomain.com has address 194.177.4.161
mxr.mysweetdomain.com has address 194.177.4.141
mxr.mysweetdomain.com has address 194.177.4.151

Standard roundrobin rulez :-D

Then only that little line in postfix/main.cf

relayhost = mxr.mysweetdomain.com

and Postfix relays with every of these ips in roundrobin style :-)

Maybe it does not work as failover but better have 3/5 relays working then none :-) 60% delivered mails at once, rest waits for some time

Simple and nice :-) Hace fun :-)

Last edited by XoCine; 20th July 2011 at 21:59. Reason: A little addon :-)
Reply With Quote