The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Root Email Forwarding Not Working

Discussion in 'E-mail Discussions' started by celiac101, Dec 30, 2014.

  1. celiac101

    celiac101 Active Member

    Joined:
    Dec 19, 2012
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    A few months back my root forwarders stopped working. I may have been when I changed the hostname of the server. The server/host name was scott.domain1.com and I changed it to scott.domain2.com.

    The emails that are not being delivered use root@scott.domain1.com or user1@scott.domain1.com.

    The forwards are set up properly in WHM >> Home »Server Contacts »Edit System Mail Preferences.

    I also tried using the /root/.forward method, but it didn't work.

    I'd appreciate any help on how to get the root email to properly forward to the new hostname domain2.
     
  2. mageshm

    mageshm Well-Known Member

    Joined:
    Apr 17, 2014
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Chennai, INDIA
    cPanel Access Level:
    DataCenter Provider
    Hi,

    Check once whether any mail generated or not using below command and update me.

    # grep "root@" /var/log/exim_mainlog
     
  3. celiac101

    celiac101 Active Member

    Joined:
    Dec 19, 2012
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    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.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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:
    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
     
  5. celiac101

    celiac101 Active Member

    Joined:
    Dec 19, 2012
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    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 www.domain1.com, but I believe it was because I was using that domain on my old server, and this was a way that I could set it up without buying another domain.

    In any case, the emails that are not being delivered are going to root@scott.domain1.com, or user@scott.domain1.com. I know that I used to get all root emails forwarded to me properly, and I am not 100% sure when that stopped, but think that it may have been when I changed the server's host name to the scott.domain2.com.

    Using CSF ConfigServer Mail Queues I can view the headers of the undelivered emails, and they contain:
    and when I try to force delivery of the email I get this error:

     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The latter would not be a valid hostname. There are instructions here:

    Home » Networking Setup » Change Hostname

    The docs for this are here:
    Change Hostname - cPanel Documentation

    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.
     
  7. celiac101

    celiac101 Active Member

    Joined:
    Dec 19, 2012
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    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:

    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).
     
  8. celiac101

    celiac101 Active Member

    Joined:
    Dec 19, 2012
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    The emails were finally delivered after making the cpanel changes above...thank you!
     
Loading...

Share This Page