[Dovecot] Questions about deliver log files
frank.kintrup at fkware.de
frank.kintrup at fkware.de
Sun Nov 25 01:03:30 EET 2007
Hi,
I upgraded from Courier to dovecot, and now I try to rebuild some of
the features I used to have. One was a monthly per user log of
maildrop's work.
I used this code in maildroprc:
DATE=`date +%m`
logfile "$MAILDIR/maildrop-$DATE.log"
This created a monthly log in the each user's Maildir. I find it
easier to have a log per user than having to filter the log entries
from a large log file for all users.
I tried to recreate it with deliver by using the variables %h and
%d/%n, but they are not interpreted when the log file is accessed
("Can't open log file /var/vmail/%d/%n/deliver.log: No such file
or directory"). And there seems to be no way to include a date in
the file name (but maybe I could use logrotate for that).
Another problem:
Currently deliver only logs the message id. A user would never
ask for this (especially if he asks where certain mails were
stored/discarded), he would ask for the sender's name/email or
subject. Is the contents of the log file configurable?
Frank
More information about the dovecot
mailing list