One addendum about how to distinguish from root@mydomain from different hosts.
Dan Mahoney via Postfix-users: > > Use a virtual alias mapping from "r...@dayjob.org" to the collector > > email address. This is a variation on > > > > /usr/local/etc/postfix/main.cf: > > virtual_alias_maps = hash:/local/etc/postfix/virtual-for-root > > > > /local/etc/postfix/virtual-for-root: > > r...@dayjob.org collector-u...@collector-host.dayjob.org > > > > Run "postmap hash:/local/etc/postfix/virtual-for-root" after > > editing the file. > > > > Instead of a hash: map you could use a networked table such as *SQL > > or LDAP. > > This would still result in rootmail being from root@mydomain, not > root@myhostname -- regardless of the destination, which makes it > way more confusing to read. I forgot to mention that FreeBSD daily/security/weekly/monthly email messages have the hostname in the Subject. Like this: Subject: hostname.porcupine.org weekly run output Subject: hostname.porcupine.org daily run output Subject: hostname.porcupine.org daily security run output They arrive in the same mailbox, and there is confusion about their provenance. > However, we would like our rootmail to respect our aliases file, > which tells root to go to a specific mail destination on a specific > box. Set up a virtual alias r...@dayjob.org root@localhost or r...@host.dayjob.org root@localhost (which one depends on myorgin and masquerade_xxx settings). The Postfix local delivery agent will then respect the local aliases database. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org