[Exim] Exim and filters

Página Inicial
Delete this message
Reply to this message
Autor: Nils
Data:  
Para: exim-users
Assunto: [Exim] Exim and filters
Hi all,

I want to filter some evil attachments for the windows clients in my
small intranet.
This was my idea to solve the problem but it doesn't work in any cases.
Here is the relevant part of my .forward file:

if $message_body_end: matches "Content-Disposition: attachment; filename=\".*.exe|pif|foo\"" then
testprint $message_body_end
save /home/gain/Mail/foo
mail
to $reply_address
subject "Re: (eVSc ALERT !!! your mail to $header_to ) $h_subject:"
return message
file $home/eVSc/message
endif


This works with very small attachments, i also tried $message_body, but this value is
limited to 500 chars afaik.
How can i solve this problem ? Is there a better way to do it ?
Is it possible to define a value in the .forward file ? like $evil_att = "exe|pif|foo" ?

thanks in advance,
Nils
-- 
(?- Get my Key "gpg --keyserver wwwkeys.eu.pgp.net --recv-key 45CD0073"  -?)
//\ Key fingerprint = F4D9 9274 6ED8 B227 A62A  33FA 0D2E 2414 45CD 0073 /\\
V_/_   www.darktec.org /|\ eject@IRCNet on #irc.de #linux.de #linuxger  _\_V
    ***  Premature optimization is the root of all evil.  - D. Knuth ***