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 11th September 2009, 17:20
FatalError FatalError is offline
Junior Member
 
Join Date: Aug 2009
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Default SpamSnake Ubuntu 8.04 LTS nagging errors, should I be concerned?

I get these every day, can they be ignored? Everything appears to be working as intended.

From MailScanner logwatch:
Quote:
Ignoring deprecated option --max-ratio : 624 Time(s)
Ignoring deprecated option --unrar : 624 Time(s)
Ignoring deprecated option --jar : 624 Time(s)
Ignoring deprecated option --deb : 624 Time(s)
Ignoring deprecated option --tar : 624 Time(s)
Ignoring deprecated option --unzip : 624 Time(s)
Ignoring deprecated option --tgz : 624 Time(s)
Quote:
You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to : 116 Time(s)
Quote:
SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp : 116 Time(s)
Quote:
User's home directory /var/spool/postfix is not writable : 116 Time(s)
From Postfix logwatch:
Quote:
1 *Warning: Queue file size limit exceeded
6 *Warning: Pre-queue content-filter connection overload
Here's my /var/spool directory:
Code:
root@spamsnake:/var/spool# ls -al
total 28
drwxr-xr-x  7 root    root     4096 2009-08-25 16:45 .
drwxr-xr-x 15 root    root     4096 2009-08-24 08:13 ..
drwxr-xr-x  5 daemon  daemon   4096 2009-08-24 04:57 cron
drwxr-xr-x  3 root    root     4096 2009-08-24 08:24 cups
drwx------  2 root    root     4096 2009-08-25 16:45 firehol
lrwxrwxrwx  1 root    root        7 2009-08-24 04:53 mail -> ../mail
drwxr-x---  6 postfix www-data 4096 2009-08-24 15:34 MailScanner
drwxr-xr-x 19 root    root     4096 2009-08-24 13:32 postfix
And /var/spool/postfix:
Code:
root@spamsnake:/var/spool/postfix# ls -al
total 76
drwxr-xr-x 19 root    root     4096 2009-08-24 13:32 .
drwxr-xr-x  7 root    root     4096 2009-08-25 16:45 ..
drwx------  2 postfix root     4096 2009-09-11 09:06 active
drwx------  2 postfix root     4096 2009-08-24 13:32 bounce
drwx------  2 postfix root     4096 2009-08-24 13:32 corrupt
drwx------  2 postfix root     4096 2009-08-24 13:32 defer
drwx------  2 postfix root     4096 2009-08-24 13:32 deferred
drwxr-xr-x  2 root    root     4096 2009-09-03 09:28 etc
drwx------  2 postfix root     4096 2009-08-24 13:32 flush
drwxrwx---  2 postfix www-data 4096 2009-09-11 09:06 hold
drwx------  2 postfix root     4096 2009-09-11 09:06 incoming
drwxr-xr-x  2 root    root     4096 2009-09-03 09:28 lib
drwx-wx--T  2 postfix postdrop 4096 2009-09-11 07:30 maildrop
drwxr-xr-x  2 postfix root     4096 2009-09-03 13:33 pid
drwx------  2 postfix root     4096 2009-09-03 09:28 private
drwx--s---  2 postfix postdrop 4096 2009-09-03 09:28 public
drwx------  2 postfix root     4096 2009-08-24 13:32 saved
drwx------  2 postfix root     4096 2009-08-24 13:32 trace
drwxr-xr-x  3 root    root     4096 2009-08-24 13:32 usr
Also, is there an easy way to feed spam (not high spam, as it already has that option in MailWatch) to the spamsnake for learning (sa-learn, I think)?
It would be nice to be able to do this through the web interface just like high scoring spam does at the bottom of the Message Detail page in MailWatch.
I am the only one in my IT department that has any knowledge of Linux and I don't want the others mucking around with SSH trying to do this when I'm not there.
Reply With Quote
Sponsored Links
  #2  
