On Tuesday 08 January 2008 22:37:42 cycl...@titanshadow.com wrote:
So I think I may have the issue nearly entirely solved... However, I really
want to log maildrop's activities as well as I want courier to log when it
calls maildrop.
Does anyone know how to do this?
Try...
touch /var/log/mailfilter.log
chown mail:mail /var/log/mailfilter.log
tail -f /var/log/mailfilter.log
where mail:mail is the UID:GID of your mail delivery
program (ps aux | grep postfix, or whatever mail server).
Then add this to maildroprc or the beginning of your
mail filter...
logfile "/var/log/mailfilter.log"
then you can get some decent logging. Try this to see
what variables are visible to maildrop...
log `env`
I often use 'log "$HOME"' to show me the exact path to
the users homedir. Also, this is handy to active...
./authdaemonrc:# DEBUG_LOGIN=0 - turn off debugging
./authdaemonrc:# DEBUG_LOGIN=1 - turn on debugging
./authdaemonrc:# DEBUG_LOGIN=2 - turn on debugging + log passwords too
--markc