V8 sendmail allows variations on -q: -qI allows you to specify a specific message
identifier for processing; -qR allows you to specify specific recipient addresses for
processing; and -qS allows you to specify specific sender addresses for processing.*
11.8.2.1 Process the queue once: -q
The -q command-line switch, without an interval argument, tells sendmail to process
the queue once, and then exit. As such, this switch is a handy administrative
tool. When the queue fills unexpectedly between queue runs of the daemon, for
example, the -q command-line switch can be used to force an immediate queue run:
# /usr/sbin/sendmail -q
When multiple queues are run this way, they are all processed in parallel (?§11.3.1.2
on page 403).
On machines that do not run the sendmail daemon, the -q command-line switchcan
be used in conjunction with cron(8) to periodically process the queue. The following
crontab(5) file entry, for example, causes sendmail to be run once per hour, at five
minutes past the hour, to silently process its queues and exit:
5 * * * * /usr/sbin/sendmail -q >/dev/null 2>&1
When used in conjunction with other switches (shown next), the -q switchallows
many queue problems to be conveniently handled.
11.8.2.2 Combine -v with -q
The -q switchwith out an argument prevents sendmail from running in the background
and detaching from its controlling terminal.
Pages:
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774