Old 11th September 2009, 17:38
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Below is are the permissions that I have and right away I noticed that your MailScanner folder in /var/spool is different than mind.

/var/spool/
drwxr-xr-x 5 root root 4096 2009-04-29 11:08 cron
drwxr-xr-x 3 root root 4096 2009-04-30 10:07 cups
lrwxrwxrwx 1 root root 7 2009-04-29 10:57 mail -> ../mail
drwxr-xr-x 5 postfix www-data 4096 2009-04-30 11:02 MailScanner
drwxr-x--- 2 root bin 4096 2009-04-30 10:51 mqueue.in
drwxr-xr-x 20 root root 4096 2009-04-30 08:39 postfix

/var/spool/postfix/
drwx------ 2 postfix root 16384 2009-09-11 10:26 active
drwx------ 2 postfix root 4096 2009-09-11 03:20 bounce
drwx------ 2 postfix root 4096 2009-04-30 08:39 corrupt
drwx------ 18 postfix root 4096 2009-06-10 16:35 defer
drwx------ 18 postfix root 4096 2009-06-10 16:35 deferred
drwxr-xr-x 2 root root 4096 2008-11-05 08:03 dev
drwxr-xr-x 3 root root 4096 2009-09-04 11:19 etc
drwx------ 2 postfix root 4096 2009-09-09 21:55 flush
drwxrwx--- 2 postfix www-data 12288 2009-09-11 10:26 hold
drwx------ 2 postfix root 12288 2009-09-11 10:26 incoming
drwxr-xr-x 2 root root 4096 2009-09-04 11:19 lib
drwx-wx--T 2 postfix postdrop 4096 2009-09-11 10:07 maildrop
drwxr-xr-x 2 postfix root 4096 2009-08-07 06:22 pid
drwx------ 2 postfix root 4096 2009-09-04 11:19 private
drwx--s--- 2 postfix postdrop 4096 2009-09-04 11:19 public
drwx------ 2 postfix root 4096 2009-04-30 08:39 saved
drwx------ 2 postfix root 4096 2009-09-11 03:20 trace
drwxr-xr-x 3 root root 4096 2009-04-30 08:39 usr

My User State Directory in MailScanner.conf is set to:
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

My Run As User is postfix and group is www-data.

For the mails to show up in Mailwatch, you have to make sure the following is set to the below. This will log all mails to Mailwatch therefore allowing you to train spamassassin.

Spam Actions = deliver store
High Scoring Spam Actions = delete store
Non Spam Actions = deliver store

Make the above changes and let me know if that helps.

What do you have Max Normal Queue Size set for in MailScanner.conf?

Rocky
__________________
Home of the SpamSnake

Last edited by Rocky; 11th September 2009 at 17:42.
Reply With Quote
The Following User Says Thank You to Rocky For This Useful Post:
FatalError (11th September 2009)
  #3  
Old 11th September 2009, 18:21
FatalError FatalError is offline
Junior Member
 
Join Date: Aug 2009
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Default

OK, I changed the permissions on /var/spool/MailScanner.

For some reason my User State Directory = (nothing).

My Run As user and group are the same as yours.

Spam Actions I had:
Spam Actions = deliver
High Scoring Spam Actions = delete
Non Spam Actions = deliver header "blah blah..."

My Max Normal Queue Size = 800.

By the way, I initially did have a problem with some directories disappearing and had to do "9.17 Fix for Ubuntu 8.04 (kept removing directories upon reboot)" in your how-to, but only a portion of it:
Code:
Added to /etc/rc.local:

mkdir /var/run/MailScanner
chown -R postfix:www-data /var/run/MailScanner
/etc/init.d/postfix restart
/etc/init.d/mailscanner restart
I see you did a strike-through on that section. Is there a work-around to what I did?

I have restarted mailscanner and am now able to feed ham/spam on all messages, thank you!

Last edited by FatalError; 11th September 2009 at 18:56.
Reply With Quote
  #4  
Old 11th September 2009, 20:07
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey,

