[Next] [Previous] [Up] [Top] [Contents]

CHAPTER 26 Mail

26.4 Installation of sendmail


1. Edit sendmail.cf to put in the desired values for your system.
You can create the "fast" or "frozen" version of sendmail.cf, with the "-bz" option but you probably don't want to. If you do, it's installed in sendmail.fc. This will execute faster, though on today's cpu's this isn't that much of an advantage anymore. sendmail.cf will be ignored when sendmail.fc exists.

Kill and restart the sendmail daemon. Use "ps" to determine the process ID of sendmail.
# kill #PID#
# /usr/lib/sendmail -bd -q1h
This starts the daemon (-bd) and requests that it process messages in the queue every 1 hour (-q1h).

To check the list of messages in the queue use:

% /usr/lib/sendmail -bp or mailq.

You can test the address rewriting rules of the sendmail.cf file by running sendmail in test mode, e.g., to see how the mail server, will treat the address, frank@magnus, going through ruleset 0:

% /usr/lib/sendmail -bt

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)

Enter <ruleset> <address>

> 0 frank@magnus

rewrite: ruleset 0 input: frank @ magnus

rewrite: ruleset 98 input: frank @ magnus

rewrite: ruleset 98 returns: frank @ magnus

rewrite: ruleset 97 input: frank @ magnus

rewrite: ruleset 3 input: frank @ magnus

rewrite: ruleset 96 input: frank < @ magnus >

rewrite: ruleset 96 returns: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 3 returns: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 0 input: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 98 input: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 98 returns: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 95 input: < > frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 95 returns: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 0 returns: $# smtp $@ magnus . acs . ohio-state . edu . $: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 97 returns: $# smtp $@ magnus . acs . ohio-state . edu . $: frank < @ magnus . acs . ohio-state . edu . >

rewrite: ruleset 0 returns: $# smtp $@ magnus . acs . ohio-state . edu . $: frank < @ magnus . acs . ohio-state . edu . >


Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]