The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Same domain, different A and MX records

Discussion in 'E-mail Discussions' started by kitecom, Jun 5, 2016.

  1. kitecom

    kitecom Registered

    Joined:
    Jun 5, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    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
     
  2. ssfred

    ssfred Well-Known Member

    Joined:
    Jan 6, 2012
    Messages:
    62
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello

    Do check and remove the domains existence from the file /etc/localdomains and add the domain name to /etc/remotedomains file.
     
  3. kitecom

    kitecom Registered

    Joined:
    Jun 5, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    Thanks Fred
    I've checked those two files and the domain is absent from "localdomains" and present in "remotedomains"...
    D
     
    #3 kitecom, Jun 6, 2016
    Last edited: Jun 6, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the output in /var/log/exim_mainlog when sending one of the messages? EX:

    Code:
    exigrep user@domain /var/log/exim_mainlog
    Thank you.
     
Loading...

Share This Page