From: Michael Tokarev (no email)
Date: Fri Feb 01 2002 - 10:47:27 EST
Matheus Soares wrote:
>
> Hello all,
>
> i have a rule in my body_checks property, only this line:
> /^(.*)name\=\"(.*)\.(scr|vbs|shs|bat|com|exe|pif|dll|mpe...
Remove:
^(.*)
\ before = and " (not very necessary)
( and ) around .*
to read:
> /name=".*\.(scr|vbs|shs|bat|com|exe|pif|dll|mpe...)"$/
> for outgoing mails from my clients it work perfectly, but for incoming mails
> nothing happens. The e-mail pass without any check.
Look to the corresponding headers your incoming mails have. I guess that
it contains no double-quotes ("), or uses base64- or quoted-printable-encoded
filename, or something similar.
> I think that body_checks is intended to be for the two ways, isn't?
Body_checks applies when mails is RECEIVED by postfix -- it's irrelevant from
where it is received and where it will go next.
Regards,
Michael.
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|