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 29th December 2006, 14:07
DeeJay DeeJay is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Postfix+Courier (SpamAssassin/Amavis related)

Can I make Avamis/SpamAssassin remove or move the ***SPAM*** messages ? I dont want them, and I dont care if I should loose a mail here and then because of it - So far the past months I have NEVER gotten any mails that was not spam marked with ***SPAM***
Reply With Quote
Sponsored Links
  #2  
Old 29th December 2006, 18:38
jwholdsworth jwholdsworth is offline
Junior Member
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing Spam levels in Amavisd

If you just want to remove the ***SPAM*** message, open /etc/amavisd/amavisd.conf and find the line that starts with $sa_spam_subject_tag, and just edit the text after it in the quotes.

If you want to stop Amavis from doing anything with your spam, you can just change the level of spam by editing the line $sa_tag2_level_deflt. Personally, I have found 2.3 to be a good level to block spam, but let friendly messages through. If you raise that to say, 10, you will get most messages through. Only messages that are almost definitely spam will be blocked above that level. Similarly, you may need to raise the evasive actions line, if you wish to raise the spam triggered line above.

Hope this helps. Happy new year.

Last edited by jwholdsworth; 29th December 2006 at 18:40.
Reply With Quote
  #3  
Old 30th December 2006, 00:39
DeeJay DeeJay is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want to remove the whole email.
Reply With Quote
  #4  
Old 30th December 2006, 00:40
DeeJay DeeJay is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just dont need to get the emails with "***SPAM***" - Cant amavis just delete them?
Reply With Quote
  #5  
Old 30th December 2006, 04:38
jwholdsworth jwholdsworth is offline
Junior Member
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deleting ***SPAM*** messages

Yes you can remove them. You need to get amavis to perform evasive actions on all spam emails. What you need to do is to decide what spam level is the limit, and set both $sa_tag2_level_deflt and $sa_kill_level_deflt variables in amavisd.conf to the same value, e.g.

$sa_tag2_level_deflt = 2.3; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 2.3; # triggers spam evasive actions

Admittedly 2.3 is fairly low - you may want it around 4, but that's up to you.

What will happen here is that the first variable will mark the incoming junk mail as spam, and add the ***SPAM*** header. The second variable will also notice that the junk mail is above the 'Kill All' level and will delete the email for you.
Reply With Quote
  #6  
Old 30th December 2006, 12:47
DeeJay DeeJay is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oki, I will try that.
Reply With Quote
  #7  
Old 30th December 2006, 12:50
DeeJay DeeJay is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Trying this in my config file

Code:
$sa_tag_level_deflt  = 2.5; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 3.0; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 3.5; # Delete Spam
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
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Virtual Users And Domains With Postfix, Courier And MySQL [+ procmail ?] immobilia HOWTO-Related Questions 5 29th June 2006 23:20
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
Virtual Users And Domains With Postfix, Courier And MySQL - "apt-get" and Courier burritonator HOWTO-Related Questions 3 15th March 2006 20:11


All times are GMT +2. The time now is 12:49.


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