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.

Email is not forwarding

Discussion in 'E-mail Discussions' started by JohnnyNW, Dec 8, 2014.

  1. JohnnyNW

    JohnnyNW Member

    Joined:
    Dec 8, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've been on this issue for about 6 days now and have resorted to posting here -- I'm a desperate man, please help.

    I created a new account, and have all emails forwarded through this account, root, cpanel, nobody, using Edit System Mail Preferences.

    I made sure they were in /etc/localaliases file too.

    AND they were great! :)

    Forwards all emails to and from server, with no issues... . even root@hostname.example.com

    EXCEPT...

    Here is the kicker...

    The domain website directory /home/zz1488/pulbic_html/example_website is owned by zz1488, so of course I included zz1488 in the /etc/localaliases but its not forwarding through new account email -- zz1488@hostname.example.com should also be going through new account email.

    Basically, I have WordPress with contact page, email notifications, registration link, etc.

    BUT every time the website kicks off the Wordpress scripting to email, it is using ownership zz1488, yet zz1488@hostname.example.com gets rejected because it doesn't have a DKIM, SPF, etc., that is why I am having all these go through new account email.

    They all work, EXCEPT zz1488@hostname.example.com

    What am I missing?

    What can I do?

    I would put ownership directory at root, but we all know that is very, very bad, and nobody isn't ideal either.

    Please help...You can have my first born, hell, take the second one too.

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you considered having the email delivered to a user@domain address and then forwarding that email to the root email address?

    Thank you.
     
  3. JohnnyNW

    JohnnyNW Member

    Joined:
    Dec 8, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Can't. As I mentioned, it's WordPress auto scripting with photos mail (). So, as I mentioned, I need WHM to allow zz1488@hostname.example.com to be forwarded to new account email like root, nobody and cpanel is forwarded. PLEASE HELP.
     
  4. JohnnyNW

    JohnnyNW Member

    Joined:
    Dec 8, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Meant to type php mail not photo mail...
     
  5. JohnnyNW

    JohnnyNW Member

    Joined:
    Dec 8, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Okay, figured it out...

    In WHM > Service Configuration > PHP Configuration Editor >> Advanced Mode >> Mail - sendmail_path

    Change to new account email address and this will force all emails from server, even root@hostname, user@hostname, etc. to go through email address: /usr/sbin/sendmail -t -i -f user@domain.com

    sendmail_path is in php.ini file

    This has been resolved by me, and wanted share resolution :D
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page