HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   spam delete Ispconfig 3 (

gee 17th August 2009 10:19

spam delete Ispconfig 3
The spam is being marked as spam but it is not being deleted or rejected on the domain. I have tried selecting the different spam fillets “trigger happy. Normal” but it still passes it through as Tagged “SPAM”
Below is my /etc/amavis/conf.d#50-user configuration.

$final_virus_destiny = D_BOUNCE;
$final_spam_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_bad_header_destiny = D_PASS;

Is there some place ells I need to configure for each domains spam that it gets deleted or rejected. In ispconfig 2 you just had to click delete tag but that does not appear in ispconfig3
Thanks for the help

till 17th August 2009 10:26

Your configuration is fine and spamm will be deleted if the score is above the spam kill level that you have set in the spamfilter policy.

gee 17th August 2009 11:44

Hi can anyone please please help.

I am still getting 100 of spams.

Here are my settings. Is there anything im doing wrong? I have my kill level at 6.


use strict;

# Place your configuration directives here. They will override those in
# earlier files.
# See /usr/share/doc/amavisd-new/ for documentation and examples of
# the directives you can use in this file

@bypass_virus_checks_maps = (
\%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re);

@bypass_spam_checks_maps = (
\%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re);

# Database connection settings

@lookup_sql_dsn =
( ['DBI:mysql:database=dbispconfig;host=;por t=3306', 'ispconfig', 'f898191d2e41a12c5e98e005a77b9124'] );

# @storage_sql_dsn = @lookup_sql_dsn; # none, same, or separate database
#$sql_select_policy = 'SELECT "Y" as local FROM mail_domain WHERE CONCAT("@",domain) IN (%k)';
# $banned_files_quarantine_method = 'sql';
# $spam_quarantine_method = 'sql';

# SQL Select statements

$sql_select_policy =
'SELECT *,'.
' FROM spamfilter_users LEFT JOIN spamfilter_policy ON'.
' WHERE IN (%k) ORDER BY spamfilter_users.priority DESC';

$sql_select_white_black_list = 'SELECT wb FROM spamfilter_wblist'.
' WHERE (spamfilter_wblist.rid=?) AND ( IN (%k))' .
' ORDER BY spamfilter_wblist.priority DESC';

# Quarantine settings

$final_virus_destiny = D_BOUNCE;
$final_spam_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
$final_bad_header_destiny = D_PASS;

# Default settings, we st this very high to not filter aut emails accidently
$sa_spam_subject_tag = '***SPAM*** ';
$sa_tag_level_deflt = 20.0; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 60.0; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 60.0; # triggers spam evasive actions
$sa_dsn_cutoff_level = 100; # spam level beyond which a DSN is not sent

# Disable spam and virus notifications for the admin user.
# Can be overridden by the policies in mysql

$virus_admin = undef;
$spam_admin = undef;

# Enable Logging

$LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log)

# Set the log_level to 5 for debugging
$log_level = 0; # (defaults to 0)

#------------ Do not modify anything below this line -------------
1; # insure a defined return

till 18th August 2009 13:32


$log_level = 5;

and check your mail log how the spam emails get scored.

moglia 18th August 2009 20:29

Spam Issues
I recevied lots of spam insted my old postfixadmin instalation.

Have a way to move spam to .spam folder for users?

at past instalation im used postgrey and some rbl lists i put rbl again on postfix conf.

gee 20th August 2009 10:59


Originally Posted by till (Post 201362)

$log_level = 5;

and check your mail log how the spam emails get scored.

I cheacked my Header scores and most of them score over 10.

I set my kill score to 6 but still the spam gets through.
I get about 60 to 100 spam email over the kill score a day.
The subject labeling is working, it is labeling the spam email with ***Possible Spam*** in the subject bar, it just needs to now delete what it finds.

Any ideas please my boss is going to kill me if I dont get this sorted.

rputnins 2nd September 2009 02:56

I have the same problem - the messages that are over spam tag level have modified subject but not deleted.

bajodel 2nd September 2009 03:28

(maybe stupid .. but) ..have you restarted "edited" amavis service?



moglia 2nd September 2009 04:08

_SCORE_ score on spam subject.
You can put level on subject


*** SPAM (_SCORE_) ***

i no have idea about moving spam to spam folder.

Mccy_McFlinn 18th September 2009 16:08

Hi gee,

I'm not sure if this is still a problem but your amavis config file holds the key as to why your spam is not being discarded. You state that you changed your kill level to 6 but do not state that you've changed your tag2_level to 6 or lower. Basically, if you don't tag the email as spam it can't be killed off. So an email would have to reach a level of 60 (according to your config posted) before it would be killed.

I'd recommed setting your tag_level to null and then setting you tag2_level to 6 or lower and then anything 6 or above will be killed off.

Hope this helps.

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

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