13 messages in net.sourceforge.lists.courier-users[courier-users] RE: Blocking attachme...
FromSent OnAttachments
Moshe GurvichMar 13, 2004 10:03 pm 
Julian MehnleMar 14, 2004 3:53 am 
Sam VarshavchikMar 14, 2004 8:12 am 
Moshe GurvichMar 14, 2004 2:16 pm 
Moshe GurvichMar 14, 2004 2:18 pm 
Julian MehnleMar 14, 2004 3:50 pm 
Moshe GurvichMar 14, 2004 4:39 pm 
Stefan SchatzlMar 15, 2004 2:14 am 
Julian MehnleMar 15, 2004 3:20 am 
Julian MehnleMar 15, 2004 3:29 am 
Moshe GurvichMar 15, 2004 10:23 am 
Moshe GurvichMar 15, 2004 10:41 am 
Moshe GurvichMar 15, 2004 1:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] RE: Blocking attachments by extensionActions...
From:Julian Mehnle (lis@mehnle.net)
Date:Mar 15, 2004 3:20:39 am
List:net.sourceforge.lists.courier-users

Stefan Schatzl [stef@rubig.com] wrote:

Julian Mehnle schrieb:

To solve your problem properly, you could use Courier::Filter[1]'s MIMEParts filter module to reject messages with unwanted attachment types or file names.

[1] http://search.cpan.org/~jmehnle/Courier-Filter-0.12/

Is an example or sample configuration for blocking eg executables somewhere available?

Yes, roughly. In the documentation of Courier::Filter::Module::MIMEParts, there
are two examples: one in the SYNOPSIS section, and one in the description of the
new() constructor's "signatures" option.

Basically, you do it like this:

signatures => [ { file_name => qr/\.(com|exe|lnk|pif|scr)$/, response => 'Executable content detected' } ]