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!

incoming mail rejected (rejected relay attempt), but outgoing emails OK

Discussion in 'E-mail Discussion' started by vpswing, Feb 27, 2019.

  1. vpswing

    vpswing Member

    Joined:
    Jun 4, 2014
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi,

    My server's cPanel version is 78.0.12.

    From the webmail (Horde/Roundcube) - I could send emails to Gmail, or any other legitimate email accounts/domains.

    But incoming emails (e.g. I try to send email to myself from Gmail or my other email accouht) - I get this error mesg in "exim_mainlog"

    H=(myother-hostname) [162.244.xx.xx]:54260 X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no F=<[email protected]> rejected RCPT <[email protected]>:
    Rejected relay attempt: '162.244.xx.xx' From: '[email protected]' To: '[email protected]'

    The email ' [email protected]' exist on this cPanel VPS.

    What is causing this "Rejected relay attempt" ? Why is the exim trying to 'relay' this email? It's supposed to be local delivery right?

    Thanks!
     
  2. vpswing

    vpswing Member

    Joined:
    Jun 4, 2014
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Found the problem - for some reason, the /etc/localdomains file did NOT have the domains that are hosted on this server.
    Not sure why or how that could have happened, but it could possible be due to the cPanel backup/restore procedure.

    The accounts on this server was setup by restoring the 'cpmove-*' files from another cPanel (ver 76.x) server.

    Anyway, after entering the domains into the /etc/localdomains file - all is ok now. Hope this helps someone.
     
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,476
    Likes Received:
    507
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @vpswing

    I'm glad to hear you were able to identify the issue. Thanks for letting us know.
     
    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