Linux Command Syntax Reference Guide

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

Printer Configuration Files

/etc/printcap
/etc/printcap.local

Printer capabilities data base.

/etc/lpd.conf
LPRng configuration file.

/etc/lpd.perms

permissions control file for the LPRng line printer spooler

/etc/hosts.lpd

Access control (BSD lpd).

/etc/hosts.equiv
trusted hosts.

PRINTER

Environment variable of default printer.

/dev/lp0

parallel port.


Commands
---------------


lpc, lpq, lprm
line printer control program, print queue maintain

Followers