Re: [Exim] disabling a system user

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: JupiterHost.Net
Dátum:  
Címzett: Kjetil Torgrim Homme
CC: EximUser List
Tárgy: Re: [Exim] disabling a system user

Kjetil Torgrim Homme wrote:

> 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.


I knew I had that goofed up :)

> 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}}



Ecellent, I'll play with that for while, thanks again!