My spamsnake is working beautifully thanks to all the help on HowtoForge (thanks all), except I cannot seem to get it to send out the daily quarantine messages to the end users or any daily reports to the admin email. I have defined addresses and checked the boxes in the MailWatch web console for sending daily reports, but no dice. Has anyone gotten this to work after following the Perfect SpamSnake? I must be missing something - A script? Cron Job? Something.... Any help is greatly apreciated... FM
There are a few... Do any of them sound related to this problem? Thanks! In mail.log -- Dec 29 07:41:26 spamsnake MailScanner[1678]: User's home directory /var/spool/postfix is not writable Dec 29 07:41:26 spamsnake MailScanner[1678]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to ***** My MailScanner.conf does not have a value for this SpamAssassin User State Dir = ***** Dec 29 07:47:02 spamsnake MailScanner[2000]: Syntax error(s) in configuration file: Dec 29 07:47:02 spamsnake MailScanner[2000]: Unrecognised keyword "spamassassinprefsfile" at line 2871 Dec 29 07:47:02 spamsnake MailScanner[2000]: Warning: syntax errors in /opt/MailScanner/etc/MailScanner.conf. ***** Last line of MailScanner.conf is --- SpamAssassin Prefs File = /etc/MailScanner/spam.assassin.prefs.conf ***** In the user.log --- Dec 26 03:53:35 spamsnake MailScanner: Process did not exit cleanly, returned 255 with signal 0 In the mail.err --- Every so often, one of these shows up, not frequent Dec 31 17:27:00 spamsnake MailScanner[19945]: Cannot create + lock headers file /var/spool/MailScanner/incoming/19945/2DC43BE97D.126AB.header,
Here it is... root@spamsnake:~# ls -la /var/spool/postfix/ total 80 drwxr-xr-x 20 root root 4096 2009-10-23 01:45 . drwxr-xr-x 7 root root 4096 2009-10-23 02:09 .. drwx------ 2 postfix root 4096 2010-01-02 07:46 active drwx------ 2 postfix root 4096 2009-11-30 16:11 bounce drwx------ 2 postfix root 4096 2009-10-23 01:45 corrupt drwx------ 18 postfix root 4096 2009-10-30 17:01 defer drwx------ 18 postfix root 4096 2009-10-30 17:01 deferred drwxr-xr-x 2 root root 4096 2008-11-05 08:05 dev drwxr-xr-x 3 root root 4096 2010-01-01 16:51 etc drwx------ 2 postfix root 4096 2009-11-30 06:09 flush drwxrwx--- 2 postfix www-data 4096 2010-01-02 07:46 hold drwx------ 2 postfix root 4096 2010-01-02 07:46 incoming drwxr-xr-x 2 root root 4096 2010-01-01 16:51 lib drwx-wx--T 2 postfix postdrop 4096 2010-01-01 17:15 maildrop drwxr-xr-x 2 postfix root 4096 2009-11-15 21:27 pid drwx------ 2 postfix root 4096 2010-01-01 16:51 private drwx--s--- 2 postfix postdrop 4096 2010-01-01 16:51 public drwx------ 2 postfix root 4096 2009-10-23 01:45 saved drwx------ 2 postfix root 4096 2009-10-23 01:45 trace drwxr-xr-x 3 root root 4096 2009-10-23 01:45 usr UPDATE --- I have gotten rid of this error by putting a value in SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin Dec 29 07:41:26 spamsnake MailScanner[1678]: User's home directory /var/spool/postfix is not writable Dec 29 07:41:26 spamsnake MailScanner[1678]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
The reports are sent out using a cron job. You need to setup a cron job to run the script quarantine_report.php which is distributed inside the tools directory of the mailwatch tar ball.
What is the Run as User in MailScanner.conf? Your permission must on the specified folder must reflect this user.
Thanks topdog - that was it, thanks. I was missing the quarantine_report.php script. Rocky - Thanks as well for helping me clear up some other errors! -fm