On 7/16/2018 8:32 AM, Todd C. Miller wrote:

On Sun, 15 Jul 2018 17:59:58 -0700, Scott Vanderbilt wrote:

In /etc/mail/aliases, there is the following note:

#       >>>>>>>>>>        The program "newaliases" must be run after
#       >> NOTE >>  this file is updated for any changes to
#       >>>>>>>>>>        show through to smtpd.

That is correct.

Yet the man page for newaliases(8) says:

Note: this utility is provided for sendmail compatibility. The
preferred way of rebuilding the database is withmakemap(8)
<https://man.openbsd.org/makemap.8>:

This is bad advices that should be removed.  It is only true if
using db files for aliases.  When using a flat file for aliases,
you should use newaliases, which will notify smtpd that the file
has changed.

Taking the note in the man page at face value, I would expect that the
note in /etc/mail/aliases is now out-of-date, is it not? Or am I
overlooking something?

It is the other way around.

Thanks for your explanation, Todd.

BTW, newaliases seg faults for me with latest couple of snapshots (amd64). No message other than "segmentation fault". Just submitted a PR with sendbug.


Reply via email to