Skip to main content

Root's email

Comments

11 comments

  • AthensMatt
    Sorry, it may applicable that my address is setup in "Edit System Mail Preferences" as the address for root's mail. Also possibly applicable is that I am using the SMTP relay found here:
    0
  • cPanelMichael
    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:
    exigrep root-contact-address /var/log/exim_mainlog
    Thank you.
    0
  • AthensMatt
    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:
    exigrep root-contact-address /var/log/exim_mainlog
    Thank you.

    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 => [EMAIL='root@webserver.engr.uga.edu">root@domain.com[/EMAIL] 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?
    0
  • cPanelMichael
    Hello, Is the email address you removed from the logs the correct email address that notifications should be sent to? Thank you.
    0
  • AthensMatt
    Hello, Is the email address you removed from the logs the correct email address that notifications should be sent to? Thank you.

    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!
    0
  • AthensMatt
    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?
    0
  • cPanelMichael
    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.
    0
  • AthensMatt
    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:
    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:"
    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.
    0
  • cPanelMichael
    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.
    0
  • AthensMatt
    Ticket has been submitted (6431407). Thank you in advance for the help!
    0
  • cPanelMichael
    Here's an update from the analyst handing this support ticket: It was determined the issue is with the remoteserver_route custom router. It's positioned well before the userforward router, so messages to root match that router before the userforward router is ever processed, and the end result is that mail is not forwarded according to the setting in /root/.forward.
    Thank you.
    0

Please sign in to leave a comment.