| Get more info from mail logs |
|
| Written by Evren Yurtesen | |
| Friday, 29 June 2007 | |
|
I am sure most of you had a problem where you have thousands of mail going through your server but you cant pinpoint from which IP address they are coming from or from which authenticated smtp user of yours is the naughty one. This is because these information is not shown clearly in H-Sphere's mail logs. In this article you can find a tiny plugin for the qmail-spp system which you can use to pinpoint these information. Make sure that you have qmail-spp system activated in your mail server, please check here for more info: Copy the simple C program below and save it as moreinfo.c #include <stdio.h> Then compile it using the following command 'gcc moreinfo.c -o /var/qmail/control/plugins/moreinfo' then add the following line to /var/qmail/control/smtpplugins file under the [rcpt] section '/var/qmail/control/plugins/moreinfo' Restart qmail and you will see similar output to below in /var/log/maillog #tail -F /var/log/maillog | grep -e smtpd | grep -e info -e auth Here the auth section gives the smtp auth information if this section is missing then probably there is data going from server to server or your users might be using pop before smtp. The count number shows the recipient numbers, if message was sent to 3 people then count will be from 1 to 3. |
|
| Last Updated ( Friday, 12 October 2007 ) |
| Next > |
|---|





