Linux Command Syntax Reference Guide | Free Download Links

Monday, February 9, 2009

Sendmail Files & Commands

sendmail.cf
sendmail.mc

“sendmail.cf” is the configuration file. “sendmail.mc” is a macro file which can be used to generate “sendmail.cf” by: m4 sendmail.mc > sendmail.cf

aliases
mail aliases, must run “newaliases” after change. use :include: to include external list in a file.

.forward
per user aliases, use \yourname to prevent further expand and keeps a copy in mailbox.

access
mail access control, FEATURE(access_db) should be set in sendmail.mc. For example, in /etc/mail/access
cyberpromo.com REJECT
mydomain.com RELAY
spam@somewhere.com DISCARD
makemap hash /etc/mail/access < /etc/mail/access

/etc/mail/relaydomains

list all host/domain accepted for relaying.


COMMANDS

newaliases
rebuild the data base for the mail aliases file.

makemap
build access database, e.g, makemap hash access.db

No comments:

Post a Comment

Followers