ALIASES(5)
π ALIASES(5) π
okay bestie, gather round π«Ά this is the aliases file format manual β ALIASES(5), straight out of the File Formats Manual. yes it's a manpage, no it's not boring, i promise π
β¨ NAME β¨
aliases β the aliases file for smtpd π
πΈ DESCRIPTION πΈ
So this page explains the format of the aliases file, the one smtpd(8) uses. An alias, in its simplest form, is literally just assigning an arbitrary name to an email address or a whole group of email addresses. it's giving convenience β¨ β a super handy way to send mail. like, an alias could refer to all the users of a group, and mail sent to that alias would go to every member of the group. and that's just the simple version, because you can define way more complex aliases: an alias can refer to other aliases, be used to send mail to a file instead of another person, or even execute various commands. main character alias energy, fr fr π
Inside the file, # is a comment delimiter β anything placed after it gets discarded, no cap π
The file is made up of key/value mappings of the form:
-filled -offset indent key: value1, value2, value3, ...
key is always folded to lowercase before alias lookups happen, so there can be no ambiguity, periodt. the key then expands to the corresponding values, and those values consist of one or more of the following:
userβ a user on the host machine π§ the user must have a valid entry in thepasswd(5)database file, that part is not optional./path/to/fileβ append messages to the file, specified by its absolute pathname π| commandβ pipe the message tocommandon its standard input. the command is run under the privileges of the daemon's unprivileged account π: include: /path/to/fileβ include any definitions in the file as alias entries. the format of that file is identical to this one πͺuser-part@domain-partβ an email address in RFC 5322 format π§ if an address extension is appended to the user-part, it is first compared for an exact match. it is then stripped, so that an address such asuser+ext@example.comwill only use the part that precedes+as a key πerror: code messageβ a status code and message to return. the code must be 3 digits, starting4XX(TempFail) or5XX(PermFail). the message must be present and can be freely chosen π¨
heads up bestie: thaterror:code really does have to be 3 digits, and it really does have to start with4XX(TempFail) or5XX(PermFail). and the message? mandatory. no message, no vibes π
π FILES π
/etc/opensmtpd/aliasesβ the default aliases file π
π SEE ALSO π
smtpd.conf(5), makemap(8), newaliases(8), smtpd(8)
π HISTORY π
The aliases file format appeared in Bx 4.0 β
that's a wrap, bestie π this page is dated $Mdocdate: February 13 2021 $, and the footer stamps it as ALIASES(5) from the File Formats Manual β so go forth, write your aliases, and stay iconic πβ¨π
π¦ 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