Skip to main content

Root Email Forwarding Not Working

Comments

7 comments

  • mageshm
    Hi, Check once whether any mail generated or not using below command and update me. # grep "root@" /var/log/exim_mainlog
    0
  • celiac101
    Yes, email is there. I also use CSF ConfigServer Mail Queues and see over a dozen email that can't be delivered at any given time.
    0
  • Infopro
    Neither of those email addresses is an actual email address though, if I understand your post properly. If the hostname is properly setup and using a valid registered domain name, all that stuff is good, and you added your email here properly: The forwards are set up properly in WHM >> Home "Server Contacts "Edit System Mail Preferences.
    Not a server email address as you posted above for the example, but a valid email address like, you@yourdomain.com then all email being forwarded, will come to you from those example emails (ex: root@scott.domain2.com) as you've posted above. Make sure the hostname is setup and working as expected, make sure to use a valid email address in each section of: Home " Server Contacts " Edit System Mail Preferences
    0
  • celiac101
    Thanks for the reply, I do appreciate it. Yes to having valid and correct email addresses in the WHM >> Home "Server Contacts "Edit System Mail Preferences. I don't recall exactly why I set the server up as scott.domain1.com instead of
    and when I try to force delivery of the email I get this error: LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: exim -v -M 1Y6P1m-0007ub-RB delivering 1Y6P1m-0007ub-RB LOG: MAIN Unfrozen by forced delivery LOG: MAIN ** root@scott.domain1.com R=virtual_aliases: No such person at this address" LOG: MAIN Frozen (delivery error message)
    0
  • Infopro
    I don't recall exactly why I set the server up as scott.domain1.com instead of www.domain1.com
    The latter would not be a valid hostname. There are instructions here: Home " Networking Setup " Change Hostname Instructions It is important to choose a hostname that you will not be using for any account. You should choose something that will be socially acceptable, as it will appear in all mail headers. Your hostname must be a FQDN. In English, a hostname should consist of a name and a domain name. All valid hostnames should have 2 dots in them. Hostnames should never begin with "www". Hostnames should also not begin with a digit, nor end with a hyphen ("-").
    The docs for this are here: Change Hostname - cPanel Documentation Yes to having valid and correct email addresses in the WHM >> Home "Server Contacts "Edit System Mail Preferences.
    If you're sure the hostname is correct (you might try changing the hostname to the same thing one more time to be sure all steps completed properly), and that email address is correct, try changing the contact email to some other email address, off server.
    0
  • celiac101
    I now recall that I changed the host name via command line, and didn't realize that there was a way to do it in cpanel (which I probably should have known). I just changed the host name now via cpanel and now I get this result...but the email is still not delivered: LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: exim -v -M 1Y6QGH-0008RJ-RM delivering 1Y6QGH-0008RJ-RM LOG: MAIN Unfrozen by forced delivery LOG: MAIN remote host address is the local host: scott.domain1.com LOG: MAIN == root@scott.domain1.com R=dkim_lookuphost defer (-1): remote host address is the local host LOG: MAIN Frozen
    I should also say that my dns servers are ns1.domain1.com (points to the server's main IP), and ns2.domain1.com (uses a spare IP).
    0
  • celiac101
    The emails were finally delivered after making the cpanel changes above...thank you!
    0

Please sign in to leave a comment.