Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#33 Logger patch for QmailAdmin 1.2.9

open-later
None
1
2009-08-14
2009-05-02
Tom Collins
No

From Metin KAYA:

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:

[metin@enderunix ~]# cat /var/log/qmailadmin.log
12/08/2007 00:27:32: postmaster@test.com logged in from IP: 10.0.0.13. Action: user added [met@test.com]
12/08/2007 00:28:00: postmaster@test.com logged in from IP: 85.105.4.65. Action: user deleted [metink@test.com].
12/08/2007 00:28:38: metin@test.com logged in from IP: 127.0.0.1. Action: password changed for met@test.com
12/08/2007 10:28:45: mk@test.com logged in from IP: 127.0.0.1. Action: quota changed to 56 MB for met@test.com
12/08/2007 13:00:30: postmaster@domain.com logged in from IP: 72.56.12.23. Action: user deleted [aydin@domain.com]. And his/her mails were forwarded to alfonso@example.com.

If a user was only deleted, the action is "user deleted [metink@test.com]".
If a user was deleted and his/her mails are forwarded to some email
address, then the action is "user deleted [aydin@domain.com]. And his/her mails were forwarded to alfonso@example.com.".

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".

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

Discussion

  • Tom Collins
    Tom Collins
    2009-05-02

    Logger patch for QmailAdmin 1.2.9

     
  • Matt Brookings
    Matt Brookings
    2009-08-14

    • priority: 5 --> 1
    • assigned_to: nobody --> volz0r
    • status: open --> open-later