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

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 !


Phil_TrahanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wonko_the_SaneCommented:
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
Phil_TrahanAuthor Commented:
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
Wonko_the_SaneCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.