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!

Root email failing

Discussion in 'E-mail Discussion' started by plesk4lyf, Feb 20, 2019.

  1. plesk4lyf

    plesk4lyf Member PartnerNOC

    Joined:
    May 21, 2018
    Messages:
    21
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hi there,

    I just had an interesting issue where the root user of a cPanel server couldn't relay out because the callback verification method used by the relay was failing:

    [root@server ~]# LOG: MAIN
    cwd=/var/spool/exim 4 args: /usr/sbin/exim -v -Mc 1gwLXw-0002RU-Du
    delivering 1gwLXw-0002RU-Du
    Transport port=25 replaced by host-specific port=587
    Connecting to mx1.relay.com [1.2.3.4]:587 ... connected
    SMTP<< 220 mx1.relay.com ESMTP Exim 20190214.1248 Wed, 20 Feb 2019 17:39:56 +1100
    SMTP>> EHLO server.com
    SMTP<< 250-mx1.relay.com Hello server.com [5.6.7.8]
    250-SIZE
    250-8BITMIME
    250-DSN
    250-AUTH PLAIN LOGIN
    250-STARTTLS
    250 HELP
    SMTP>> STARTTLS
    SMTP<< 220 TLS go ahead
    SMTP>> EHLO server.com
    SMTP<< 250-mx1.relay.com Hello server.com [5.6.7.8]
    250-SIZE
    250-8BITMIME
    250-DSN
    250-AUTH PLAIN LOGIN
    250 HELP
    SMTP>> MAIL FROM:<root@server.com> SIZE=1527
    SMTP<< 550-Verification failed for <root@server.com>
    550-Called: 1.2.3.4
    550-Sent: RCPT TO:<root@server.com>
    550-Response: 550 root cannot accept local mail deliveries
    550 Invalid sender <root@server.com>
    SMTP>> QUIT


    I checked that mail to the hostname was allowed in "Home »Service Configuration »Exim Configuration Manager".

    I compared between a working server and this one and the difference was the working one had entries in /etc/localaliases.

    I noticed that in "Home »Server Configuration »Basic WebHost Manager® Setup" the notification email address was empty, so I added one but it didn't update the /etc/localaliases file.

    My questions are:
    - How is the /etc/localaliases file updated by the WHM interface?
    - Does cPanel do anything with the /root/.forward file?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,161
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @plesk4lyf

    This is the intended behavior for mail sent to the root user, you need to set up the forward to an email account that can receive mail

    Both of these are edited when you set up where to forward root, cpanel and nobody's mail to. You can do this by going to WHM>>Server Contacts>>Edit System Mail Preferences

    Modifying where to forward roots mail updates both /etc/localaliases and /root/.forward

    For example on my test server:

    Code:
    [root@server ~]# cat /root/.forward
    lauren@test.com
    [root@server ~]# cat /etc/localaliases
    cpanel: lauren@test.com
    nobody: lauren@test.com
    root: lauren@test.com

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. plesk4lyf

    plesk4lyf Member PartnerNOC

    Joined:
    May 21, 2018
    Messages:
    21
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hi @cPanelLauren

    Thanks for your post!

    I can see where the confusion was coming from. I always thought that "system" emails were in the "Basic WebHost Manager® Setup" area.

    I now see from the documentation that there are different areas of the system that are configured in the "Edit System Mail Preferences" for different kinds of notifications.

    Can I make the suggestion of merging Mail Preferences into Basic Setup?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,161
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @plesk4lyf


    I'm glad it's sorted now, I agree that could definitely pose as being a bit confusing, please feel free to open a feature request for that and once it's open please add the link here so that others may vote on it as well.

    Thanks!
     
    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