Page MenuHomeFreeBSD

Add /etc/rc.d/newaliases
Needs ReviewPublic

Authored by brooks on Mar 10 2025, 6:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 6, 9:27 AM
Unknown Object (File)
Sun, Mar 23, 7:10 AM
Unknown Object (File)
Mon, Mar 17, 11:12 AM
Unknown Object (File)
Mon, Mar 17, 8:29 AM
Unknown Object (File)
Fri, Mar 14, 1:24 PM
Unknown Object (File)
Mar 11 2025, 6:25 AM
Subscribers

Details

Reviewers
jhb
emaste
Summary

This script runs on firstboot and runs newaliases if /etc/mail/aliases
exists and /etc/mail/aliases.db does not. This allows image creation
scripts to avoid running newaliases.

Due to the switch to dma as the default mailier, this is a no-op in
practice unless the image has configured an alternate mailer.

/etc/rc.d/sendmail has the ability to create/update aliases.db, but it
is disabled by default even if sendmail is enabled.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 62906
Build 59790: arc lint + arc unit

Event Timeline

libexec/rc/rc.d/Makefile
318

Hmm, is this really sendmail specific? My thought was that this should be installed anytime the /usr/bin/newaliases binary (which is a hard link to mailwrapper) is installed.

libexec/rc/rc.d/Makefile
318

Indeed, it should be in utilities.

Move script into the default package (rc).

brooks marked an inline comment as done.

Be a little more friendly to installations without mail bits. It's
unclear that this really matters, but it does appear to be at least
minimally possible to install a system without email support.

I've put the script in the rc package rather then adding a new utilities section for now.