qpsmtpd does all sorts of logging but what i was missing was a complete log
entry showing the details of a mail after accepting it. Therefore i
programmed this new plugin.
I don't understand why this is especially useful (and it indeed seems to be a duplication of existing log information). multilog is specifically intended to be streamy (i.e. log only right now). Robert was discussing a statistics plugin hook, which would fire after everything else had happened, but I believe he was thinking more of summary information than just spewing whatever what known about the preceeding connection.
Is there any way to get rid of the "maillog plugin: " part?
That's a feature; it allows you to quickly scan the log file for specific plugin entries (e.g. how many executable files/viruses have I blocked today) or use multilog filtering to log different plugin lines to different files.
I also would like to be able to log if the client was authenticated by SMTP AUTH and ideally also the username used for that. It seems that neither information is available to plugins right now.
Patches welcome. You'd want to store this in the transaction notes. The Auth.pm file does log authentication success if your loglevel is high enough, but it doesn't note the username (seems like a moderately useful feature).
John
