Electronic Mail
/etc/aliases file
alias
:
name
[
name
...]
Define a mail alias as the specified list of user(s) and/or other aliases. Aliases can be nested. An initial backslash defines a terminal alias (not subject to further expansion).
This file is stored in /etc/mail/aliases under FreeBSD and HP-UX.
sendmail
File/directory locations
Boot script configuration file
FreeBSD: |
/etc/rc.conf: |
|
|
|
|
HP-UX: |
/etc/rc.config.d/mailservs: |
|
|
|
|
Linux: |
/etc/sysconfig/sendmail: |
|
|
|
|
Solaris: |
/etc/default/sendmail: |
|
|
|
|
sendmail.cf directory
Usual: |
/etc/mail |
|
|
AIX: |
/etc |
Linux: |
/etc |
Configuration file build area
AIX: |
/usr/samples/tcpip/sendmail/cf |
FreeBSD: |
/usr/share/sendmail/cf/cf |
HP-UX: |
/usr/newconfig/etc/mail/cf/cf |
Linux: |
/usr/share/sendmail-cf/cf (Red Hat) |
|
/usr/share/sendmail/cf (SuSE) |
Solaris: |
/usr/lib/mail/cf |
syslog mail facility messages
FreeBSD: |
/var/log/maillog |
HP-UX: |
/var/adm/syslog/mail.log |
Linux: |
/var/log/maillog (Red Hat), /var/log/mail (SuSE) |
Solaris: |
/var/adm/messages |
sendmail
sendmail [
options
]
Main sendmail
server program.
Options
-bd -q
n
m
Run as a daemon, checking the queue every n minutes.
-bp
List the sendmail work queue (/var/queue/mqueue).
-bt
Interactive address translation mode. Subcommands:
|
List MX records for host. |
|
Translate a mapped address. |
|
Address translation for mailer/recipient. Use ... |
Get Essential System Administration Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.