Same domain, different A and MX records
Here's the set up. I have domain.com registered with 123-reg.co.uk and the website hosted on my vps.
A records point to my address and MX records point to 123-reg's server. So far all ok.
I have a form on my WP site (hosted at domain.com on my server) that I want to send mail from "website@domain.com" to "recipient@domain.com".
How can I force the form to go and find smtp at 123-reg.co.uk rather than trying (and failing) to deliver it locally?
It seems that the presence of the domain name has the form thinking that mail is dealt with on the same server....
Thanks in advance
D
-
Hello Do check and remove the domains existence from the file /etc/localdomains and add the domain name to /etc/remotedomains file. 0 -
Thanks Fred I've checked those two files and the domain is absent from "localdomains" and present in "remotedomains"... D 0 -
Hello, Could you let us know the output in /var/log/exim_mainlog when sending one of the messages? EX: exigrep user@domain /var/log/exim_mainlog
Thank you.0
Please sign in to leave a comment.
Comments
3 comments