Author: Peter Bowyer Date: To: Exim Users Mailing List Subject: Re: [exim] control outgoing relay
On 11/05/05, Raphael Reich <raphael@???> wrote: > Let's say I have setup Exim to act as an outgoing relay for the domain
> mydomain.tld.
>
> The users (whitch are all system users having maildirs) authenticate
> themselves via SMPT AUTH.
>
> The problem is, that e.g. the user tom (tom@???) can use any local
> part as sender address (e.g. anything@???). I want to restrict the
> users to their own local part.
>
> How can this be done?
As long as your authenticator does 'server_set_id', you can access the
authenticated userid as '$authenticated_user' in a MAIL acl and test
it against the presented sender address.