Re: [exim] File extension filtering with smtp_mime_acl with …

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] File extension filtering with smtp_mime_acl with Mysql
On Thursday 22 February 2007 05:17, James Price wrote:
> I could use some help here. I do not with to use the depreciated demime
> function and have not compiled it into my binary. I am trying to block
> known file types that I have listed in a table within my mysql database.
>
> Table name: blockedattachments
> Field: extension
>
> select extension from blockedattachments where extension='extension';
>
> The file extensions all have the period leading the suffix... ex: .bat


Perhaps something similar to

 deny condition = ${if match {$mime_filename}{[.](.+)\$} \
                      ${lookup mysql {SELECT 'true' FROM blockedattachments \
                                      WHERE extension='${quote_mysql:$1}'}}}


?

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans