Hany Aziz via Exim-users <[email protected]> (So 10 Mär 2019 08:59:05 CET):
> Changing the alias in /etc/aliases to
>
>     root: user1, root

In theory this would work, in practice it won't with Exim. Exim has a
build time "FIXED_NEVER_USERS" list, which in most environments contains
"root" and thus it can't be overridden.

The "never_users" option appends its value to this list. Check the
output of `exim -bV` for "Fixed never_users:". For delivery Exim
won't change its UID to one of these UIDs.

> I did also retest after sending out the commands (as root):
>     sudo newaliases
>     sudo service exim4 restart

These commands are normally not necessary with the common Exim
installations, as as Exim reads the /etc/aliases as a text file each
time it does a delivery attempt. So there is no need to rebuild the
aliases and no need to restart/reload Exim.

> But, this still has no effect. "user1" still gets the email, root does not 
> get a copy.
You'll have bounces instead :) And the log file should tell you about
the failed attempts.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -

Attachment: signature.asc
Description: PGP signature

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to