> 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

Reply via email to