Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Same domain, different A and MX records

Discussion in 'E-mail Discussion' 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:
    64
    Likes Received:
    4
    Trophy Points:
    58
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    44,323
    Likes Received:
    1,851
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice