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!

Not permitted to relay through this server without authentication

Discussion in 'E-mail Discussion' started by sandtim, Sep 15, 2017.

  1. sandtim

    sandtim Registered

    Joined:
    Sep 15, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I logged into WHM this morning and it asked me to reboot in order to apply an update. I did. After the reboot, I've had several clients report that they could not send email. I sent a test message from my account to my gmail account. This is the result:
    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:
    
    
      mygmailaccount@gmail.com
    
        host gmail-smtp-in.l.google.com [74.125.136.27]
    
        SMTP error from remote mail server after RCPT TO:<@gmail.com>:
    
        550-Please turn on SMTP Authentication in your mail client.  vps2.mydomainname.com
    
        550-[myipaddress]:58688 is not permitted to relay through this server without
    
        550 authentication.
    
    Authentication is turned on in my client. (Outlook 2016)


    This is my version information:
    • CENTOS 7.4 kvm [vps2]
     
    #1 sandtim, Sep 15, 2017
    Last edited by a moderator: Sep 15, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you verify the domain name you are sending from exists in the /etc/localdomains file on this system? EX:

    Code:
    grep domain.tld /etc/localdomains
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sandtim

    sandtim Registered

    Joined:
    Sep 15, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Found it.

    in Exim Configuration Manager, Basic Editor, Mail,

    "EXPERIMENTAL: Rewrite From: header to match actual sender" was set to "remote".

    I changed it to the default of "disable" and emails are going through.

    I had set that option a few months ago to try to find possible problems with our list servers. But I had also changed it back. Don't know why it changed again during the upgrade last night.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    "Disable" is the default option for this feature. Is it possible the option was changed manually through WHM or the command line? You can use a command like this if you want to see when the Exim configuration values were last accessed from Web Host Manager:

    Code:
    grep displayeximconfforedit /usr/local/cpanel/logs/access_log
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Tim Caviness

    Tim Caviness Registered

    Joined:
    Sep 20, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    I am also having this problem.

    Even though the default setting was set to "Disable," I set it to "Enable" ... saved ... changed to "Disabled" and saved again.

    Everything worked.

    Until today ... when I had to do the same exact thing to get SMTP to work for the entire server.

    The settings are getting overwritten somehow and this needs to be fixed.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look at your system to see how the setting is overwritten?

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

    ddaddy Active Member

    Joined:
    Aug 19, 2015
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I had the same problem. All my emails failed with 550 auth errors.
    I toggled this setting and it started working again.
     
  8. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Benifato, Spain
    We're having the same issue but with incoming e-mails, sending from Gmail to e-mail account hosted in our server, enabling/disabling the EXPERIMENTAL exim option, dont fix nothing.

    Code:
    550 Please turn on SMTP Authentication in your mail client. mail-it0-x230.google.com [2607:f8b0:4001:c0b::230]:41224 is not permitted to relay through this server without authentication.
    
    
    Final-Recipient: rfc822; prueba@test.ginernet.net
    Action: failed
    Status: 5.0.0
    Remote-MTA: dns; test.ginernet.net. (2a03:c7c0:1:1::1, the server for the
     domain test.ginernet.net.)
    Diagnostic-Code: smtp; 550-Please turn on SMTP Authentication in your mail client.
     550-mail-it0-x230.google.com [2607:f8b0:4001:c0b::230]:41224 is not permitted
     550 to relay through this server without authentication.
    Last-Attempt-Date: Thu, 07 Dec 2017 09:08:14 -0800 (PST)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    154
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    We had the exact same error. Client tried to send from his @gmail.com account (using the gmail interface) and kept receiving the following error when sending to his domain where the mail was hosted by us:
    Code:
    Message not delivered
    Your message couldn't be delivered to info@domain.tld because the remote server is misconfigured. See technical details below for more information.
    The response was:
    
    550 Please turn on SMTP Authentication in your mail client. mail-qt0-f174.google.com [209.85.216.174]:34191 is not permitted to relay through this server without authentication.
    
    I made sure the MX record was pointing correctly, made sure the SPF record was correct, but nothing worked. I found this post and set "EXPERIMENTAL: Rewrite From: header to match actual sender" from default -> remote, saved and then from remote -> default, which solved the issue.
     
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @DennisMidjord,

    Can you let us know what appeared in /var/log/exim_mainlog when Gmail returned the message with the "is not permitted to relay through this server without authentication" message?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    154
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Hi,

    Sure.
    Please note that the above was from when I tried to send an email to the user's mailbox.
     
  13. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,720
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    It's possible that updating this particular setting didn't actually solve the issue, but rather doing so forced a run of the /scripts/buildeximconf which is what solved the issue. If this happens again, please open a support ticket so we can take a closer look and post the ticket number here so we can update this thread with the outcome.

    Additionally, before opening a support ticket or making any changes to the Exim configuration to workaround the issue, make a backup of the existing Exim configuration file using WHM >> Service Configuration >> Exim Configuration >> Backup so the old configuration file is available to review.

    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