Re: [Exim] disabling a system user

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Kjetil Torgrim Homme
Date:  
À: JupiterHost.Net
CC: EximUser List
Sujet: Re: [Exim] disabling a system user
On Thu, 2004-07-29 at 11:41 -0500, JupiterHost.Net wrote:
> So if I have a system user 'noemailuser' would I just add this to the
> check_recipient acl? :
>
> ---------
> acl_smtp_rcpt = check_recipient
> ...
>
> begin acl
>
> check_recipient:
>
> deny local_parts = nomailuser
> ....
> ---------
>
> That way if someone tries to send mail as noemailuser it will be denied?


this will deny e-mail sent _to_ noemailuser@anything.

you want

deny   authenticated = *
       condition = ${if eq {$authenticated_id}{noemailuser} \
                        {yes}{no}}
       message = You are not allowed to send e-mail


you also need to use server_set_id to store the username in your
authenticator, most recipes do this, e.g.:

plain:
driver = plaintext
public_name = PLAIN
server_prompts = :
server_condition = ${if saslauthd{{$2}{$3}}{1}{0}}
server_set_id = $2
server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}

--
Kjetil T.