Giovani,
> I'm facing an strange problem with amavis. I have a created a rule to
> block all outgoing attachments from MYNETS, as follow:
>
> $policy_bank{'MYNETS'} = {
> originating => 1,
> terminate_dsn_on_notify_success => 0,
> bypass_banned_checks_maps => [ @local_domains_maps ],
> banned_filename_maps => ['BLOCKALL'],
> };
>
> %banned_rules = (
> 'BLOCKALL' => new_RE(
> [ qr'^\.[a-zA-Z0-9]*$' => 1 ] ),
> 'MYNETS-DEFAULT' => new_RE(
> [ qr'^\.(rpm|cpio|tar|zip|rar)$' => 0 ],
> qr'.\.(vbs|pif|scr)$'i,
> qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i,
> qr'^\.(exe-ms)$', # banned file(1) types
> ),
> 'DEFAULT' => $banned_filename_re,
> );
>
> All clients are Outlook Express configured to send mail only as plain
> text. It was working 'till a few hours ago,
The question is what it wasn't blocking before.
> when all mail sent from internal addresses were blocked:
>
> amavis[7743]: (07743-10) Blocked BANNED (text/plain,.asc), MYNETS LOCAL
The ".asc" is a result from a file(1) utility,
which is normal for plain ascii text.
> So I had to change BLOCKALL to
>
> 'BLOCKALL' => new_RE(
> [ qr'^text/plain$'i => 0],
> [ qr'^\.[a-zA-Z0-9]*$' => 1 ] ),
>
> In order to allow mail to go through again.
Yes, that would make it alright. The second rule should be
blocking practically everything except null body mail.
> Anyone can explain why
> amavis is blocking a plain text e-mail, all of the sudden? No parameter
> in amavisd.conf where changed, I've checked Outlook Express to make sure
> that no attachments where included on the message and that it was indeed
> being sent as plain text. Everything was the same as before, when it was
> working, but mail gets blocked unless I allow plain/text extensions to
> go through.
Maybe BLOCKALL wasn't being invoked at all, perhaps due to
the policy bank MYNETS not being loaded.
Mark
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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/