On Thu, Mar 05, 2015 at 05:36:20PM -0800, Kai Lanz wrote:
> 
> We have an RHEL-6 host on which jobs like cron and logwatch generate emails
> to the local root user. No one logs into this host as root to read those
> emails; we want to forward them to the managers (like me) who need to see
> them. I can get postfix working to send emails to remote users, but I can't
> seem to get it to forward root's email.

    http://www.postfix.org/MULTI_INSTANCE_README.html#split

With simple null-clients you can stop after setting up the
null-client without adding an MTA instance.

> I initially made the following changes to the freshly-installed postfix 
> config:
> 
> # postconf -e myorigin=stanford.edu
> # postconf -e 'relayhost=[smtp.stanford.edu]
> # postconf -e local_transport="error:local delivery disabled"
> # postconf -e smtp_use_tls=yes

With "myorigin" remote, rewriting needs to use virtual(5) not
aliases(5), as explained in the null-client example.

> I then edited /etc/aliases and added the alias for the root user:
> 
> root:           manag...@sesmail.stanford.edu

Local aliases have no effect on mail that is relayed, rather
than delivered locally.

-- 
 Kai Lanz         Stanford University          School of Earth Sciences

P.S.  The stanford.edu domain is one of the few .edu domains with
      DNSSEC enabled.  I'd like to see Stanford be the first ".edu"
      with DANE TLSA records.  The postmaster for stanford.edu can
      contacting me off-list for guidance if there any questions.

Reply via email to