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