Checking the Email Queue

Checking the email queue via SSH will allow you to acquire valuable information. For instance, a high email queue may be the reason your server is experiencing high load.

Use this command to find the number of emails in the queue:
exim -bpc



Example:
root@fakeserver.dizinc.com(~)$ exim -bpc 58



Use this command to see the number of emails in the queue and print out their name, destination, and source:
exim -bp



Example:
root@hostdime.com(~)$ exim -bp 
7h  1.2K 1Vno3b-0003ia-Es <accubarc@hostdime.com> eth.anl.q2.53@hostdime.com 
7h  1.2K 1Vno40-0003lZ-09 <accubarc@hostdime.com> yul.e.vw.nd.13.5@hostdime.com 
7h  1.8K 1Vno7L-00040C-8I <stackpl@hostdime.com> (stackpl) certificates@hostdime.com 
6h  1.2K 1Vnoo5-00009h-9b <accubarc@hostdime.com> louisesmarting1@hostdime.com 5h  
1.5K 1VnpaB-0005Cx-GE <mailman-bounces@hostdime.com> Ozzie@hostdime.com 4h  
1.9K 1Vnqgn-0003kg-F5 <stackpl@hostdime.com> (stackpl) training@hostdime.com




Finding email header information:

Use this command to find the headers of a particular message. Note that ID below should be replaced with the actual message ID:
exim -Mvh ID



Example:
root@hostdime.com.com(~)$ exim -Mvh 1Vno7L-00040C-8I 
1Vno7L-00040C-8I-H 
stackpl 32194 32407 
<stackpl@hostdime.com> 
1386069975 0 
-ident stackpl 
-received_protocol local 
-body_linecount 27 
-max_received_linelength 171 
-auth_id stackpl 
-auth_sender stackpl@dime41.dizinc.com 
-allow_unqualified_recipient 
-allow_unqualified_sender 
-local -sender_set_untrusted 
XX 
1 
certificates@hostdime.com 
208P Received: from stackpl by hostdime.com with local (Exim 4.80.1) 
(envelope-from <stackpl@hostdime.com>) 
id 1Vno7L-00040C-8I for certificates@hostdime.com; Tue, 03 Dec 2013 06:26:15 -0500 
018  Mime-Version: 1.0 
025  Content-Type: text/plain 047  
X-Boxtrapper: v5R_7JXbwciJ_3TVyryf1_oPeKjGFXb8 048  
X-Autorespond: v5R_7JXbwciJ_3TVyryf1_oPeKjGFXb8 
023  Precedence: auto_reply 
025  X-Precedence: auto_reply 
014* From: stackpl 
039T To: certificates@hostdime.com 
083  Subject: Your email requires verification verify#TUPgMGzJgkB7aFdbZ5228-1386069975) 
035F From:  <stackpl@hostdime.com> 
050I Message-Id: <E1Vno7L-00040C-8I@hostdime.com> 
038  Date: Tue, 03 Dec 2013 06:26:15 -0500




Use this command to find the body of a particular message. ID below is the actual message ID:
exim -Mvb ID



Example:
root@hostdime.com(~)$ exim -Mvb 1Vno7L-00040C-8I 
1Vno7L-00040C-8I-D 
The message you sent requires that you verify that you are a real live human being and not a spam source. To complete this verification, simply reply to this message and leave the subject line intact or click the link below: 

https://www.hostdime.com/cgi-sys/bxd.cgi?a=stackpl&id=TUPgMGzJgkB7aFdbZ5228-1386069975 

The headers of the message sent from your address are shown below: 
From Certificates@hostdime.com
Tue Dec 03 06:26:15 2013 
Received: from hostdime.com 
([64.34.206.128]:16852) by hostdime.com with esmtp (Exim 4.80.1) 
(envelope-from <Certificates@hostdime.com>) 
id 1Vno7K-0003zt-GA for sandra@hostdime.com; Tue, 03 Dec 2013 06:26:14 -0500 Received: by hostdime.com id hjmvtc1o0n8s for <sandra@hostdime.com>; Mon, 2 Dec 2013 22:20:42 -0500 (envelope-from <Certificates@hostdime.com>) 
Date: Mon, 02 Dec 2013 22:20:42 -0500 
X-Sender: Certificates@hostdime.com 
To: sandra@hostdime.com 
From: Certificates for Compliance <Certificates@hostdime.com> 
Subject: Certificate 
Mime-Version: 1.0 
Content-Type: multipart/alternative; 
boundary="=====================_1734012==_"