Re: [exim] Preventing some users from sending local mail

Etusivu
Poista viesti
Vastaa
Lähettäjä: Peter Bowyer
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Preventing some users from sending local mail
Doug Jolley <d2jcell@???> wrote:
> The sample Exim config file accepts local mail
> across the board with the following acl
> statement:
>
>     accept hosts = :

>
> I would like to deny some users on the local
> system the ability to send local mail using
> something like:
>
>     exim -t < my_mail_msg

>
> I would think that would be pretty easy to
> accomplish by inserting an additional ACL
> statement before the one above that looked
> something like this:
>
>     deny hosts   = :
>          senders = ^.*local_user_name.*

>
> I must be missing something as it is not
> working. Can anyone set me straight? Thanks
> for any input.


That snippet is presumably in your SMTP RCPT acl. In your case you're
looking to contol messages sent using the exim command line, which don't use
SMTP so are not handled by the acl_smtp_xxx acls at all.

You probably need an acl for acl_not_smtp.

http://www.exim.org/exim-html-4.40/doc/html/spec_38.html#SECT38.2

Peter