[Mailman-Users] Discarding stripped messages and rejectingimplicitdeclaration posts.
Tokio Kikuchi
tkikuchi at is.kochi-u.ac.jp
Sat Feb 12 23:14:44 CET 2005
Hi,
Mark Sapiro wrote:
> Lars Bungum wrote:
>
>
>>On Sat, 2005-02-05 at 18:38, Mark Sapiro wrote:
>>
>>How about adding the content-types to the spam-option? I tried doing
>>this now, like:
>>
>>Content-Type: application/octet-stream; name="details.exe"
>>
>>as the spamfilter regexp. Would that work?
>
> No, it won't work because the header_filter_rules are only applied to
> the message headers. They are not checked against the sub-part headers
> for MIME sub-parts. Thus the only header you could match against would
> be something like
It will work if you upgrade your mailman to 2.1.6b3! Here is a excerpt
from the detail to header_filter_rules (privacy):
Note that headers are collected from all the attachments (except for the
mailman administrivia message) and matched against the regular
expressions. With this feature, you can effectively sort out messages
with dangerous file types or file name extensions.
content-.*name=.*\.exe
will do the work.
--
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
More information about the Mailman-Users
mailing list