NEWALIASES(8)
π newaliases β the system manager's manual, but make it group chat π
okay bestie, welcome to newaliases(8) β she's a System Manager's Manual girlie and she's here to rebuild your mail aliases. yes, that's the whole vibe. let's get into it π
β¨ NAME β¨
newaliases β rebuild mail aliases. that's it. that's the tweet π¦
πΈ SYNOPSIS πΈ
newaliases [-f file]
π DESCRIPTION π
so here's the tea: newaliases makes the changes you made to the mail aliases file actually visible to smtpd(8). like, she's the messenger. she tells the mail server "hey, the aliases changed, look at them please" π«Ά
you should run her every single time the aliases(5) file is changed. not sometimes. not when you remember. every time, periodt π€
where does the alias file even live, you ask? that's defined in smtpd.conf(5), and it defaults to /etc/smtpd/aliases. cute, right?
The options are as follows:
-ffile β use file as the configuration file, instead of the default/etc/smtpd/smtpd.conf. basically "bestie, ignore the usual config, use this one instead" π«
π§ the equivalence lore π§
okay this part is lowkey iconic because newaliases is basically a shortcut and it depends on what kind of files you're rocking:
If you're using database (db) files, newaliases is equivalent to running makemap(8) like this:
# makemap -t aliases /etc/smtpd/aliases
If you're using plain text files instead, newaliases is equivalent to running smtpctl(8) like this:
# smtpctl update table aliases
same energy, different backend. iykyk π₯
π FILES π
/etc/smtpd/aliasesβ List of local user mail aliases./etc/smtpd/virtualβ List of virtual host aliases.
these are the files in question. know them, love them π
β EXIT STATUS β
The newaliases utility exits 0 on success, and >0 if an error occurs.
so like β 0 means slay, anything bigger means something went off and you should maybe look at it π
π SEE ALSO π
smtpd.conf(5), makemap(8), smtpctl(8), smtpd(8)
go read these, they're her friends and honestly they ate π
π HISTORY π
The newaliases command first appeared in OpenBSD 4.6 as a replacement for the equivalent command shipped with sendmail. glow-up behavior, honestly β¨
ngl bestie, the one thing to remember: change the aliases file β run newaliases. that's the self-care routine π
and that's a wrap! this page came from the Debian crew, dated July 20, 2018 β mwah, thanks for coming to my ted talk πππ¦
π¦ where this page comes from
- alpine 3.24: opensmtpd-doc 7.8.0_p0-r0 Β· ISC
- arch rolling: opensmtpd 7.9.0p0-1 Β· custom
- Copyright (c) 2009 Jacek Masiulaniec <jacekm@openbsd.org>
- Copyright (c) 2008-2009 Gilles Chehade <gilles@poolp.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms