Solved

How-to configure Sendmail as a secondary Mx (store and forward) ?

Posted on 2009-07-04
3
852 Views
Last Modified: 2013-12-18
Hi,
I have 3 mail servers (One Microsoft Exchange and two Mailmax). The mailmax servers have 100+ domains on each. I also have a Spam filtering server (Vircom) that is used for 80% of the domains we host.
I want to configure Sendmail as a backup mail server that will receive and store mail whenever one of our server is down and will resend mail to the mail server when it come back up. I don't wan't to list each mailbox on Sendmail (this woul'd be a nightmare to manage), only the domains.

DNS entries look like this :

sendmail.hosting.com.      IN     A        100.200.200.10      (This would be the new Sendmail server)

exchange.domain1.com.   IN     A        100.200.200.1
domain1.com.                  IN     MX      10 exchange.domain1.com.
domain1.com.                  IN     MX      20 sendmail.hosting.com.

mailmax.domain2.com.    IN     A        100.200.200.2
domain2.com.                 IN     MX      10 mailmax.domain2.com.
domain2.com.                 IN     MX      20 sendmail.hosting.com.

vircom.domain3.com.       IN     A        100.200.200.3
domain3.com.                 IN     MX      10 vircom.domain3.com.
domain3.com.                 IN     MX      20 sendmail.hosting.com.

The Sendmail version installed is 8.14.3.

I found on this site many way to do it but I am not sure wich one is the best for our needs.

Thanks !


0
Comment
Question by:Phil_Trahan
  • 2
3 Comments
 
LVL 14

Expert Comment

by:Wonko_the_Sane
ID: 24780514
If you run sendmail with a standard configuration, and your MX records for all your domains are suitable for this type of setup (e.g. you do not require your sendmail server to use different IPs then external senders), it should be as easy as putting your domains in the  "relay-domains" file (e.g. in /etc/mail/).

Of course you need to make sure that sendmail is running as a daemon, that it has queue runners, that your firewall etc. allows the necessary traffic (DNS and TCP 25 at the very least). As I said, in a standard config for sendmail this should all be no big deal, however sendmail has a lot of options and it is important to configure it correctly, but I think this is way beyond the scope of a forum like this. Also remember that doing this can have an impact on your anti-spam software, since e-mails will now be forwarded from your server instead of from an external one, and this might affect the spam filtering capabilities. Also you need to make sure that you also have a decent anti-spam and -virus solution place for your sendmail server, as many spammer would try to use the server with the highest MX preference hoping for less effective anti-spam technology.

To summarize this: If you do not really know what I am talking about here, maybe you should rethink your idea and instead use a software that you are familiar with. Not trying to offend.
0
 

Author Comment

by:Phil_Trahan
ID: 24803769
Hi,
Thanks for the answer.
I'm new to sendmail but I have a good experience in this kind of stuff.
We are trying to understand the difference between "relay-domains" file, "relay-allow" file and the "access" database and how they work, or not, together. Can you explain ?
 
0
 
LVL 14

Accepted Solution

by:
Wonko_the_Sane earned 250 total points
ID: 24803851
In your case you should be able to use access or relay-domains, it should work either way. relay-domains is probably the most straightforward approach. "access" gives you way more possibilties (custom error messages, relaying based on single addresses etc), but you shouldn't need this. If using access you will usually have to create your hashmap after modifying the file, thus involving more steps.

I recommend to read the exhaustive on sendmail about those files, this will give you the most accurate answers.
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Domain Transfer 4 40
Email Headers 5 54
Handling abuse of email address 7 33
error or issues with common type of email from one aol user to one gmail user 4 17
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
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…
In this video we show how to create a Shared Mailbox 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 >> Sha…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

785 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