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!

"Relay access denied" sending to other hosts

Discussion in 'E-mail Discussion' started by benito, Jul 11, 2018.

  1. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    321
    Likes Received:
    4
    Trophy Points:
    168
    Location:
    Mar del Plata - Argentina
    Hello!

    Some customer are getting random bounces for the emails they send to different addresses outside my servers.

    We tested and can replicate the error, no matter if we are using smtp or webmail.

    This is a bounce: (changed emails addresses and ip)

    Code:
    This message was created automatically by mail delivery software.
    
    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:
    
      radomuser@randomdomain.com.ar
        host randomdomain.com.ar [1.1.1.1]
        SMTP error from remote mail server after RCPT TO:<radomuser@randomdomain.com.ar>:
        554 5.7.1 <radomuser@randomdomain.com.ar>:
        Relay access denied
    Reporting-MTA: dns; myserver.mydomain.com
    
    Action: failed
    Final-Recipient: rfc822;radomuser@randomdomain.com.ar
    Status: 5.0.0
    Remote-MTA: dns; randomdomain.com.ar
    Diagnostic-Code: smtp; 554 5.7.1 <radomuser@randomdomain.com.ar>: Relay access denied
    And this is the exim log for this message.

    Code:
    [root@myserver ~]# grep 1fdF9w-00Ei5V-1z /var/log/exim_mainlog
    2018-07-11 10:27:56 1fdF9w-00Ei5V-1z <= test@customerdomain.com.ar H=(myserver.beewh.com) [::1]:58278 P=esmtpa A=dovecot_login:test@customerdomain.com.ar S=822 id=52c18c6f7125279a476942bf363e711a@customerdomain.com.ar T="Test Subject" for radomuser@randomdomain.com.ar administracion@customerdomain.com.ar
    2018-07-11 10:27:56 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1fdF9w-00Ei5V-1z
    2018-07-11 10:27:56 1fdF9w-00Ei5V-1z Sender identification U=saenzdyn D=customerdomain.com.ar S=test@customerdomain.com.ar
    2018-07-11 10:27:56 1fdF9w-00Ei5V-1z SMTP connection outbound 1531315676 1fdF9w-00Ei5V-1z customerdomain.com.ar radomuser@randomdomain.com.ar
    2018-07-11 10:27:56 1fdF9w-00Ei5V-1z => administracion <administracion@customerdomain.com.ar> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <administracion@customerdomain.com.ar> EH9aNNwFRlv3VTUAZ+xWTQ Saved"
    2018-07-11 10:27:58 1fdF9w-00Ei5V-1z ** radomuser@randomdomain.com.ar R=dkim_lookuphost T=dkim_remote_smtp H=randomdomain.com.ar [1.1.1.1]: SMTP error from remote mail server after RCPT TO:<radomuser@randomdomain.com.ar>: 554 5.7.1 <radomuser@randomdomain.com.ar>: Relay access denied
    2018-07-11 10:27:58 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1fdF9w-00Ei5V-1z
    2018-07-11 10:27:58 1fdF9y-00Ei6C-LM <= <> R=1fdF9w-00Ei5V-1z U=mailnull P=local S=2468 T="Mail delivery failed: returning message to sender" for test@customerdomain.com.ar
    2018-07-11 10:27:58 1fdF9w-00Ei5V-1z Completed
    [root@myserver ~]#
    
    I do not know if we are doing something wrong or is an error from the remote server.

    Thanks
    Cristian
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 benito, Jul 11, 2018
    Last edited by a moderator: Jul 11, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,696
    Likes Received:
    183
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @benito

    Do you have anything in
    Code:
    /etc/exim.conf.local
    or any custom configurations? Also is it specific domains you're having the issue with?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 cPanelLauren, Jul 11, 2018
    Last edited: Jul 11, 2018
  3. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    321
    Likes Received:
    4
    Trophy Points:
    168
    Location:
    Mar del Plata - Argentina
    Hello, that file only contains this:

    No custom configuration. This happens randomly to several domains.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,696
    Likes Received:
    183
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @benito

    Does it happen randomly when you send to several domains or when you send from several domains. The reason I ask is without any customizations to your mail configuration it would have to be something to do with the configuration of the other server. Are the domains you're sending to located in /etc/localdomains ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    321
    Likes Received:
    4
    Trophy Points:
    168
    Location:
    Mar del Plata - Argentina
    Hello Lauren, the domains im sending to are on remote servers. Not in ours.

    Different customers reports this problem from time to time. I check'd with them the configuration in their email client outgoing server settings and everything looks ok.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,696
    Likes Received:
    183
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @benito

    I do understand it's remote domains, the only instance where I would think you might run into this issue though is if the domain you're sending to existed on a server that belonged to you. Otherwise, this error getting flagged when being sent to a remote domain occurring randomly doesn't make a lot of sense in terms of something on your server nor would there really be a way to know what's occurring without the logs from the other server.
     
    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