QmailadminLogger: Logs when a user deleted from system, a user added to system, password or quota of a user changed.
Please issue this command before applying the patch:
# touch /var/log/qmailadmin.log && chown vpopmail:vchkpw /var/log/qmailadmin.log
Go to the directory where qmailadmin source codes are located (cd /the/qmailadmin/directory/) and apply the patch:
# patch < qmailadmin-VERSION-logger.patch
Then recompile and reinstall qmailadmin.
Logs can be read in /var/log/qmailadmin.log. Sample log lines:
12/08/2007 00:27:32: firstname.lastname@example.org logged in from IP: 22.214.171.124. Action: user added [email@example.com]
12/08/2007 00:28:00: firstname.lastname@example.org logged in from IP: 126.96.36.199. Action: user deleted [email@example.com].
12/08/2007 00:28:38: firstname.lastname@example.org logged in from IP: 127.0.0.1. Action: password changed for email@example.com
12/08/2007 00:28:38: firstname.lastname@example.org logged in from IP: 188.8.131.52. Action: quota changed to 56 MB for email@example.com
12/08/2007 13:00:30: firstname.lastname@example.org logged in from IP: 127.0.0.1. Action: user deleted [email@example.com]. And his/her mails were forwarded to firstname.lastname@example.org.
Download the patch for qmailadmin-1.2.9, 1.2.10 and 1.2.11 versions [Last Update: 2007-08-27]
TODO: Logs won't be read in /var/log/qmailadmin.log. syslog support will be written.
THANKS: İsmail YENİGÜL for his brilliant ideas.