You may use the configuration file to send mail messages when certain actions occur. The following fragment sends mail to root whenever the adduser program runs:
if(command=="adduser") { system("mail root", "pm: adduser was run as root by " + user + "\n"); }