MailScanner / Exim Question

gal3ler

Active Member
Dec 7, 2003
31
0
156
Would it be possible if we setup a basic server, installed exim, mailscanner, etc and setup a cronjob to copy all of the email accounts from each cPanel box and changed all the MX entries to point to it that it could handle all of the email for us? We want to setup a great spam solution but not on each server as that will increase the load on all of our servers. Then if the email gets too high for the one server, we can make a dns pool and start out pointing the MX entries to mail.something.com but that mail.something.com can have multiple A entries pointing to each internal mail server we have.

Would this be possible?

If so, where would the email accounts have to be copied from so Exim can allow the customer to login etc
 

gal3ler

Active Member
Dec 7, 2003
31
0
156
or even setting up just a gateway


-> [Mail Gateway] -> [Checked for Virus/Spam] -> [cPanel Server] -> [Inbox]


Something like that. Has anyone done this before?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Yes, you can do that. The way it would work is:

1. Setup a server separate from your cPanel hosting servers

2. Setup that server to relay email for all the domains that you want to scan

3. Change all the MX records of the domains to point to that server

4. Setup smart routers on that server to forward email to the cPanel servers

How you setup those smart routers will depend entirely on which MTA you choose. If you use a separate cPanel server as the email gateway, then do a search on these forums for smart router for information on how to do that with exim.

Be aware that with that setup local email (i.e. to and from domains on the same server) will not be scanned as it will be delivered locally rather than going off-server.