2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Filter Logging
FromSent OnAttachments
cycl...@titanshadow.comJan 8, 2008 4:37 am 
Mark ConstableJan 8, 2008 4:59 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Filter LoggingActions...
From:Mark Constable (mar@renta.net)
Date:Jan 8, 2008 4:59:47 am
List:net.sourceforge.lists.courier-users

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