Stefan Schatzl [EMAIL PROTECTED] 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'
        }
    ]



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to