Dan Mahoney via Postfix-users:
> > Use a virtual alias mapping from "[email protected]" 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:
> > [email protected] [email protected]
> >
> > 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.
> 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
[email protected] root@localhost
or
[email protected] 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 -- [email protected]
To unsubscribe send an email to [email protected]