Re: [exim] Exim authentication and user checking

Top Page
Delete this message
Reply to this message
Author: Theo de Morée
Date:  
To: exim-users
Subject: Re: [exim] Exim authentication and user checking
Hi Tony,

I've tried doing the things below, but for some reason the
$sender_address_data never gets set in the acls. I've even tried adding the
address_data= to every single router to make sure it would have to be set at
some point and still nothing. I see in the link you gave me that you need at
least Exim 4.44. I've installed the Debian version which is listed on the
Debian package site as 4.62 so that shouldn't be the problem either. Altough
the Exim site says the latest version is 4.61 so that's a bit strange.

Any idea what might be the problem?

Thanks,
Theo


>From: Tony Finch <dot@???>
>Reply-To: exim-users@???
>To: Theo de Morée <thdemo@???>
>CC: exim-users@???
>Subject: Re: [exim] Exim authentication and user checking
>Date: Sun, 7 May 2006 09:11:12 +0100
>
>On Fri, 5 May 2006, Theo de Morée wrote:
> >
> > What I'd like to have is some way to check in the acl_smtp_mail part
>whether
> > the mail from part of the mail 'belongs' to me. So if I'm logged in as
>theo
> > and my user only has admin@??? assigned to me (in a file called
> > domain.com it has 'admin : theo@localhost') I want to reject the mail
>when I
> > would try and send it from any address but admin@???. And if I
>would
> > have multiple addresses routed to me on multiple domains I should be
>able to
> > send a mail from any of them. How would I make such a check?
>
>In your localuser router, set address_data to the username that
>corresponds to the address. This will then be available in
>$sender_address_data in the ACLs after you have run verify=sender. Exim's
>routing will trace through the aliases and eventually work out the
>username as a side-effect. You can then compare it to $authenticated_id.
>For more deails have a look at
>http://www.exim.org/mail-archives/exim-users/Week-of-Mon-20041101/msg00107.html
>
>Tony.
>--
><fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
>N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
>\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}