Skip to main content

Root mail forwarding issues

Comments

17 comments

  • web-project
    as you have set to verify existence of email address on server, simply forward to existing email address instead of virtual email address.
    0
  • 24x7server
    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@ or is it root@
    0
  • kwdamp
    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@ or is it root@

    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).
    0
  • kwdamp
    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..com.
    0
  • rpvw
    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.
    0
  • kwdamp
    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.

    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.
    0
  • 24x7server
    Hi, Does the server domain name resolve properly? What is the output of the below command? # ping server.domain.com # hostname
    0
  • kwdamp
    Hi, Does the server domain name resolve properly? What is the output of the below command? # ping server.domain.com # hostname

    yeah, everything seems fine with the domains: Pinging server..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
    0
  • 24x7server
    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?
    0
  • cPanelMichael
    Hello, Check to verify your server's hostname exists as an entry in the /etc/localdomains file on the system. Thank you.
    0
  • kwdamp
    Hello, Check to verify your server's hostname exists as an entry in the /etc/localdomains file on the system. Thank you.

    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?
    0
  • cPanelMichael
    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.
    0
  • kwdamp
    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.

    Ok, can I add this through a cPanel feature? Or do I need to edit the localdomains file directly?
    0
  • sparek-3
    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 ?
    0
  • cPanelMichael
    Ok, can I add this through a cPanel feature? Or do I need to edit the localdomains file directly?

    You can edit the /etc/localdomains file via SSH while logged in as "root". Thank you.
    0
  • coursevector
    I recently had this issue as well and I did fix it by adding it manually to /etc/localdomains. But my question is, why was it not there to begin with? If it's set in the hostname within WHM, would it not be added to localdomains as well?
    0
  • cPanelMichael
    I recently had this issue as well and I did fix it by adding it manually to /etc/localdomains. But my question is, why was it not there to begin with? If it's set in the hostname within WHM, would it not be added to localdomains as well?

    Hello @coursevector, The hostname is added to the /etc/localdomains file automatically during the installation of cPanel & WHM. Systems missing an entry for the hostname in the /etc/localdomains file is generally the result of using the system's "hostname" command to change the hostname instead of through WHM >> Change Hostname or the /usr/local/cpanel/bin/set_hostname command. Thank you.
    0

Please sign in to leave a comment.