1ALIASES(5)                    File Formats Manual                   ALIASES(5)
2
3
4

NAME

6       aliases - aliases file for smtpd
7

DESCRIPTION

9       This manual page describes the format of the aliases file, as used by
10       smtpd(8).  An alias in its simplest form is used to assign an arbitrary
11       name to an email address, or a group of email addresses.  This provides
12       a convenient way to send mail.  For example an alias could refer to all
13       users of a group: email to that alias would be sent to all members of
14       the group.  Much more complex aliases can be defined however: an alias
15       can refer to other aliases, be used to send mail to a file instead of
16       another person, or to execute various commands.
17
18       Within the file, Ql # is a comment delimiter; anything placed after it
19       is discarded.  The file consists of key/value mappings of the form:
20       -filled -offset indent key: value1, value2, value3, ...
21

key is always folded to lowercase before alias lookups to ensure that there

23can be no ambiguity.  The key is expanded to the corresponding values, which
24consist of one or more of the following:
25
26     user   A user on the host machine.  The user must have a valid entry in
27            the passwd(5) database file.
28
29     /path/to/file
30            Append messages to file, specified by its absolute pathname.
31
32     | command
33            Pipe the message to command on its standard input.  The command is
34            run under the privileges of the daemon's unprivileged account.
35
36     : include: /path/to/file
37            Include any definitions in file as alias entries.  The format of
38            the file is identical to this one.
39
40     user-part@domain-part
41            An email address in RFC 5322 format.  If an address extension is
42            appended to the user-part, it is first compared for an exact
43            match.  It is then stripped so that an address such as
44            user+ext@example.com will only use the part that precedes Sq + as
45            a key.
46
47     error: code message
48            A status code and message to return.  The code must be 3 digits,
49            starting 4XX (TempFail) or 5XX (PermFail).  The message must be
50            present and can be freely chosen.
51
52     maildir: /path
53            Deliver messages to Maildir at the path.
54

FILES

56            /etc/opensmtpd/aliases
57                   Default aliases file.
58

SEE ALSO

60       smtpd.conf(5), makemap(8), newaliases(8), smtpd(8)
61

HISTORY

63       The aliases file format appeared in Bx 4.0.
64
65
66
67                           $Mdocdate: May 29 2017 $                 ALIASES(5)
Impressum