#1  
Old 20th August 2005, 14:07
hagel hagel is offline
Member
 
Join Date: Aug 2005
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default Spamassassin

Hi, I'm wondering abit about spamassassin, I've used it to rewrite subjects to ***SPAM*** and it works like a charm, but now after having seen that it works as it is supposed to I thought I'd change it to reject SPAM mail instead, but nothing happends when I do so, am I supposed to restart something or what??

Regards
Torbjörn
Reply With Quote
Sponsored Links
  #2  
Old 20th August 2005, 16:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

In the homedir of that user there is a file called .spamassassin.rc (with a dot at the beginning!).

Can you post that file here?
__________________
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 20th August 2005, 20:19
hagel hagel is offline
Member
 
Join Date: Aug 2005
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
:0fw
* < 256000
| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file=/var/www/web15/user/web15_th/.user_prefs

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
#:0:
#* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#/dev/null

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "/dev/null".
:0:
* ^X-Spam-Status: Yes
/dev/null

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "

  :0 fhw
  | sed -e '1s/^/F/'
}
Reply With Quote
  #4  
Old 20th August 2005, 20:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Looks correct. All spam should be sent to /dev/null.
__________________
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 21st August 2005, 13:28
hagel hagel is offline
Member
 
Join Date: Aug 2005
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default

Well I agree, but it doesn't...

All spam is still getting through with the subject rewritten
Reply With Quote
  #6  
Old 21st August 2005, 15:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

Quote:
Originally Posted by hagel
Well I agree, but it doesn't...

All spam is still getting through with the subject rewritten
Have you checked the header of the mails, if it contains the
Code:
X-Spam-Status: Yes
part?
Reply With Quote
  #7  
Old 21st August 2005, 18:12
hagel hagel is offline
Member
 
Join Date: Aug 2005
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default

All spam mail headers contain :
Code:
X-Spam-Flag: YES
But no mail is deleted, anyone has any idéa??

Last edited by hagel; 24th August 2005 at 15:53. Reason: No response..
Reply With Quote
  #8  
Old 25th August 2005, 05:36
tlgwat tlgwat is offline
Junior Member
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try adding this too maybe...

Code:
* ^X-Spam-Flag: YES
/dev/null
Reply With Quote
  #9  
Old 25th August 2005, 09:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

@hagel: Do your mail headers contain
Code:
X-Spam-Status: Yes
or
Code:
X-Spam-Flag: YES
? That's an important difference!
__________________
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
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
Empty mails after update to 2.0.7 maxx Installation/Configuration 12 28th March 2008 14:14
SpamAssassin rules stiffmeister Technical 1 13th May 2005 16:48
SpamAssassin Version? stiffmeister Technical 1 10th May 2005 22:43


All times are GMT +2. The time now is 02:27.


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