11305
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 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 |
|
#2
|
||||
|
||||
|
You're relaying to the domain. Sendmail will look up the MX record for that domain, it'll find your primary is down and switch to the secondary MX record. Which is the same server that's trying to send the mail. Hence the loop-back NDR.
Relay to the specific hostname or IP address of the primary. It shouldn't be able to deliver it when it's down and will then start queuing it.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
|
|
#4
|
|||
|
|||
|
Quote:
I don't quite understands what you are telling me to do here. Where do I add the IP or hostname, in what config file? Thanks Matt |
|
#5
|
|||
|
|||
|
Quote:
other than the fact that the config files are different in that reference that's how I have setup the config on both primary and secondary servers "/etc/mail/relay.allow" is actually /etc/mail/access and DNS is setup correctly all IN A records not CNAMES. Matt |
|
#6
|
||||
|
||||
|
Quote:
Code:
To:mydomain.com RELAY Change it to: Code:
To:hostname.of.primary.mail.server RELAY Code:
To:1.2.3.4 RELAY
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
I found the missing link! domain.com smtp:mail.domain.com had to be added to /etc/mail/mailertable rebuilt the databases restarted sendmail, killed sendmail on the primary and sent a test and no more bounce backs and the mail is queueing now thanks for your help!!
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| console log says: backup kernel: backup sendmail: fatal: usage: sendmail | makdaddy8888 | Web & Network Services | 1 | June 28th, 2012 05:27 |
| cannot open /etc/mail/mailer.conf, using /usr/libexec/sendmail/sendmail as default MT | sjap | Web & Network Services | 20 | January 21st, 2012 15:16 |
| Sendmail and Backup MX | minimike | Web & Network Services | 1 | September 25th, 2011 15:39 |
| Using sendmail or sendmail from the ports? | HL1234 | Installation and Maintenance of FreeBSD Ports or Packages | 3 | December 17th, 2010 20:37 |
| [Solved] zfs backup script for backup to disk | jbeez | General | 3 | September 10th, 2010 12:33 |