Changes

From SME Server
Jump to navigationJump to search
1,140 bytes added ,  17:51, 5 October 2008
Line 90: Line 90:     
Direct comments or questions to [[Bugzilla:3418]]
 
Direct comments or questions to [[Bugzilla:3418]]
 +
 +
====qploggrep====
 +
<b>qploggrep</b> allows you to search your existing qpsmtpd logs as though they had been generated by <b>qplogtail</b>, then display matching results.
 +
 +
To install:
 +
cd /usr/local/bin
 +
wget -O qploggrep <nowiki>http://bugs.contribs.org/attachment.cgi?id=2034</nowiki>
 +
chmod 755 qploggrep
 +
 +
To Run:
 +
* Search all existing qpsmtpd logs for email to or from user@domain.tld:
 +
qploggrep user@domain.tld
 +
* Search for email to or from user@domain.tld that was denied by spamassassin:
 +
qploggrep spamassassin | grep user@domain.tld
 +
* Display all qpsmtpd transactions denied due to ''dnsbl'':
 +
qploggrep dnsbl
 +
* Display the total connection time for all connections, sorted by connection time:
 +
qploggrep connection_time | sort -k 3 -n
 +
 +
Program Notes:
 +
* ''qploggrep'' cannot locate information that is not there.  For example, since the ''dnsbl'' plugin drops the incoming connection before the remote server specifies the addressee, you cannot find out who the blocked message was addressed to.
 +
* ''qploggrep'' uses a case-insensitive search, so <tt>qploggrep abc</tt> will locate lines containing ''abc'', ''ABC'', ''aBc'', etc.
    
====[[Qpsmtpd_connection_time]]====
 
====[[Qpsmtpd_connection_time]]====

Navigation menu