Automated change of Mail Exchanger to Local or Remote

deimsi

Registered
Jul 20, 2016
1
0
1
Ukraine
cPanel Access Level
Root Administrator
Hi there!

I recently started facing an issue with my server. Since I am using a third party spam filtering, I need to use specific MX records that cPanel detects as "Remote Mailexchanger"

Need to find a way to automatically change exchanger for a domain via SSH.
I tried to manually move a domain from /etc/remotedomains to /etc/localdomains and do /scripts/updateuserdomains, but with no luck. What else is needed to be done to achieve that?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
I tried to manually move a domain from /etc/remotedomains to /etc/localdomains and do /scripts/updateuserdomains, but with no luck.
Hello,

Manually moving the domain name from /etc/remotedomains to /etc/localdomains isn't a permanent solution, however it should have addressed the issue. Could you let us know the specific error message you continue to receive?

Thank you.