We recently setup a cPanel/WHM server.
Most of our domains use a remote mail exchanger which checks incoming mail for spam and then delivers valid mail to the cPanel server.
I set the domains to use remote mailexchanger in DNS and make sure the the MX record points to the remote exchanger.
However mail from the remote exchanger is rejected by the cPanel server but if I change the MX record to use local mail exchanger - mail is deliver directly to the server bypassing the remote exchanger - then it works.
Does anyone have any ideas of what I'm missing?
Any ideas are greatly appriciated.
You have to set domains mail settings to "Local" instead of "Remote Mail Exchanger" in order to accept mails on cPanel server. When "Remote Mail Exchanger" is set, cPanel will reject mail locally of an domain.
If you have set MX records to remote mail filtering server, any internet host will send mail to this filtering server based on your DNS MX records.
Then you have to configure your remote filtering server to relay mail directly to your cPanel server ip address / hostname, instead of doing DNS MX lookups of your domain.
if I change the MX record to use local mail exchanger - mail is deliver directly to the server bypassing the remote exchanger - then it works.
If everything is configured as explained above, internet mail should NOT be bypassed, and should go through remote filtering.
Only local email (the mail the is sent from cPanel server itself) will be bypassed and will be delivered locally.
So, when you are doing some testings, send email from some remote mail server/domain instead from your cPanel server.