<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi </div><div><br></div><div>I create my rules in a file file.cf in /etc/mail/spamassassin/ directory and i reload amavis and it s ok normaly</div><div><br></div><div>Amavis add local_sex in message header?</div><div>What is score in message header?</div><div>Regards</div><div>Stan<br> </div><div><br>Le 3 mars 2016 à 10:35, Indunil Jayasooriya <<a href="mailto:indunil75@gmail.com">indunil75@gmail.com</a>> a écrit :<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi list, <br><br><div><br>i have a rule to block mails based on body in /etc/mail/spamassassin/<a href="http://local.cf">local.cf</a><br clear="all"><div><br></div><div>this is what i have written in /etc/mail/spamassassin/<a href="http://local.cf">local.cf</a> file<br><br>body LOCAL_SEX /\b(sex)\b/i<br>describe LOCAL_SEX Email contains the word sex.<br>score LOCAL_SEX 7.0<br><br><br></div><div>I sent a mail from my gmail account by adding word sex in my body as well as in Subject . <br><br></div><div>But amavis does NOT block. It says Passed CLEAN<br><br><br></div><div>here are very important lines in amavisd,conf file<br><br></div><div><br># @bypass_virus_checks_maps = (1); # controls running of anti-virus code<br># @bypass_spam_checks_maps = (1); # controls running of anti-spam code<br># $bypass_decode_parts = 1; # controls running of decoders&dearchivers<br><br><br># $MYHOME = '/var/amavis'; # a convenient default for other settings, -H<br>$TEMPBASE = "$MYHOME/tmp"; # working directory, needs to exist, -T<br>$ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc.<br>$QUARANTINEDIR = "/var/virusmails";<br># $quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine<br><br># $daemon_chroot_dir = $MYHOME; # chroot directory or undef, -R<br><br>$db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D<br># $helpers_home = "$MYHOME/var"; # working directory for SpamAssassin, -S<br># $lock_file = "$MYHOME/var/amavisd.lock"; # -L<br># $pid_file = "$MYHOME/var/amavisd.pid"; # -P<br>#NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually<br><br>$log_level = 0; # verbosity 0..5, -d<br>$log_recip_templ = undef; # disable by-recipient level-0 log entries<br>$DO_SYSLOG = 1; # log via syslogd (preferred)<br>$syslog_facility = 'mail'; # Syslog facility as a string<br> # e.g.: mail, daemon, user, local0, ... local7<br>$syslog_priority = 'debug'; # Syslog base (minimal) priority as a string,<br> # choose from: emerg, alert, crit, err, warning, notice, info, debug<br><br>$enable_db = 1; # enable use of BerkeleyDB/libdb (SNMP and nanny)<br>$enable_global_cache = 1; # enable use of libdb-based cache if $enable_db=1<br>$nanny_details_level = 2; # nanny verbosity: 1: traditional, 2: detailed<br><br><br><br>$sa_tag_level_deflt = undef; # add spam info headers if at, or above that level<br>$sa_tag2_level_deflt = 2.5; # add 'spam detected' headers at that level<br>$sa_kill_level_deflt = 2.5; # triggers spam evasive actions (e.g. blocks mail)<br>$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent<br># $sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off<br>$penpals_bonus_score = 8; # (no effect without a @storage_sql_dsn database)<br>$penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam<br><br><br>#$sa_spam_subject_tag = '***SPAM*** ';<br>$sa_spam_subject_tag = '{Spam?}';<br>$defang_virus = 1; # MIME-wrap passed infected mail<br>$defang_banned = 1; # MIME-wrap passed mail containing banned name<br># for defanging bad headers only turn on certain minor contents categories:<br>$defang_by_ccat{+CC_BADH.",3"} = 1; # NUL or CR character in header<br>$defang_by_ccat{+CC_BADH.",5"} = 1; # header line longer than 998 characters<br>$defang_by_ccat{+CC_BADH.",6"} = 1; # header field syntax error<br><br><br> $notify_method = 'smtp:[127.0.0.1]:10025';<br> $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!<br><br> $final_virus_destiny = D_DISCARD;<br> $final_banned_destiny = D_BOUNCE;<br> $final_spam_destiny = D_DISCARD;<br> $final_bad_header_destiny = D_PASS;<br> $bad_header_quarantine_method = undef;<br><br><br></div><div>Where have I gone wrong? <br></div><div><br><br><br><br><br></div><div><br><br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr">cat /etc/motd<br><br>Thank you<br>Indunil Jayasooriya <br><a href="http://www.theravadanet.net/" target="_blank">http://www.theravadanet.net/</a><br><a href="http://www.siyabas.lk/sinhala_how_to_install.html" target="_blank">http://www.siyabas.lk/sinhala_how_to_install.html</a> - Download Sinhala Fonts<br><br></div></div>
</div></div></div>
</div></blockquote></body></html>