#1  
Old 12th February 2007, 13:06
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 189
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 13:17. Reason: Fixing typo
Reply With Quote
Sponsored Links
  #2  
Old 13th February 2007, 17:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by Morons
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.
You must modify a setting for each user in ISPConfig (e.g. change quota, enable/disable Mailscan, etc.). This will make ISPConfig rewrite the .procmailrc files.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th February 2007, 17:53
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 189
Thanks: 8
Thanked 15 Times in 7 Posts
Default

There are 975 users already but no fear this is only needed to look for trouble, if it exist! I can enable an an need basis by enabling mailscan. It would be nice to have an "global" write config files, someware in the system along with "recreate users" as these will help tremendous with moving and transfering from one server to another. It mean you can migrate from an server with (as a sample) Mandriva to ubuntu by only moving the mysql data then press the button to re-populate all the config files controlled by ISPC [ber controll mode] the only missing part will be the passwords that need to be stored also on mysql
On that sunject I have had much trouble re-building group files from samples and passwd files as a result of missig the /etc/group in previous backups. It would be a nice feature to either globally backup and recreate the config files or per system like dns, or virtusertable, apache or any crucial system.
Reply With Quote
  #4  
Old 14th February 2007, 19:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Another way would be to update the status field of each user in the isp_isp_user table to u and then run
Code:
touch /home/admispconfig/ispconfig/.run
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 11th August 2010, 23:40
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 189
Thanks: 8
Thanked 15 Times in 7 Posts
 
Default

Quote:
Originally Posted by falko View Post
Another way would be to update the status field of each user in the isp_isp_user table to u and then run
Code:
touch /home/admispconfig/ispconfig/.run
Inside phpmyadmin select the database and
Code:
UPDATE `db_ispconfig`.`isp_isp_user` SET `status` = 'u' ;
will do it!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier And MySQL [+ procmail ?] immobilia HOWTO-Related Questions 5 29th June 2006 23:20
Procmail with ISP users and system users MvincM Installation/Configuration 8 19th April 2006 22:48
plenty of procmail/trashscan processes ZyanKLee Installation/Configuration 10 27th December 2005 20:09
procmail <defunct> ZyanKLee Installation/Configuration 1 19th December 2005 00:58
procmail supposed to be in main.cf? Smitty Installation/Configuration 4 5th December 2005 10:10


All times are GMT +2. The time now is 22:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.