How force checking external MX in exim?
Hello there,
I have problem with hosting account created by one of my clients, who chose domain "gmail.com" as his "main domain".
By choosing this domain this client forced Exim to treat "gmail.com" as "local domain" so every mail from all hosting accounts on this exim/whm instance is going to his hosting package... and that's big problem.
Can we, as WHM administrators, can prevent such situations? How can I force exim to check real MX record for recipient's mail address?
-
Hello, You should ensure the following option is disabled under the "Domains" tab in "WHM >> Server Configuration >> Tweak Settings": "Allow Remote Domains" Then, ensure the "Prevent cPanel users from creating specific domains" option is enabled. Thank you. 0 -
Michael, thanks for this tip, but this does not resolve problem in all practical cases. Common situation is when my client has a domain and it points to my nameservers. Client creates an hosting account, uploads files, makes multiple emails etc. - he is using my hosting service like normal user. After few months he decided to move to another hosting provider **but hasn't delete DNS done/unpark domain** from my hosting. This results in delivery all emails going from inside my hosting (from other clients) to wrong place - still to my server instead to the new (other's provider) one. What then? The best option would be to force exim to check real MX record of domain, instead of looking first to list of "local domains", right? Or maybe do you have other solution to this case (common, as I think - I have exactly this situation today)? 0 -
After few months he decided to move to another hosting provider **but hasn't delete DNS done/unpark domain** from my hosting. This results in delivery all emails going from inside my hosting (from other clients) to wrong place - still to my server instead to the new (other's provider) one.
It's important to edit those zones and select "Remote Mail Exchanger" under the "Mail Routing" section to ensure the email is handled by the remote server instead of locally. That being said, you bring up a good point. You may also want to post a feature request to address these types of cases: Submit A Feature Request Thank you.0
Please sign in to leave a comment.
Comments
3 comments