Re: [exim] reject html letters and gif attachments!

Top Pagina
Delete this message
Reply to this message
Auteur: Exim users mailing list
Datum:  
Aan: unaos
CC: Exim users mailing list
Onderwerp: Re: [exim] reject html letters and gif attachments!
On Tue, Mar 13, 2007 at 02:24:38PM +0200, unaos wrote:
> very nice to see the example of realisation, if u have for the both
> questions please.


Here is an example of MIME ACL:

acl_smtp_mime          = acl_check_mime


[...]

acl_check_mime:
        deny
        message         = Attachment: $mime_filename
        condition       = ${if match{$mime_filename}{\N\.(bat|btm|cmd|com|cpl|dll|lnk|msi|pif|prf|reg|scr|vbs|url|exe)$\N}}
        accept


Change message to one you need. Change extensions to ones you need.

Partially the same realization with DATA ACL and demime:
acl_smtp_data          = acl_check_data


acl_check_data:
    deny
        message        = Attachment: $found_extension
        demime        = bat:btm:cmd:com:cpl:dll:lnk:msi:pif:prf:reg:scr:vbs:url:exe
    accept


-- 
Kind Regards,    Alexander Shikoff
minotaur@???
Mob.: +380 67 946 31 49