I'm having some issues with receiving mail that is not being routed based on MX records. A customer has opted to use a third party source to filter mail prior to being sent to my server. We have changed the MX record and in over a week we are still seeing messages being sent directly to the server without going through the third party source specified in the MX record. Legitimate, nonspam email is showing the correct headers with the appropriate servers.
The only reason I can find for this is if a spammer attempts to send mail based on the A record for the domain before trying the MX record, that message is accepted for the user completely bypassing the spam filtering.
I'm somewhat savvy with understanding the concepts behind smtp but not so savvy with exim.conf tweaks and would prefer to make changes that would not be overwritten by CPanel on updates.
I considered going a firewall option blocking port 25 on all but one port and changing the DNS zones to route mail to one particular IP address. But that also would involve asking all my users to change their SMTP server in their mail clients.
Does anyone have any suggestions on how to force mail to be routed based on MX for domains that want mail filtered outside of the server?
The only reason I can find for this is if a spammer attempts to send mail based on the A record for the domain before trying the MX record, that message is accepted for the user completely bypassing the spam filtering.
I'm somewhat savvy with understanding the concepts behind smtp but not so savvy with exim.conf tweaks and would prefer to make changes that would not be overwritten by CPanel on updates.
I considered going a firewall option blocking port 25 on all but one port and changing the DNS zones to route mail to one particular IP address. But that also would involve asking all my users to change their SMTP server in their mail clients.
Does anyone have any suggestions on how to force mail to be routed based on MX for domains that want mail filtered outside of the server?