Blog Stats
  • Posts - 31
  • Articles - 0
  • Comments - 1
  • Trackbacks - 680


Saturday, April 03, 2004

Backup Your SMTP Server

My email server went belly-up this week and so I have again been thinking about a backup SMTP server so when my SMTP server is down, I do not loose mail. So here is what I understand needs to be done. Any suggestions or comments are appreciated.

Before we can understand how you could have a backup SMTP server, it is necessary that we understand some the "normal" operations of a outgoing mail, (SMTP) server.

SMTP and Mail relaying
When sends email is sent to, his email client sends the message to his designated SMTP server. Due to spammers that often make use of (mail relaying), SMTP servers should employ some method to determine that the user should be using this SMTP server.

The SMTP server It is the SMTP servers "job" to deliver the message to the SMTP server for the The SMTP server determinse the's SMTP server by querying DNS and asking for record of type MX.'s SMTP server then attempts to send the message to the MX record with the highest "priority" record which is the record with the lowest number.

If's SMTP server does not answer, he trys the next higher priority record which is the next bigger number record of the type MX.

So, if we wanted to setup a backup SMTP server for, we would need the administrator of to setup his server to accept incoming messages for as an ETRN mail domain. The details of the ETRN fuction are defined in RFC 1985.

We should then verify that will indeed accept email for This can be performed by telneting to the's SMTP server on port 25 and entering the following:
OK, connected to
< 220 SMTP ready
< 250 Pleased to meet you
< 250 Sender OK
> RCPT TO:<>
< 250 Recipient OK
< 354 Send message, end with <CRLF>.<CRLF>
> From:
> To:
> Subject: SMTP Test (
> If you received this, then the mail server ( is probably working.
> .
< 250 OK

If you receive any message that starts with 5##, like
< 571 Remote sending only allowed with authentication!
Then the will NOT accept mail for your domain.

NOTE: You can also go to and do this test.

Once we have the above ETRN host defined and working, we then must add to's DNS as a MX record with a bigger number than's MX record.

That should work.



Copyright © jeemster