Glad to hear everythings coming together for you. There is a fix for the deleting problem you're facing and it's much better than the way you have it set right now. Just do the following and you should be all set.

Edit /etc/rc2.d/S20mailscanner to look like:
check_dir /var/spool/MailScanner ${user:-postfix} ${group:-www-data}
#check_dir /var/lib/MailScanner ${user:-mail} ${group:-mail}
#check_dir /var/run/MailScanner ${user:-mail} ${group:-mail}
check_dir /var/lock/subsys/MailScanner ${user:-postfix} ${group:-www-data}
__________________
Home of the SpamSnake
Reply With Quote
  #5  
Old 11th September 2009, 20:34
FatalError FatalError is offline
Junior Member
 
Join Date: Aug 2009
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Default

This is how mine reads:

Code:
check_dir /var/spool/MailScanner       ${user:-postfix} ${group:-www-data}
#check_dir /var/lib/MailScanner         ${user:-mail} ${group:-mail}
#check_dir /var/run/MailScanner         ${user:-mail} ${group:-mail}
check_dir /var/lock/subsys/MailScanner ${user:-postfix} ${group:-www-data}
Do I need to change the delimiter between the path and the variable? Looks like I have three with a tab and one with a space.

If the check_dir /var/run/MailScanner is commented-out, will it not be present when I reboot?

I guess I'm confused?!?!
Reply With Quote
  #6  
Old 11th September 2009, 21:11
FatalError FatalError is offline
Junior Member
 
Join Date: Aug 2009
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rocky View Post
For the mails to show up in Mailwatch, you have to make sure the following is set to the below. This will log all mails to Mailwatch therefore allowing you to train spamassassin.

Spam Actions = deliver store
High Scoring Spam Actions = delete store
Non Spam Actions = deliver store
Now I can sa-learn any email, which is great; however, now all email is listed in the Quarantine: Clean, Spam and High Spam. Is there an easy way to keep the Clean email from displaying in the Quarantine and still be able to feed them to SA?
Reply With Quote
  #7  
Old 12th September 2009, 06:01
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey,

In etc/rc2.d/S20mailscanner, there is already a section for the below, without the edits:

check_dir /var/spool/MailScanner ${user:-postfix} ${group:-www-data}
#check_dir /var/lib/MailScanner ${user:-mail} ${group:-mail}
#check_dir /var/run/MailScanner ${user:-mail} ${group:-mail}
check_dir /var/lock/subsys/MailScanner ${user:-postfix} ${group:-www-data}

Just make it look like the above.

The Quarantine feature basically stores the emails for later mail operation. If you want to stop storing good emails, just take store out of the Non Spam Actions.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #8  
Old 21st September 2009, 16:49
FatalError FatalError is offline
Junior Member
 
Join Date: Aug 2009
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Do you have any suggestions for this error? I don't know what to gauge my queue size with.

Quote:
1 *Warning: Queue file size limit exceeded
Quote:
Originally Posted by Rocky View Post
What do you have Max Normal Queue Size set for in MailScanner.conf?
Rocky
This is what I have:

Max Normal Queue Size = 800
Reply With Quote
  #9  
Old 22nd September 2009, 16:29
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
 
Default

Ok, I think the queue file size limit is a postfix setting. Try changing the following to:

message_size_limit = 15000000

This will allow 15mb file size instead of 10mb to pass through.
__________________
Home of the SpamSnake
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
MailScanner trouble with DBD-MYSQL sergio.arnaldo Server Operation 11 26th August 2009 19:08
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 14:49
The Perfect SpamSnake - Ubuntu 8.04 LTS - Page 02 - Installing Perl Modules denbert HOWTO-Related Questions 12 26th December 2008 14:17
Errors after following The Perfect SpamSnake (Ubuntu 8.04) hvrossum HOWTO-Related Questions 21 27th June 2008 18:14
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 24th June 2008 00:02


All times are GMT +2. The time now is 18:56.


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