Hi all,

I found the same bug that Jerome Schell reported some days ago about LDAP per recipient.

Looking at the sources in 2.3.3, in line 5293:

             if (!exists($banned_rules{$n})) {
do_log(2,"INFO: unknown banned table name $n, recip=$recip");
             } elsif (!defined($banned_rules{$n})) {  # ignore undef
             } else { push(@names,$n) }

The !defined is always true, I don't know why...so I commented out.
But appears that the code after line 5366 isn't correct, because isn't checking agaisnt the rules, apparently is cheking against the key, and it always return true, and all emails are blocked.

Sep 14 13:16:22 tatooine amavis[669]: (00669-01) lookup (banned_filename), 2 matches for "[EMAIL PROTECTED]", results: "/cached/"=>["DEFAULT"], "(constant:DEFAULT)"=>"DEFAULT" Sep 14 13:16:22 tatooine amavis[669]: (00669-01) collect banned table[1]: [EMAIL PROTECTED], tables: DEFAULT=> Sep 14 13:16:22 tatooine amavis[669]: (00669-01) starting banned checks - traversing message structure tree Sep 14 13:16:22 tatooine amavis[669]: (00669-01) check_for_banned (p001) text/plain,.dat Sep 14 13:16:22 tatooine amavis[669]: (00669-01) doing banned check for [EMAIL PROTECTED] on text/plain,.dat Sep 14 13:16:22 tatooine amavis[669]: (00669-01) lookup: (scalar) matches, result="DEFAULT" Sep 14 13:16:22 tatooine amavis[669]: (00669-01) lookup (check_bann:[EMAIL PROTECTED]) => true, ["text/plain",".dat"] matches, result="DEFAULT", matching_key="(constant:DEFAULT)" Sep 14 13:16:22 tatooine amavis[669]: (00669-01) p.path BANNED:DEFAULT [EMAIL PROTECTED]: "P=p001,L=1,M=text/plain,T=dat", matching_key="(constant:DEFAULT)" Sep 14 13:16:22 tatooine amavis[669]: (00669-01) banned check: any=1, all=Y (1)


My amavisd.conf

@banned_filename_maps = ( 'DEFAULT' );
%banned_rules = ('DEFAULT' => $banned_filename_re);

$banned_filename_re = new_RE(
  # block certain double extensions anywhere in the base name
  qr'\.[^./]*\.(exe|vbs|pif|scr|bat|cmd|com|dll)$'i
);


Kind regards,

Aury Fink Filho


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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/

Reply via email to