spam delete Ispconfig 3

Discussion in 'Installation/Configuration' started by gee, Aug 17, 2009.

  1. gee

    gee New Member

    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
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. gee

    gee New Member

    ISP CONFIG 3 Spam

    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=;port=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

    $DO_SYSLOG = 1;
    $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
  4. till

    till Super Moderator Staff Member ISPConfig Developer


    $log_level = 5;

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

    moglia New Member

    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.
  6. gee

    gee New Member

    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.
    Last edited: Aug 20, 2009
  7. rputnins

    rputnins New Member

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

    bajodel New Member

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


  9. moglia

    moglia New Member

    _SCORE_ score on spam subject.

    You can put level on subject

    **** POSSIBLE SPAM (_SCORE_) ***

    *** SPAM (_SCORE_) ***

    i no have idea about moving spam to spam folder.
  10. Mccy_McFlinn

    Mccy_McFlinn New Member

    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.
  11. radim_h

    radim_h Member HowtoForge Supporter

    So, where to configure Amavis?
    in /etc/amavis/conf.d/50-user
    in ISPConfig EMAIL=>Spamfilter=>Policy=>Wants all spam ?

    how is that policy settings included into Amavis ??
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig is using the default mysql based amavis setup as described in the amavis manual. Most options of amavis can be configured trough ISPConfig, the file 50-user should only be used for options that are not available trough SQL in amavis.

Share This Page