Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st January 2010, 03:02
frogman frogman is offline
HowtoForge Supporter
 
Join Date: May 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Question SpamSnake Daily Quarantine Reports -No luck

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
Reply With Quote
Sponsored Links
  #2  
Old 1st January 2010, 12:18
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

Are there any errors in your mail log?
__________________
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 1st January 2010, 14:32
frogman frogman is offline
HowtoForge Supporter
 
Join Date: May 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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,
Reply With Quote
  #4  
Old 2nd January 2010, 15:22
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

Can you post the output of
Code:
ls -la /var/spool/postfix/
?
__________________
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 2nd January 2010, 15:31
frogman frogman is offline
HowtoForge Supporter
 
Join Date: May 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Last edited by frogman; 2nd January 2010 at 15:47. Reason: ADD INFO
Reply With Quote
  #6  
Old 4th January 2010, 09:42
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

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.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 4th January 2010, 15:30
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

What is the Run as User in MailScanner.conf? Your permission must on the specified folder must reflect this user.
__________________
Home of the SpamSnake
Reply With Quote
  #8  
Old 5th January 2010, 11:46
frogman frogman is offline
HowtoForge Supporter
 
Join Date: May 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
 
Thumbs up 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
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
MailWatch Error: no rows retrieved from database sergio.arnaldo Server Operation 25 21st March 2011 06:05
MailScanner trouble with DBD-MYSQL sergio.arnaldo Server Operation 11 26th August 2009 18:08
Spamsnake quarantine report webberle HOWTO-Related Questions 2 12th December 2008 13:14
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 23rd June 2008 23:02
Daily Quota Reports klonos HOWTO-Related Questions 2 16th August 2007 02:46


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


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