Re: [exim] I cannot get demime file extension blocking worki…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Adrian
Dátum:  
Címzett: W B Hacker
CC: exim users
Tárgy: Re: [exim] I cannot get demime file extension blocking working
Hi,

Thanks for your reply. Can I ask one more question. How do I
perform an acl_check_data only on certain domains?

For example, I only want to block .exe and .mp3 files to a couple
of domains and let the rest do what they want.

The acl_check_data doesn't seem to allow the domains clause.

Thanks,
Adrian.



On 11/9/06, W B Hacker <wbh@???> wrote:
> Adrian wrote:
> > Hi,
> >
> > I have this simple ACL:
> >
> > acl_check_data:
> >         deny    message = This message contains an unwanted attachment
> > type.
> >                 demime =
> > bat:btm:cmd:com:cpl:dll:exe:lnk:msi:pif:prf:reg:scr:vbs:url:cab:mp2:mp3:mpeg:msi:wma:wmv:zip

> >
> >
> >
> > It doesn't seem to do anything
>
> Uhhh... before you say that - have you sent a test message with one of those
> file extensions as an attachment?
>
> It can be, AFAIK zero-byte or near-as-dammit, and doesn't have to *be* one of
> those files, so long as it has a file extent in the list.
>
> It should then 'do something' fairly obvious.
>
> ;-)
>
>
> > and I can't see any reference to it
> > when running in debug mode. Is there something else I have to do to
> > get acl_check_data enabled?
> >
> > Thanks,
> > Adrian.
> >
>
> There should be a 'mapping' in your 'MAIN' section of the form;
>
> acl_smtp_data = acl_check_data
>
> Else it is not going to be called upon to act.
>
>
> HTH,
>
> Bill
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>