> On Jun 15, 2024, at 15:03, Wietse Venema via Postfix-users > <postfix-users@postfix.org> wrote: > > 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. They do, yes, but cron messages generally do not, which is why I'm trying to solve for the more general problem. -Dan _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: myorigin usage for ONLY unqualified addresses
Dan Mahoney via Postfix-users Sat, 15 Jun 2024 15:07:40 -0700
- [pfx] myorigin usage for ONLY unqualifie... Dan Mahoney via Postfix-users
- [pfx] Re: myorigin usage for ONLY u... Wietse Venema via Postfix-users
- [pfx] Re: myorigin usage for ON... Viktor Dukhovni via Postfix-users
- [pfx] Re: myorigin usage for ON... Dan Mahoney via Postfix-users
- [pfx] Re: myorigin usage fo... Wietse Venema via Postfix-users
- [pfx] Re: myorigin usag... Wietse Venema via Postfix-users
- [pfx] Re: myorigin... Dan Mahoney via Postfix-users