ALIASES(5)

πŸ¦‹ aliases(5) β€” the aliases file for sendmail πŸ¦‹

okay bestie, welcome to the File Formats Manual entry for aliases(5) β€” it’s giving old-school mail-router energy, and we are going to get through it together πŸ’–

✨ NAME ✨

aliases β€” aliases file for sendmail

🌟 SYNOPSIS 🌟

aliases

πŸ’– DESCRIPTION πŸ’–

This file describes user ID aliases used by sendmail. It lives in /etc, no cap, and it’s formatted as a series of lines that look like this:

name: addr_1, addr_2, addr_3, . . .

The name is the name to alias, and the addr_n are the aliases for that name. And addr_n can be another alias, a local username, a local filename, a command, an include file, or an external address. versatile icon behavior ✨

🧁 Local Username 🧁

username

The username must be available via getpwnam(3). like, it has to be lookup-able, periodt.

πŸ“ Local Filename πŸ“

/path/name

Messages are appended to the file specified by the full pathname β€” and yes, that means it starts with a slash (/). full path main character energy πŸ’…

πŸŽ€ Command πŸŽ€

|command

A command starts with a pipe symbol (|), and it receives messages via standard input. pipe it, bestie 🫢

πŸ¦‹ Include File πŸ¦‹

:include: /path/name

The aliases in pathname are added to the aliases for name. it’s literally an alias field trip 🌈

πŸ’œ E-Mail Address πŸ’œ

user@domain

An e-mail address in RFC 822 format. classic, iconic, no notes ✨


Lines beginning with white space are continuation lines. Another way to continue lines is by placing a backslash directly before a newline. Lines beginning with # are comments.

Aliasing occurs only on local names. Loops can not occur, since no message will be sent to any person more than once. love that for us β€” no cursed infinite loop situation 😭

If an alias is found for name, sendmail then checks for an alias for owner-name. If it is found and the result of the lookup expands to a single address, the envelope sender address of the message is rewritten to that address. If it is found and the result expands to more than one address, the envelope sender address is changed to owner-name. okay so that’s the owner-name lore πŸ‘‘

After aliasing has been done, local and valid recipients who have a .forward file in their home directory have messages forwarded to the list of users defined in that file.

This is only the raw data file; the actual aliasing information is placed into a binary format in the file /etc/aliases.db using the program newaliases(1). A newaliases command should be executed each time the aliases file is changed for the change to take effect. so like… don’t forget to run it, bestie πŸ’€

πŸŽ€ SEE ALSO πŸŽ€

πŸ’€ BUGS πŸ’€

If you have compiled sendmail with DBM support instead of NEWDB, you may have encountered problems in dbm(3) restricting a single alias to about 1000 bytes of information. You can get longer aliases by β€œchaining”; that is, make the last name in the alias be a dummy name which is a continuation alias. not the 1000-byte limit 😭 but chaining is the workaround, iykyk 🫢

🌸 HISTORY 🌸

The aliases file format appeared in 4.0BSD. vintage! iconic! historic! πŸ‘‘


that’s the whole page, bestie β€” footer check: $Date: 2013-11-22 20:51:55 $, and the manual tag is ALIASES(5). byeee πŸ’œπŸ’…

πŸ“¦ where this page comes from
  • epel 10: sendmail 8.18.1-4.el10_0 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
  • fedora 43: sendmail 8.18.1-13.fc43 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
  • fedora 44: sendmail 8.18.2-2.fc44 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
  • fedora 44: sendmail 8.18.2-4.fc44 Β· sendmail-8.23 AND MIT AND MIT-CMU AND BSD-3-Clause AND CDDL-1.0 AND BSD-4-Clause AND BSD-4-Clause-UC AND PostgreSQL AND ISC AND HPND-sell-variant AND mailprio
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms