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!

Local Mail Server for Domain Hosted Remotely - Configuration MX

Discussion in 'Bind/DNS/Nameserver' started by RationalRabbit, Dec 18, 2015.

  1. RationalRabbit

    Joined:
    Aug 25, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    A client opened a new domain with another host. That host does not provide e-mail, so we set it up so that mail would point to my server.

    MX is set with 0 priority to the proper mail server. I've done nothing to change the default setup in WHM.

    The client is receiving mail okay, and when he sends an e-mail to any address on my server (the server that is hosting his e-mail accounts), it works fine. E-mails to other servers are rejected - I am not sure where the rejection is happening. (sorry, I do not have the error message)

    Is this possibly occurring on the server itself? Is there a change I need to make in the local SMTP?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,878
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    I think there is an issues with the mx record. Can you please confirm your mx entry and verify that.

    Also are you getting any bounce back mail from remote server when you send mail to remote mail server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. RationalRabbit

    Joined:
    Aug 25, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    I think we may have solved the problem. Have not been able to contact the client yet to test.

    I have changed the MX record from 'domain.com. 14400 IN MX 0 domain.com' to 'domain.com. 14400 IN MX 0 mail.domain.com'.
    And 'mail 14400 IN CNAME domain.com' was changed to 'mail 14400 IN A xxx.xxx.xxx.xxx'.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Also, ensure the domain name is in the /etc/localdomains file on the cPanel server that hosts this domain name's email.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RationalRabbit

    Joined:
    Aug 25, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Yes, the domain is there.
    Finally got the error message from the client.
    Ran tests this morning and it still occurs.
    Don't understand this message at all, but it seems that it could indicate a lot of various problems, some of which I'm checking out, but passing this along in case it might provide some insight.
    I realize there may be a propagation factor, but my experience is that changes 9 out of 10 times take far less than 24 hours, and this was done last night.
    Below is the error code:

    503 Valid RCPT command must precede DATA
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Is this reproducible when sending email through a webmail application such as Roundcube? The message typically indicates that authentication for outgoing email is not enabled in the mail client used for sending.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. RationalRabbit

    Joined:
    Aug 25, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    It appears you have put your finger on the problem. Logged into Webmail and was able to send through Horde without a hitch.
    Puzzled though, have checked and rechecked the client (Outlook 2016) settings and run a scanpst on the pst files. Guess I will research some more.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. RationalRabbit

    Joined:
    Aug 25, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Could this be a DKIM or SPF problem?
    If so, what can be done? Can these be instigated at the registrar, pointing to mail.domain.com, or what happens when a recipient tries to authenticate?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. RationalRabbit

    Joined:
    Aug 25, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    I am well versed in setting up a client account in Outlook. I have literally set up hundreds of accounts over the years.
    The account is set up correctly. It sends to other addresses on my server without a problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you notice any specific error messages in /var/log/exim_mainlog when the user fails to send email through their email client?

    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