Prev | Current Page 757 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


11.8 Cause Queues to Be Processed
The sendmail program offers two different methods for processing its queues. It can
be told to process them periodically or to process them once and then exit.
11.8.1 Periodically with -q
The -q command-line switchis used bothto cause queues to be processed and to
specify the interval between queue runs.
A typical invocation of the sendmail daemon looks like this:
/usr/sbin/sendmail -bd -q1h
Here, the sendmail program is placed into listening mode withth e -bd command-line
switch. The -q1h command-line switch tells it to process the queue once each hour.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
428 | Chapter 11: Manage the Queue
Note that either switch puts sendmail into the background as a daemon. The -bd
switchjust allows sendmail to listen for incoming SMTP connections. Consider the
following:
/usr/sbin/sendmail -bd
/usr/sbin/sendmail -q1h
This runs two daemons simultaneously. The first listens for incoming SMTP connections.
The second processes the queues once per hour.
The time expression following the -q is constructed from an integer followed by a letter.
The letters and the meaning of each are listed in Table 11-5. Integer and letter
groups can be combined??”for example, 5d12hmeans 5 days, 12 hours. If a letter is
missing, the default is minutes.


Pages:
745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769
dieta light fenomenalne mieszkania do wynajęcia warszawa życzenia ślubne praca katalog stron