LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-11-2008, 06:04 AM   #1
akistam
LQ Newbie
 
Registered: Dec 2008
Posts: 7

Rep: Reputation: 0
Amavis/spamd/postfix not dropping spam emails


Hi all,

I am trying to get all mail labeled as [SPAM] to be dropped or sent to a specific folder without going to the user mailboxes at all.

what parameters do i need in amavisd.conf and local.cf files?

akistam
 
Old 12-11-2008, 10:53 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Assuming the basic setup is working, what you need to set are
Code:
$sa_tag_level_deflt  = 2.0;  # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent
$sa_quarantine_cutoff_level = 20; # spam level beyond which quarantine is off

$spam_quarantine_to = 'spam@example.com';
email that scores above sa_kill_level_deflt wil be sent to quarantine (unless the score exceeds sa_quarantine_cutoff_level). The account this goes to is spam@example.com given the setting for spam_quarantine_to.

Note that the scores I've shown are the amavisd defaults - you may want to change them.

I'd recommend you change the first to a low value (say -999) so spam headers are added to everything. Makes troubleshooting easier, and does no harm. Note this isn't the same as adding [SPAM] to the subject (that's given with $sa_spam_subject_tag).

hth

Last edited by billymayday; 12-11-2008 at 10:55 PM.
 
Old 12-12-2008, 12:37 AM   #3
akistam
LQ Newbie
 
Registered: Dec 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I have gone through my amavisd.conf file and noted that the line below was commented

$sa_quarantine_cutoff_level = 20; # spam level beyond which quarantine is off

i have uncommented it and made some changes to the scoring. Hope it works!
 
Old 12-12-2008, 12:49 AM   #4
akistam
LQ Newbie
 
Registered: Dec 2008
Posts: 7

Original Poster
Rep: Reputation: 0
This is what my values are like:

=================================================================================
$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.31; # triggers spam evasive actions
$sa_dsn_cutoff_level = 7; # spam level beyond which a DSN is not sent
$sa_quarantine_cutoff_level = 7.5; # spam level beyond which quarantine is off
# $penpals_bonus_score = 5; # (no effect without a @storage_sql_dsn database)
# $penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam

$sa_mail_body_size_limit = 400*1024; # don't waste time on SA if mail is larger
$sa_local_tests_only = 0; # only tests which do not require internet access?

#$spam_quarantine_to = 'spam-quarantine';
$spam_quarantine_to = "spamquarantine\@$mydomain";
==========================================================================================

Now am also wondering about $sa_quarantine_cutoff_level; is it the level beyond which mail will no longer be quarantined?
If yes, where will it be sent?
 
Old 12-12-2008, 02:14 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It just dies!

Try setting sa_tag_level_deflt to -999 like I suggested, and check that SA is working. You should get headers like
Code:
X-Spam-Flag: 	No
X-Spam-Score: 	-0.869
X-Spam-Level: 	
X-Spam-Status: 	No, score=-0.869 tagged_above=-999 required=3 tests=[BAYES_00=-2.599, HTML_IMAGE_RATIO_04=0.172, HTML_MESSAGE=0.001, MIME_HTML_ONLY=1.457, RDNS_NONE=0.1]
 
Old 12-16-2008, 12:30 AM   #6
akistam
LQ Newbie
 
Registered: Dec 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Spam is still not being quarantined....I wonder what the problem could be
 
Old 12-16-2008, 12:50 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Post the spam headers of an email you think should be quarantined
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Reducing spam with OpenBSD and spamd LXer Syndicated Linux News 0 04-12-2007 01:16 AM
AMAVIS-NEW skip certain emails from check +Yan Linux - Software 0 03-19-2007 09:15 AM
amavis not filtering spam exodist Linux - Software 1 12-16-2005 11:44 PM
Amavis X-spam-status ncp Linux - Newbie 0 11-25-2005 03:27 AM
How to filter postfix with spamd pembo13 Linux - Networking 2 09-10-2004 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration