NEWALIASES(8)
π NEWALIASES(8) β bestie, your aliases are about to be seen π
okay so quick vibe check: this is newaliases from section 8 of the System Manager's Manual, and it is genuinely the glow-up your mail aliases have been waiting for. no cap.
β¨ NAME β¨
newaliases β rebuild mail aliases π¦
πΈ SYNOPSIS πΈ
newaliases [-f file]
π DESCRIPTION π
so like, the newaliases utility makes changes to the mail aliases file visible to smtpd(8). that's the whole point, that's the assignment, and it ate. π
you should run it every single time the aliases(5) file is changed. every time. no skipping, no "oh I'll do it later", bestie the mail is not going to figure it out on its own. π
where does the alias file even live? it's defined in smtpd.conf(5), and it defaults to /etc/opensmtpd/aliases β iconic location, lowkey.
The options are as follows:
-f fileβ use file as the configuration file, instead of the default/etc/opensmtpd/smtpd.conf. yeah, you get to pick your own, main character behaviour. π
π₯ so what is it actually doing under the hood π₯
it depends on what flavour of alias file you're rocking, and both paths are valid:
if you're using database (db) files, newaliases is equivalent to running makemap(8) like this:
# makemap -t aliases /etc/opensmtpd/aliases
if you're using plain text files, newaliases is equivalent to running smtpctl(8) like this:
# smtpctl update table aliases
same energy, different plumbing. it's giving "two paths, one slay". β¨
π FILES π
/etc/opensmtpd/aliasesβ list of local user mail aliases. the classics. π/etc/opensmtpd/virtualβ list of virtual host aliases. the plot twist. π
β EXIT STATUS β
the newaliases utility exits 0 on success, and >0 if an error occurs. so if you get a 0, that's a win, go celebrate. if you get anything above 0, something went wrong and you should go look at it. π
real talk:0= slay,>0= not slay. that's the whole chart.
π SEE ALSO π
smtpd.conf(5), makemap(8), smtpctl(8), smtpd(8)
go read them, they're all part of the same friend group. π«Ά
π§ HISTORY π§
the newaliases command first appeared in OpenBSD 4.6, as a replacement for the equivalent command shipped with sendmail. so it's been serving looks since way back. periodt. π
and that's the page, bestie!! this one came out of the System Manager's Manual, version $Mdocdate: July 20 2018 $, filed under NEWALIASES(8). run it after every alias edit, ok? mwah πβ¨
π¦ where this page comes from
- epel 10: opensmtpd 7.9.0p0-1.el10_3 Β· ISC
- epel 9: opensmtpd 7.6.0p1-1.el9 Β· ISC
- fedora 43: opensmtpd 7.7.0p0-3.fc43 Β· ISC
- fedora 43: opensmtpd 7.8.0p0-1.fc43 Β· ISC
- fedora 44: opensmtpd 7.8.0p0-2.fc44 Β· ISC
- fedora 44: opensmtpd 7.9.0p0-1.fc44 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms