Re: [Exim] Restricting local senders

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: William Thompson
Data:  
Para: Lee Cashmore
CC: exim-users
Assunto: Re: [Exim] Restricting local senders
> I am attempting to stop a number of local users from sending emails (at
> all) whilst allowing other users to continue as normal. I have been
> looking at the acl configuration for this and think i need to use
> something similar to:
>
> acl_smtp_mail = acl_checknot_blockeded
>
>
>
> begin acl
>
> acl_check_notblocked:
>
>   deny  senders  =
> ${lookup{$domain}lsearch{/etc/exim/blocked_email_addresses}{$value}fail}
>         message = Email Access Is Presently Blocked

>
>
>
> blocked_email_addresses    contains:

>
> tcat.ac.uk        user1
> tcat.ac.uk        user2

>
> and so on


How about:
acl_check_notblocked:
    deny    senders = @@lsearch;/etc/exim/blocked_email_addresses
        message = Email Access Is Presently Blocked