Secondairy mailserver (backup)

redeye

Verified User
Joined
May 11, 2004
Messages
145
Is there somewhere an howto on setup an backup mailserver that receives the mail when the default mailserver is offline?
 
Redeye,

I doubt there's one since there isn't a way to set it up that way in DA as far as I know.

Regards,
Ben
 
On the DA side all you'd need would be an MX record for the domain with a higher value. You cannot set it up through the DA interface, but rather you'd have to do it through the shell.

(Be sure to do it right, or you'll break your mail routing.)

Then the hard work is on the server that'll be doing the backup MX; you'll have to set it up to receive email for tor the domain(s) in question, then store the mail on it's own queues until such time as the primary mail server is back up.

Then deliver the mail to the primary mail server.

And since it would have accepted a lot of mail for nonexistent email addresses, it'll have to bounce back any undeliverable email that the primary server won't accept. Including spam, viruses, etc.

On today's Internet the viruses and spam it'll have to deal with make it close to impossible to implement well.

Of course you can if you want to, but since the exact method of doing it depends on the mailserver that's going to be acting as the backup (secondary) mx server, this forum isn't the right place to explain it; you should find a forum for the kind of mailserver that you're going to use for secondary mx.

For example, sendmail, exim, qmail, postfix, etc.

When you ask on those forums you'll probably find that the regular posters will try to talk you out of it.

Jeff
 
Thx I will.

BTW, it is possible to add mx records in the controllpanel :), but indeed, then the hard part starts and that's where I'm lost, but I check exim for it.
 
Redeye: I'm going to place a new backup mail/dns server in the datacentre we use in 2 weeks. Remind me of this thread after it's running, I've written a few scripts to transfer those domains needed into the exim allow configs. That way you can also set up DA on your backup mail server, if you would want that.

Sebastian
 
Icheb said:
Redeye: I'm going to place a new backup mail/dns server in the datacentre we use in 2 weeks. Remind me of this thread after it's running, I've written a few scripts to transfer those domains needed into the exim allow configs. That way you can also set up DA on your backup mail server, if you would want that.

Sebastian

Nice, maybe willing to share :)
 
redeye said:
BTW, it is possible to add mx records in the controllpanel :), but indeed, then the hard part starts and that's where I'm lost, but I check exim for it.
Not quite

The mx records you set up in the control panel will all point to example.com as your destination mx.

What they're for, is for setting up, for example, so that email addressed to mailuser@www.example.com, or [email protected], will point towards example.com.

You cannot set up an mx referring mail to another destination.

If you want to check this for yourself, just add an mx record through the Control Panel, then look at the /var/named/example.com.db file.

Jeff
 
Jeff,

I have a corporate customer that wants to handle their primary mail server and the 10 record is pointing to that machine. Should that machine go down they want the DA machine to act as secondary until the primary comes back up. I have setup a 20 record pointing to the DA server. So it basically looks like so:

mail.domain.com. MX 10 (this is their server)
mail2.domain.com. MX 20 (this is DA server)

How do I configure it so that when the primary comes back up that the email gets forwarded to the Primary?

Big Wil
 
We've not researched to how do this reasonably.

I say reasonably because your exim.conf file is configured to only accept email for addresses for which there are specific email addresses on the server, and not just for any address on the domain.

While that would work if you had a "catchall" address for the domain, you can't have a catchall address unless you set up the server to accept email for the domain, and keep it at mailboxes on the server.

I presume you want exim to hold mail on the server until such time as their server is running again and then forward it on to them.

That will require some additions to and perhaps some rewriting of the exim.conf file, and I haven't had the time to research that.

:(

Jeff
 
Does anyone know of a good secure service that does backup for corporate mail servers?

Big Wil
 
Back
Top