Re: [exim] Exim4 and root aliases? Send a copy to root?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Heiko Schlittermann
日付:  
To: exim-users
題目: Re: [exim] Exim4 and root aliases? Send a copy to root?
Hany Aziz via Exim-users <exim-users@???> (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 ------------ -