Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

aliases(5) [freebsd man page]

ALIASES(5)							File Formats Manual							ALIASES(5)

NAME
aliases - aliases file for sendmail SYNOPSIS
aliases DESCRIPTION
This file describes user ID aliases used by sendmail. The file resides in /etc/mail and is formatted as a series of lines of the form name: addr_1, addr_2, addr_3, . . . The name is the name to alias, and the addr_n are the aliases for that name. addr_n can be another alias, a local username, a local file- name, a command, an include file, or an external address. Local Username username The username must be available via getpwnam(3). Local Filename /path/name Messages are appended to the file specified by the full pathname (starting with a slash (/)) Command |command A command starts with a pipe symbol (|), it receives messages via standard input. Include File :include: /path/name The aliases in pathname are added to the aliases for name. E-Mail Address user@domain An e-mail address in RFC 822 format. Lines beginning with white space are continuation lines. Another way to continue lines is by placing a backslash directly before a new- line. 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. 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. 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/mail/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. SEE ALSO
newaliases(1), dbm(3), dbopen(3), db_open(3), sendmail(8) SENDMAIL Installation and Operation Guide. SENDMAIL An Internetwork Mail Router. 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. HISTORY
The aliases file format appeared in 4.0BSD. $Date: 2013-11-22 20:51:55 $ ALIASES(5)

Check Out this Related Man Page

aliases(4)						     Kernel Interfaces Manual							aliases(4)

NAME
aliases - Contains alias definitions for the sendmail program SYNOPSIS
/var/adm/sendmail/aliases DESCRIPTION
By default, the aliases file contains the required aliases for the sendmail program. Do not delete these defaults because they are needed by the system. This file describes user ID aliases used by the sendmail command. It is formatted as a series of lines in the form: name: name_1, name_2, name_3,.. The name is the name that needs an alias, and the name_n are the aliases for that name. Lines beginning with white space are continuation lines. Lines beginning with a # (number sign) are comments. You can define an alias only on local names. Duplicate addresses are removed and no message is sent to any person more than once. For example, if name_1 defines an alias that is name_2 and name_2 defines an alias that is name_1, sendmail does not send the same message back and forth. 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 information that defines the aliases is placed into a binary format in the files /var/adm/send- mail/aliases.dir and /var/adm/sendmail/aliases.pag using the newaliases command. For the change to take effect, the newaliases command must be executed each time the aliases file is changed. The sendmail program also supports sending messages to programs or appending a message to a file. See the sendmail(8) reference page for further information. Special Aliases Directs error messages that occur when sending to aliasname back to address. RESTRICTIONS
Aliases for sendmail use the dbm(3) database format for faster lookups. A single alias cannot exceed 1,000 characters. To work around this restriction, you can chain together aliases. For example: alias-list: ali1, ali2, ali3 ali1: name 1, name 2 ... ali2: name n, name n + 1 FILES
Binary aliases file. Binary aliases file. RELATED INFORMATION
Commands: newaliases(1), forward(4), local.users(4), sendmail(8) delim off aliases(4)
Man Page