Disabling local delivery, forcing the use of external DNS?
I have an issue: I'm migrating a number of email services, and would like to do as follows:
1 - I create the email service for anydomain.com on cpanel (in the meanwhile, email service for anydomain.com is running elsewhere, and anydomain.com is using external DNS servers, independent from my cpanel machine)
2 - in cPanel I create every email address needed, and send a notification email to each one (with the new password) using cpanel
3 - so the user receives in his email the message with the new password...
4 ... and few days later I can switch DNS, my cpanel server begin to work for anydomain.com, and every user has yet new password
My issue: in step 2, my server send this message in local delivery, so the user doesn't get it... :-(
The question is: how can I configure cpanel in order to use the MX specified in the external, authoritative DNS, even if cpanel consider it a local domain?!?!
-
Hi @Remitur You may want to try removing the domain from /etc/localdomains so that the server does not look internally for the domain. 0 -
And add the domain to /etc/remotedomains so that it doesn't automatically get added back to /etc/localdomains 0 -
Does exist any way to make it by default, without the need to to do so for every single domain? 0 -
Hi @Remitur During account creation you can choose remote mail exchanger for the domain which would perform the same tasks. You can do this using the API WHM API 1 Functions - createacct - Developer Documentation - cPanel Documentation or at WHM>>Account Functions >>Create a New Account Thanks! 0
Please sign in to leave a comment.
Comments
4 comments