Solved

Debian Email Backup Server

Posted on 2012-03-28
8
775 Views
Last Modified: 2012-04-15
We have an Exchange 2010 server as our primary mail server.  We want to put in a backup email server in case our Exchange server goes down.  I've set up IMAP servers before with Debian, so I was thinking about setting one up.  The idea would be to hold all the emails destined for the Exchange 2010 server on the Debian server while the Exchange 2010 server is down.  However, when the Exchange 2010 server comes back up, the Debian server would send all those emails it had been queuing up to the Exchange server for delivery.

Not quite sure how to set the Debian server up like that.  Any suggestions?
0
Comment
Question by:sedberg1
  • 3
  • 2
  • 2
8 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 37779811
What you are trying to accomplish is pretty straight forward and very common.

Here are some instructions on how to do it using Postfix

http://www.howtoforge.com/postfix_backup_mx
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup

The inherent problem with backup MX's is that they are regularly targeted by spammers since they assume the backup will not have as stringent anti-spam policies in place as the primary.  Make sure you implement ample anti-spam/spoofing techniques on your backup MX.

Keep in mind also that senders will queue and periodically retry sending of mails when the receiving MX is unreachable.  If you don't need to access all queued mails immediately once the primary is back online, then a backup MX just might be unnecessary -- all depends on your needs and environment.
0
 
LVL 77

Expert Comment

by:arnold
ID: 37779831
It is a fairly straight forward. 1, you need to have two public IPs.
Pointing each ip to each server.
Depending on the email server you pick the configuration is to accept emails for the domain, while not treating the domain as either local nor virtual. Within the transport section, the Debian mailserver will point to the exchange as the destination.  Some mail servers have tern capabilities such that when exchange comes backup it could issue an tern to the Debian server to transmit the emails now rather than waiting while the Debian server's queue is being processed.
0
 

Author Comment

by:sedberg1
ID: 37779851
Papertrip, that first link is AWESOME!!!!

Quick question, if MX1 becomes available again, according to the article, MX2 will keep attempting to push the queued up emails to MX1 but doesn't say how often.  Is there a way to manually push the emails from the queue on MX2 so I don't have to wait?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 21

Expert Comment

by:Papertrip
ID: 37779882
Absolutely, just issue postqueue -f on the backup.

There is also the SMTP ETRN command which arnold mentioned, either will work just fine.

http://www.postfix.org/postqueue.1.html
http://www.postfix.org/flush.8.html
http://www.postfix.org/ETRN_README.html
0
 
LVL 77

Expert Comment

by:arnold
ID: 37780053
Etrn, and the various options that were previously used by the primary to connect to the secondary and trigger the immediate transmission of the email queue are not available by Discussion
http://www.google.com/search?q=exchange+2010+etrn

Given that the email has already been delayed by the outage of the primary, what is the issue that once it has recovered why demand the immediate transmission which might pound the server and lead to once gain it becoming non responsive.
0
 

Author Comment

by:sedberg1
ID: 37848276
My mistake about not awarding points to the correct post.  I should have awarded the points to this post:

"What you are trying to accomplish is pretty straight forward and very common.
Here are some instructions on how to do it using Postfix

http://www.howtoforge.com/postfix_backup_mx
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup

The inherent problem with backup MX's is that they are regularly targeted by spammers since they assume the backup will not have as stringent anti-spam policies in place as the primary."
0
 
LVL 77

Expert Comment

by:arnold
ID: 37848338
Post a question in community support to reopen this question so that you can make the corrections.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question