diff --git a/en_US.ISO8859-1/books/handbook/mail/chapter.xml b/en_US.ISO8859-1/books/handbook/mail/chapter.xml index e8bcda4232..27521dc1a6 100644 --- a/en_US.ISO8859-1/books/handbook/mail/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/mail/chapter.xml @@ -383,7 +383,7 @@ FreeBSD.org mail is handled by 10 mx1.FreeBSD.org right side of the table. Whenever this file is updated, update its database and - restart Sendmail: + restart Sendmail: &prompt.root; makemap hash /etc/mail/access < /etc/mail/access &prompt.root; service sendmail restart @@ -393,47 +393,49 @@ FreeBSD.org mail is handled by 10 mx1.FreeBSD.org /etc/mail/aliases - This database contains a list of virtual mailboxes that - are expanded to other user(s), files, programs, or other - aliases. Here are a few examples to illustrate the + This database file contains a list of virtual mailboxes that + are expanded to users, files, programs, or other + aliases. Here are a few entries to illustrate the file format: - - Mail Aliases - root: localuser ftp-bugs: joe,eric,paul bit.bucket: /dev/null procmail: "|/usr/local/bin/procmail" - The mailbox name on the left side of the colon is expanded to the target(s) on the right. The first entry expands the - mailbox root to the - mailbox localuser, - which is then looked up again in the - aliases database. If no match is found, + root mailbox to the + localuser mailbox, + which is then looked up in the + /etc/mail/aliases database. If no match is found, the message is delivered to localuser. The second entry - shows a mail list. Mail to the mailbox ftp-bugs is expanded to the three local mailboxes joe, eric, and paul. A remote mailbox could - be specified as user@example.com. The third + be specified as user@example.com. The third entry shows how to write mail to a file, in this case /dev/null. The last entry demonstrates how to send mail to a program, /usr/local/bin/procmail, through a &unix; - pipe. + pipe. Refer to &man.aliases.5; for more information about the + format of this file. - Whenever this file is updated, run make - in /etc/mail/ to update the + Whenever this file is updated, run newaliases + to update and initialize the aliases database. - + /etc/mail/sendmail.cf @@ -483,34 +485,37 @@ mail.example.com /etc/mail/virtusertable - The virtusertable maps mail addresses + This database file maps mail addresses for virtual domains and users to real mailboxes. These mailboxes can be local, remote, aliases defined in - /etc/mail/aliases, or files. + /etc/mail/aliases, or files. This allows + multiple virtual domains to be hosted on one machine. - - Example Virtual Domain Mail Map + &os; provides a sample configuration file in + /etc/mail/virtusertable.sample to + further demonstrate its format. The following example demonstrates how + to create custom entries using that format: root@example.com root postmaster@example.com postmaster@noc.example.net @example.com joe - - The above example contains a mapping for the domain - example.com. - This file is processed in a first match order. The first item - maps root@example.com to the local mailbox - root. The second - entry maps postmaster@example.com to the - mailbox postmaster - on the host noc.example.net. Finally, - if nothing from example.com has matched so - far, it will match the last mapping, which matches every other - mail message addressed to someone at example.com to the local - mailbox joe. + This file is processed in a first match order. When an + email address matches the address on the left, it is mapped to + the local mailbox listed on the right. The format of the first entry in + this example maps a specific email address to a local mailbox, + whereas the format of the second entry maps a specific email + address to a remote mailbox. Finally, any email address + from example.com which has not matched any of the previous entries + will match the last mapping and be sent to the local mailbox + joe. When creating custom entries, use + this format and add them to + /etc/mail/virtusertable. Whenever this + file is edited, update its database and restart + Sendmail: + + &prompt.root; makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable +&prompt.root; service sendmail restart