Hello list,
I'm trying to create a filter for a customer who doesn't want he's
employees to send any type of attachment, but wants them to be able to
receive some. I know that the best way to do this is to create policies,
and it does work, except for the fact that I can't seem to find a way to
tell postfix to apply a filter based on each recipient of the message.
So, if the user send's an e-mail to [email protected] (internal account
allowing some extensions) and to [email protected] (external account,
should block all extensions), postfix will match the filter to the
internal account and deliver it to amavisd on a policy that will allow
the attachment to go through to the external account. So I thought of
using banned_filename_maps on the default policy, like this:
@banned_filename_maps = (
{ '[email protected]' => 'ALLOWATTACHMENT',
'[email protected]' => 'ALLOWATTACHMENT',
'@example.com' => 'MYNETS-DEFAULT',
'.' => 'BLOCKALL',
},
);
What I found is that mail sent to [email protected] matches
'[email protected]', '@example.com' and '.', the latest blocking all
extensions, causing the mail to be blocked, even if previously allowed
by the map defined by '[email protected]' => 'ALLOWATTACHMENT'. So, my
question is, why does it keep looking for matches even after it has
already found one? And why does the '.' match overrides the previous
one, much more specific?
Could someone tell me what I'm doing wrong here?
Thanks in advance,
Giovani Moda
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4037 (20090427) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
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/