Thank you Gary, It works ! Gary V a écrit : > Philippe wrote: > >> Hello all, >> >> I'm trying to get spamassassin and clamav working with amavis-new for >> some times >> and I have now a problem that I don't understand. >> A couple of days ago, when I installed amavis/clamav/spamassassin I did >> some basic tests >> and my test emails were properly tagged as spam. >> FYI, I'm not sure if this might be linked, but to resolve some other >> issues I had with >> my postfix install (bad config) I did some changes. >> >> I can see that postfix transfer any email to amavis via 10024 and get it >> back on 10025. >> For example, within the emails headers I can see the banners >> "X-Virus-scanned: amavisd-new mysystem" and >> "X-Amavis-Alert: INFECTED, message contains virus: Eicar-Test-Signature" >> if a virus >> is detected. But it doesn't seems to work for spams. >> >> Somebody can help to point me what I did wrong ? >> Thank you in advance, >> PhiL >> >> ****************** >> >> In my config file (/etc/amavis/conf.d/50-users) I use : >> (I didn't modify any of the other files in conf.d) >> >> $inet_socket_bind = '127.0.0.1'; >> $forward_method = 'smtp:127.0.0.1:10025'; >> $notify_method = $forward_method; >> >> # commented in 15-content_filter_mode >> # @bypass_virus_checks_maps = ( >> # \%bypass_virus_checks, [EMAIL PROTECTED], >> \$bypass_virus_checks_re); >> # @bypass_spam_checks_maps = ( >> # \%bypass_spam_checks, [EMAIL PROTECTED], >> \$bypass_spam_checks_re); >> > If you read the notes in 15-content_filter_mode it says you must > uncomment these to enable them. This is required because they are > disabled in /usr/share/amavis/conf.d/20-package > > Yes I read that and as it didn't work I tried commented as it seems more "intuitive" regarding the variable name I commented out these lines again. >> $sa_spam_modifies_subj = 1; >> $sa_spam_subject_tag = '[AMAVIS: SPAM] '; >> $sa_tag_level_deflt = -100; # ajout des infos de spam au >> dessus de ce score >> $sa_tag2_level_deflt = 6.3; # ajout de la marque X-Spam-Flag >> a ce score >> $sa_kill_level_deflt = 100; # le spam est efface a ce score >> >> $X_HEADER_LINE = "$myproduct_name $mydomain"; >> $X_HEADER_TAG = "X-Virus-scanned"; >> >> $final_virus_destiny = D_PASS; # Le temps de voir si OK >> $final_banned_destiny = D_PASS; # Le temps de voir si OK >> $final_spam_destiny = D_PASS # Le temps de voir si OK >> $final_bad_header_destiny = D_PASS; # Le temps de voir si OK >> > The tagging you desire is only done for recipients considered 'local'. > Make sure the recipient domain is in @local_domains_maps. In fact, in > 50_user, list your domains there. > > @local_domains_maps = ( [ ".$mydomain", '.example.net', '.example.com' ] ); > > Gary V > I added ( [ ".$mydomain" ] ); as I have only one domain
and now all incoming emails recognized as spam are now well tagged. As I can see now what Amavis does in the header, I understand that what I've seen before was probably the SA headers and I wonder if for sometime I directly coupled postfix to spamd. Do you know/recommand a link to a documentation that list and comment all variables used in amavis ? I've found few of them in the Tips & FAQ chapter from amvisd-new documentation but local_domain_maps is not in. Thanks again, PhiL ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
