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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Ian Eiloart
Data:  
Para: exim-users, Adrian
CC: W B Hacker
Asunto: Re: [exim] I cannot get demime file extension blocking working


--On 13 November 2006 12:39:52 +0000 Philip Hazel <ph10@???>
wrote:

> On Mon, 13 Nov 2006, Adrian wrote:
>
>> Thanks for your reply. Can I ask one more question. How do I
>> perform an acl_check_data only on certain domains?
>
> You can't. This probably the most frequently misunderstood feature of
> SMTP. Messages may contain more than one recipient. By the time you get
> to acl_check_data, it is too late to do anything on a per-recipient
> basis. Everything you do there has to be on a per-message basis.


However, in certain installations it may be fairly unusual to get a mix of
local domains in the recipient list. For example, if you're a mail host for
a small number of small companies.

In this case, you could set a flag for each domain that you see in the RCPT
acl, then check those flags in the DATA acl. You'll have to decide whether
to be liberal or not in the event that you see more than one domain, or to
do what Philip suggests below.

>> 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 only way to do this is to temporarily reject some recipients if a
> message arrives with a mixture of recipient requirements. Some people
> seem to be OK with this way of doing things; others don't like it very
> much. Then use an ACL variable to remember what kind of check you want
> to do at acl_check_data time.
>
>> The acl_check_data doesn't seem to allow the domains clause.
>
> ... because there may be many recipient domains.
>
>
> --
> Philip Hazel            University of Cambridge Computing Service
> Get the Exim 4 book:    http://www.uit.co.uk/exim-book




--
Ian Eiloart
IT Services, University of Sussex