Re: [exim] restrict smtp auth to certain users/domains

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mike Cardwell
Datum:  
To: exim-users
Betreff: Re: [exim] restrict smtp auth to certain users/domains
* on the Fri, Dec 22, 2006 at 09:25:08AM +0100, mirdin wrote:

> Mike, thank you for the explanation.
>
>> However, if the domain you want to filter on is in the actual
>> username sent
>> during authentication, you can just take that into account in the
>> server_condition part of your variable.
> Indeed the usernames I want to allow will always contain the domain.


<strip ip limit stuff>

>> If you provide a little more info on exactly what is being filtered
>> on,
>> and show us your current authenticator(s), someone should be able to
>> tell you exactly what to change.
> I'm not sure what other part of the configuration you would need to
> see. I
> can paste the complete exim.conf if that would help.
>
> begin authenticators
>
> fixed_plain:
> driver = plaintext
> public_name = PLAIN
> server_prompts = :
> server_condition = "${perl{checkuserpass}{$1}{$2}{$3}}"
> server_set_id = $2


In your authenticator you're calling a perl subroutine called
"checkuserpass" to do the authentication. Why not update that
subroutine to fail auth automatically unless the username contains one
of the valid domains?

Mike