View Single Post
  #1  
Old 12th February 2007, 14:06
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 199
Thanks: 8
Thanked 15 Times in 7 Posts
Lightbulb Procmail logging

I added logging of procmail to /ispconfig/isp/conf/procmailrc.master with VERBOSE=off

If the user gets created and I need to debug I change the relevant lines in /var/www/webx/user/zone.tld_test/.procmailrc to VERBOSE=on

Code:
VERBOSE=off
LOGABSTRACT=yes
LOGFILE=/var/log/procmail.log
COMSAT=no
{MAILDIR_COMMENT}MAILDIR=$HOME/Maildir/
{MAILDIR_COMMENT}DEFAULT=$MAILDIR
{MAILDIR_COMMENT}ORGMAIL=$MAILDIR
{QUOTA}
INCLUDERC={PMDIR}/.mailsize.rc
{QUOTA_COMMENT}INCLUDERC={PMDIR}/.quota.rc
{ANTIVIRUS_COMMENT}INCLUDERC={PMDIR}/.antivirus.rc
{MAILSCAN_COMMENT}INCLUDERC={PMDIR}/.local-rules.rc
{MAILSCAN_COMMENT}INCLUDERC={PMDIR}/.html-trap.rc
{SPAMASSASSIN_COMMENT}INCLUDERC={PMDIR}/.spamassassin.rc
{AUTORESPONDER_COMMENT}INCLUDERC={PMDIR}/.autoresponder.rc
Also give /var/log/procmail.log some rights chmod 666 /var/log/procmail.log, this might be tweeked!
now you can follow the procmail process by issuing the command
Code:
tail -vf /var/log/procmail.log
and scannig fo errors as it happens!

P.S. I'm working on spamassasin logging as the default spamd logs but ISPC seem not to log spam results.
I need someone to please post me an script to "retro-fit" these lines to the existing user .procmailrc files that does not already have the settings please.

Last edited by Morons; 12th February 2007 at 14:17. Reason: Fixing typo
Reply With Quote
Sponsored Links