On Wed, Sep 24, 2014 at 2:03 PM, Viktor Dukhovni <postfix-us...@dukhovni.org> wrote: > On Wed, Sep 24, 2014 at 01:55:03PM -0400, leam hall wrote: > >> I'm trying to send root's mail on a linux box to my regular host. In >> /etc/aliases I have: >> >> root: my.m...@example.com >> >> If I manually send to my.m...@example.com I get the mail. With the >> alias above if I "mail root" it does not make it. >> >> Thoughts? > > The answer is in the logs. > > root -> > root@$myorigin -> > possible input stage rewrites, such as: canonical(5), virtual(5) -> > (localpart@somedomain, transport, nexthop) > > So if transport is not "local" or "localpart" is not "root" or you > never ran "postalias" to update your aliases database, then the > alias is not seen. > > See also: > > http://www.postfix.org/MULTI_INSTANCE_README.html#quick > > For a null-client configuration example with rewriting for root, > and the like. > > -- > Viktor.
I've run newaliases and reloaded postfix. Here's the config: postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces = localhost inet_protocols = ipv4 mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost mynetworks_style = host newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES relay_domains = sample_directory = /usr/share/doc/postfix-2.6.6/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 -- Mind on a Mission