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

> $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


-------------------------------------------------------------------------
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/

Reply via email to