Virtual Users And Domains spamassassin don't tag
another question about Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Debian Lenny)
The server works well and redirect on the other mail server but I can not, however, to make spamassassin insert tags **** SPAM **** to the end user can decide.
In the /etc/amavis/conf.d/20-debian_default I have:
$QUARANTINEDIR = "$MYHOME/virusmails";
$quarantine_subdir_levels = 1;
$log_recip_templ = undef;
$DO_SYSLOG = 1;
$syslog_ident = 'amavis';
$syslog_facility = 'mail';
$syslog_priority = 'debug';
$enable_db = 1;
$enable_global_cache = 1;
$inet_socket_port = 10024;
$sa_spam_subject_tag = '***SPAM*** ';
$sa_spam_report_header = 1;
#$sa_tag_level_deflt = 2.0;
$sa_tag_level_deflt = -9999;
$sa_tag2_level_deflt = 6.31;
$sa_kill_level_deflt = 6.31;
$sa_dsn_cutoff_level = 10;
$sa_mail_body_size_limit = 200*1024;
$sa_local_tests_only = 0;
$MAXLEVELS = 14;
$MAXFILES = 1500;
$MIN_EXPANSION_QUOTA = 100*1024;
$MAX_EXPANSION_QUOTA = 300*1024*1024;
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_BOUNCE;
#$final_spam_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
$final_bad_header_destiny = D_PASS;
$virus_admin = "postmaster\@$mydomain";
$X_HEADER_LINE = "Debian $myproduct_name using ClamAV at $mydomain";
and follow the rest
# Add *****SPAM***** to the Subject header of spam e-mails
# rewrite_header Subject *****SPAM*****
# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
# report_safe 1
# Set which networks or hosts are considered 'trusted' by your mail
# server (i.e. not spammers)
# trusted_networks 212.17.35.
# Set file-locking method (flock is not safe over NFS, but is faster)
# lock_method flock
# Set the threshold at which a message is considered spam (default: 5.0)
# required_score 5.0
# Use Bayesian classifier (default: 1)
# Bayesian classifier auto-learning (default: 1)
# Set headers which may provide inappropriate cues to the Bayesian
# bayes_ignore_header X-Bogosity
# bayes_ignore_header X-Spam-Flag
# bayes_ignore_header X-Spam-Status
many thanks in advance
you have to lower the value of the "$sa_tag_level_deflt" variable (in /etc/amavis/20-debian_defaults) to 0 or lower and change the "@local_domains_acl" (in /etc/amavis/50-user) to "( . )" or the domains you would like to have checked.
my $sa_tag_level_deflt = -9999; in /etc/amavis/conf.d/20-debian_default
but I found local_"@local_domains_acl" in 05-domain_id not in 50-user.
So I must add by hand in 50-user?
sorry, my mistake.
I've got it in 05-domain_id and 50-user because I do every changes in 50-user to override previous settings so I can easily see all the changes I've made.
feel free to change/add whereever you want :)
|All times are GMT +2. The time now is 08:00.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.