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

Góra strony
Delete this message
Reply to this message
Autor: mirdin
Data:  
Dla: exim-users
Temat: Re: [exim] restrict smtp auth to certain users/domains
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.

>If you want to limit by ip instead of sender email address domain,
>that's much more simple. You use the server_advertise_condition option
>in your authenticator(s)


Limiting by ip is not very convenient in this case, so I'd rather block by
usernames or domains.

>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

fixed_login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${perl{checkuserpass}{$1}{$2}}"
server_set_id = $1