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 mail forwarding issues

Discussion in 'E-mail Discussion' started by kwdamp, Feb 3, 2018.

  1. kwdamp

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    I'm having problems receiving emails sent by cpanel to root on our dedicated server since we switched last year.

    I've got the system mail forwarding setup to a correct address. And have tested that. I also receive emails from other cpanel processes. But I'm still getting errors on a regular basis as seen below. What am I missing?

    Screenshot_cpanel.png Screenshot_cpanel2.png
     
  2. web-project

    web-project Well-Known Member

    Joined:
    Nov 23, 2007
    Messages:
    62
    Likes Received:
    5
    Trophy Points:
    58
    as you have set to verify existence of email address on server, simply forward to existing email address instead of virtual email address.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    It appear some hostname issue. You have hidden the stuff. Can you confirm if the email address is hostname or domain,, example, is it root@<Hostname> or is it root@<domain>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. kwdamp

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    Sorry, didn't think it was a good idea to have my email addresses archived forever. LOL

    It's root@server.domain.com that is throwing the error. It is setup to forward root to myname@myemail.com (which is a valid, working email address).
     
  5. kwdamp

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    Basically, it seems like it is NOT forwarding the mail from root to my correct email. But instead trying to deliver it to root@server.<domain>.com.
     
  6. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    906
    Likes Received:
    347
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Your screen shot looks like you forward nobody to root, and then root to your@address.tld

    Just put an actual working email address into each of the forwarder boxs. Don't try to forward one user to another before forwarding to an email address.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. kwdamp

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    I'll try that and see if it helps. But that's how it was setup by default, I didn't change nobody to forward to root.
     
  8. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    Does the server domain name resolve properly? What is the output of the below command?

    # ping server.domain.com
    # hostname
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. kwdamp

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    yeah, everything seems fine with the domains:

    Pinging server.<mydomain>.com [184.154.44.178] with 32 bytes of data:
    Reply from 184.154.44.178: bytes=32 time=57ms TTL=50
    Reply from 184.154.44.178: bytes=32 time=55ms TTL=50
    Reply from 184.154.44.178: bytes=32 time=62ms TTL=50
    Reply from 184.154.44.178: bytes=32 time=69ms TTL=50

    Ping statistics for 184.154.44.178:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 55ms, Maximum = 69ms, Average = 60ms
     
  10. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    In the initial screenshot, there appears an error stating failed remote domains, so part of the mail configuration you did is asking to send the mail to the remote server.. Is the domain pinging to your server IP address or is it local one?
     
    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:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Check to verify your server's hostname exists as an entry in the /etc/localdomains file on the system.

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

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    It's listed in the /etc/localdomains file as both:
    *.mydomain.com
    mydomain.com

    Does it need to be explicitly added as:
    server.mydomain.com

    Or is the wildcard domain supposed to be sufficient?
     
  13. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Your hostname should be a fully-qualified domain name (e.g. server.domain.tld), and the specific entry for it needs to be added to the /etc/localdomains file.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. kwdamp

    kwdamp Active Member

    Joined:
    Dec 7, 2017
    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    usa
    cPanel Access Level:
    Root Administrator
    Ok, can I add this through a cPanel feature? Or do I need to edit the localdomains file directly?
     
  15. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,773
    Likes Received:
    119
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    What is the hostname of the server?

    hostname

    Is that FQDN in /etc/localdomains ?

    If not, is it in /etc/remotedomains ?

    Is the hostname of the server different from whatever you are referring to as server.mydomain.tld ?
     
  16. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can edit the /etc/localdomains file via SSH while logged in as "root".

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    kwdamp likes this.
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