Sorry if this has been posted before but I couldn't search out what I was trying to do so here it is..
I have several domains on several different boxes which I would like to have the mail backed up in the event that the primary mail server goes down. I do NOT want a secondary mail server with replicated accounts or anything like that just a second server that catches and queues up the mail until the primary is responsive again, this is how I have configured it and the problem I am having.
DNS for the primary
0 mail.mydomain.com
5 mail2.mydomain.com
10 mail3.mydomain.com
Config on mail2.mydomain.com
In /etc/mail/access I have added
I'm clearly missing something here but have yet to find anything that works online. When I kill sendmail on the primary server and attempt to send an email to the domain I see the mail come into the secondary back server when doing a tail -f on the maillog after the two lines of the email coming in I get a 3rd line stating
Now that being said I understand why it's saying this but (haha why is it doing this??) it seems to instantly try and relay the mail to the primary over and over again 25 times then fails sending a bounce back
I am clearly missing a configuration or something but can't seem to figure it out,
Thanks Guys!
Matt
I have several domains on several different boxes which I would like to have the mail backed up in the event that the primary mail server goes down. I do NOT want a secondary mail server with replicated accounts or anything like that just a second server that catches and queues up the mail until the primary is responsive again, this is how I have configured it and the problem I am having.
DNS for the primary
0 mail.mydomain.com
5 mail2.mydomain.com
10 mail3.mydomain.com
Config on mail2.mydomain.com
In /etc/mail/access I have added
Code:
To:mydomain.com RELAY
Code:
(SYSERR(root): mail2.domain.com. config error: mail loops back to me (MX problem?)
Code:
A configuration error in the e-mail system caused the message to bounce between two servers or to be forwarded between two recipients. Contact your administrator.
<ns2.server.com #5.4.6 SMTP; 554 5.4.6 Too many hops>
Thanks Guys!
Matt