> On Jul 2, 2020, at 11:28 AM, Silas <silas_postfix_us...@nocafe.net> wrote:
> 
> Some local users (Unix accounts) on a machine are allowed to send emails 
> externally, but I want some other users (mainly administrativa accounts like 
> root and others) to use a notificat...@example.com account.

See http://www.postfix.org/MULTI_INSTANCE_README.html#quick

which shows how to do that with smtp_generic_maps.

> main.cf:
> 
>   local_header_rewrite_clients = static:all
>   sender_canonical_maps = regexp:/etc/postfix/sender_canonical

Why regexp?  Indexed files are easier to understand and manage
correctly, and even do "partial" lookup keys for you...

-- 
        Viktor.

Reply via email to