Jake Vickers wrote:
[email protected] wrote:
Hi List,
Is there an easy way to read logs for any email thay may have been blocked
by qmail`s RBLs or clamav etc etc.



There's some utilities in the Qmailtoaster-Plus package (qtp.qmailtoaster.com) or you can do it the old fashioned way:
cat /var/log/qmail/smtp/current | grep [email protected] | tai64nlocal
That will parse the current log for [email protected] and convert the time stamp to human readable format. You should see the reject that way. You can also see the clam logs by substituting /var/log/qmail/smtp with /var/log/qmail/clamd Remember that your 'current' log may only be a few minutes/hours/days long. Look in the directory for the other log files that have been rotated.


If you have QTP installed, you can simply:
# qmlog -lc regex smtp
# qmlog -lc regex clamd
to search/show all smtp or clamd logs that a string that matches 'regex'. Give qmlog a little time, as it will search through all of the logs. I would suggest searching for the sender's domain name.

--
-Eric 'shubes'


---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to