Installing and Administering Internet Services

Chapter 2 67
Installing and Configuring Internet Services
Troubleshooting sendmail
kill -1 `cat /var/run/syslog.pid`
Printing and Reading the Mail Queue
The current contents of the mail queue can be printed with the following
command:
mailq
The output looks similar to this example:.
Mail Queue (3 requests)
---QID--- --Size-- ----Q-Time----
----Sender/Recipient-----
AA15841 86 Wed Feb 9 07:08 janet
(Deferred: Connection refused by med.hub.com)
ees@vetmed.umd.edu
ebs@surv.ob.com
AA15794 1482 Wed Feb 9 07:57 carole
bja@edp.cloq.potlatch.com
vls@ee.cmu.edu
AA15792 10169 Wed Feb 9 07:57 chuck
hrm@per.stmarys.com
sys6!sysloc!njm
vls@ce.umd.edu
The first entry is a message with queue ID AA15841 and a size of 86
bytes. The message arrived in the queue on Wednesday, February 9 at
7:08 a.m. The sender was janet. She sent a message to the recipients
ees@vetmed.umd.edu and ebs@surv.ob.com. sendmail has already
attempted to route the message, but the message remains in the queue
because its SMTP connection was refused. This usually means that the
SMTP server is temporarily not running on the remote host, but it also
occurs if the remote host never runs an SMTP server. sendmail attempts
to deliver this message the next time the mail queue is processed.
Two other messages in the queue are also routed for delivery the next