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's email

Discussion in 'E-mail Discussions' started by AthensMatt, Apr 16, 2015.

  1. AthensMatt

    AthensMatt Member

    Joined:
    Mar 24, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens
    cPanel Access Level:
    Root Administrator
    I'm not receiving root's email although in /etc/aliases it my address is set as the person who should receive root's email.

    Is there another place this should be setup?

    Thank you!

    Matt
     
  2. AthensMatt

    AthensMatt Member

    Joined:
    Mar 24, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens
    cPanel Access Level:
    Root Administrator
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Try searching for the notifications in /var/log/exim_mainlog to see if they are rejected or sent out to the correct address. EX:

    Code:
    exigrep root-contact-address /var/log/exim_mainlog
    Thank you.
     
  4. AthensMatt

    AthensMatt Member

    Joined:
    Mar 24, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens
    cPanel Access Level:
    Root Administrator
    I may be reading it wrong but it looks like the mail was accepted. Here's one of the lines:

    2015-04-17 15:01:02 1YjVe-007M-7A => root@domain.com R=remoteserver_route T=remoteserver_relay H=email.domain.com [199.199.199.199] C="250 2.0.0 t3HJ12k6024866 Message accepted for delivery"

    Thoughts?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. AthensMatt

    AthensMatt Member

    Joined:
    Mar 24, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens
    cPanel Access Level:
    Root Administrator
    Yes, it's correct. Does there appear to be anything wrong with the log? it looks right to me but nothing was delivered.

    Thanks very much for the help!
     
  7. AthensMatt

    AthensMatt Member

    Joined:
    Mar 24, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens
    cPanel Access Level:
    Root Administrator
    Update:
    Direct mail is getting out. For example, if a user requests an password reset they will receive the email.
    However, forwarded mail is not leaving the cPanel server. It's as though it's not reading the /etc/aliases. Is there another file I need to edit that cPanel is reading for forwarding information, like a .forward?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You should not edit any files manually to configure forwarding. Instead, the root forwarder should be configured via:

    "WHM Home » Server Contacts » Edit System Mail Preferences"

    Also, if /var/log/exim_mainlog shows the message was sent out, you may need to review the incoming mail server logs to determine why the message was rejected.

    Thank you.
     
  9. AthensMatt

    AthensMatt Member

    Joined:
    Mar 24, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens
    cPanel Access Level:
    Root Administrator
    Still not resolved yet. I have undone changes to /etc/aliases and the forward is setup as I originally had it through the "Edit System Mail Preferences".

    I reviewed the /root/.forward and it has my email address in there. (put there by "Edit System Mail Preferences")
    From CL I can email to my personal email account and work account so I'm certain the remote SMTP forward is working properly.

    exim_mainlog log entries pertaining to a sample message:

    Code:
    2015-04-22 10:01:02 1YkvD3-0005Ry-GO => root@mydomain.edu R=remoteserver_route T=remoteserver_relay H=email.domain.edu [xxx.xxx.xxx.xxx] C="250 2.0.0 t3ME115t012887 Message accepted for delivery"
    2015-04-22 10:01:02 1YkvD3-0005Ry-GO Completed
    2015-04-22 10:05:50 SMTP connection from [127.0.0.1]:37363 (TCP/IP connection count = 1)
    2015-04-22 10:05:51 SMTP connection from localhost [127.0.0.1]:37363 closed by QUIT
    2015-04-22 10:10:56 SMTP connection from [127.0.0.1]:37373 (TCP/IP connection count = 1)
    2015-04-22 10:10:57 SMTP connection from localhost [127.0.0.1]:37373 closed by QUIT
    2015-04-22 10:15:52 SMTP connection from [127.0.0.1]:37385 (TCP/IP connection count = 1)
    2015-04-22 10:15:52 SMTP connection from localhost [127.0.0.1]:37385 closed by QUIT
    
    
    Here is the "userforward:"
    Code:
    userforward:
      driver = redirect
      allow_filter
      allow_fail
      forbid_filter_run
      forbid_filter_perl
      forbid_filter_lookup
      forbid_filter_readfile
      forbid_filter_readsocket
      check_ancestor
      check_local_user
      domains = ! +user_domains
      no_expn
      require_files = "+$home/.forward"
      condition = "${extract{size}{${stat:$home/.forward}}}"
      file = $home/.forward
      file_transport = address_file
      pipe_transport = ${if forall{/bin/cagefs_enter:/usr/sbin/cagefsctl}{exists{$item}}{cagefs_address_
    pipe}{${if match{${extract{6}{:}{${lookup passwd{$local_part}{$value}}}}}{\N(jail|no)shell\N}{jailed
    _address_pipe}{address_pipe}}}}
      reply_transport = address_reply
      directory_transport = address_directory
      user = $local_part
      group = $local_part
      no_verify
    
    
    Here is the file settings for the .forward file:

    -rw-r--r-- 1 root root 32 Apr 22 12:15 .forward

    Here is /etc/localdomains:

    mydomain.edu


    Why will it send email when emailing directly but WHM totally ignores the .forward? This one really has me stumped.
     
    #9 AthensMatt, Apr 22, 2015
    Last edited by a moderator: Dec 27, 2015
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  11. AthensMatt

    AthensMatt Member

    Joined:
    Mar 24, 2015
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Athens
    cPanel Access Level:
    Root Administrator
    Ticket has been submitted (6431407).

    Thank you in advance for the help!
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Here's an update from the analyst handing this support ticket:

    Thank you.
     
Loading...

Share This Page