Hello all, I am running a Postfix/Amavis mailserver. It correctly checks and blocks virus mails but i have an issue with spam control, as received spam with a sufficient level is not getting tagged as spam in the subject and header.
I've putted relevant (afaik) parts of my config and log files below. Any help is very much appreciated! Kind regards, Vincent Ludden ---------------------------------------------------------------------------- /etc/amavis/amavisd.conf $forward_method = 'smtp:127.0.0.1:10025'; # where to forward checked mail # @bypass_spam_checks_acl = qw( . ); # No default dependency on spamassassin @local_domains_acl = ( ".$mydomain" ); # $mydomain and its subdomains @local_domains_acl = ( ".$mydomain", "colossus.nl" ); @local_domains_acl = ( ".$mydomain", "ludden.nl" ); $final_virus_destiny = D_DISCARD; # (defaults to D_BOUNCE) $final_banned_destiny = D_BOUNCE; # (defaults to D_BOUNCE) $final_spam_destiny = D_PASS; # (defaults to D_REJECT) $final_bad_header_destiny = D_PASS; # (defaults to D_PASS), D_BOUNCE suggested #$sa_local_tests_only = 1; # (default: false) $sa_timeout = 30; $sa_tag_level_deflt = 4.0; # add spam info headers if at, or above that level $sa_tag2_level_deflt = 5.6; # add 'spam detected' headers at that level $sa_kill_level_deflt = 9.0; #$sa_tag2_level_deflt; # triggers spam evasive actions $sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent, $sa_spam_subject_tag = '[SPAM] '; # (defaults to undef, disabled) $sa_spam_modifies_subj = 1; # may be a ref to a lookup table, default is true #$sa_spam_modifies_subj = [qw( [EMAIL PROTECTED] . )]; ---------------------------------------------------------------------------- postconf -n append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 inet_interfaces = all mailbox_size_limit = 0 mydestination = rhodos.colossus.nl, localhost.colossus.nl, localhost, $transport_maps, 64.111.96.18 myhostname = rhodos.colossus.nl mynetworks = 127.0.0.0/8, 84.81.175.139, 145.99.240.155, 145.99.240.146, 195.169.225.98, 213.133.57.121, 64.111.96.18 myorigin = /etc/mailname recipient_delimiter = + relayhost = smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) virtual_alias_domains = virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf virtual_uid_maps = static:5000 ---------------------------------------------------------------------------- /etc/spamassassin/local.conf: # How many hits before a message is considered spam. required_hits 5.0 # Whether to change the subject of suspected spam rewrite_subject 1 rewrite_header subject [SPAM] # Text to prepend to subject if rewrite_subject is used #subject_tag [SPAM] # Encapsulate spam in an attachment report_safe 0 # Use terse version of the spam report use_terse_report 1 # Enable the Bayes system use_bayes 1 # Enable Bayes auto-learning bayes_auto_learn 1 bayes_auto_learn_threshold_nonspam 1 bayes_auto_learn_threshold_spam 14.00 # Enable or disable network checks skip_rbl_checks 0 #use_razor2 1 use_razor2 1 #use_dcc 1 use_dcc 1 #use_pyzor 1 use_pyzor 1 # Mail using languages used in these country codes will not be marked # as being possibly spam in a foreign language. ok_languages all # Mail using locales used in these country codes will not be marked # as being possibly spam in a foreign language. ok_locales all ---------------------------------------------------------------------------- /var/log/mail.log: May 30 05:02:31 rhodos postfix/qmgr[9657]: 01977714DA: from=<[SENDER]>, size=4321, nrcpt=1 (queue active) May 30 05:02:31 rhodos postfix/smtpd[21657]: disconnect from localhost[127.0.0.1] May 30 05:02:31 rhodos amavis[21410]: (21410-02) Passed, <[SENDER]> -> <[RECEIVER]>, quarantine spam-7a4236f73d6ced23d34ef6b35e3b15be-20060530-050230-21410-02, Message-ID: <[EMAIL PROTECTED]>, Hits: 10.253 May 30 05:02:31 rhodos postfix/smtp[21650]: 5848C714D8: to=<[RECEIVER]>, relay=127.0.0.1[127.0.0.1], delay=4, status=sent (250 2.6.0 Ok, id=21410-02, from MTA: 250 Ok: queued as 01977714DA) May 30 05:02:31 rhodos postfix/qmgr[9657]: 5848C714D8: removed May 30 05:02:31 rhodos postfix/virtual[21659]: 01977714DA: to=<[RECEIVER]>, relay=virtual, delay=0, status=sent (delivered to maildir) _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/