Hi all,

  I have written a patch that create log file for qmailadmin-1.2.9. When a
  user's password or quota changed, a user deleted from the system or
  a user created this patch logs the events. Sample lines from log file:

[EMAIL PROTECTED] ~]# cat /var/log/qmailadmin.log
12/08/2007 00:27:32: [EMAIL PROTECTED] logged in from IP: 10.0.0.13. Action: 
user added [EMAIL PROTECTED]
12/08/2007 00:28:00: [EMAIL PROTECTED] logged in from IP: 85.105.4.65. Action: 
user deleted [EMAIL PROTECTED]
12/08/2007 00:28:38: [EMAIL PROTECTED] logged in from IP: 127.0.0.1. Action: 
password changed for [EMAIL PROTECTED]
12/08/2007 10:28:45: [EMAIL PROTECTED] logged in from IP: 127.0.0.1. Action: 
quota changed to 56 MB for [EMAIL PROTECTED]
12/08/2007 13:00:30: [EMAIL PROTECTED] logged in from IP: 72.56.12.23. Action: 
user deleted [EMAIL PROTECTED] And his/her mails were forwarded to [EMAIL 
PROTECTED]

If a user was only deleted, the action is "user deleted [EMAIL PROTECTED]".
If a user was deleted and his/her mails are forwarded to some email
address, then the action is "user deleted [EMAIL PROTECTED] And his/her mails 
were forwarded to [EMAIL PROTECTED]".

The log file has to be created before applying the patch and the owner
of it must be vchkpw:vpopmail. And the name of the log file must be
"/var/log/qmailadmin.log".

[EMAIL PROTECTED] ~]# ls -la /var/log/qmailadmin.log
-rw------- 1 vpopmail vchkpw 448 Aug 12 00:28 /var/log/qmailadmin.log



-- 
Metin KAYA
EnderUNIX Software Developer           Endersys Software Engineer
http://www.EnderUNIX.org/              http://www.Endersys.com.tr/

Attachment: qmailadmin-logger.patch
Description: Binary data

Reply via email to