Re: [Exim] acl_smtp_data - no access to variables needed

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Darren Casey
CC: exim-users
Betreff: Re: [Exim] acl_smtp_data - no access to variables needed
On Mon, 25 Aug 2003, Darren Casey wrote:

> Using and SQL statment to filter the subject works fine. however I can't
> seem to get the information needed
>
> MYSQL_GET_USER = select user from local_domains where domain =
> '${quote_mysql:$domain}' limit 1
>
> acl_smtp_data:


You cannot use $local_part or $domain in the DATA ACL.

> Now from the book I can see that the variables domain/local_part are not
> avaliable in the smtp_data acl's but I need to be able to get the
> domain/local user value to get the correct user from the table.
>
> Is there a way to set a global variable from one acl to the other?


The ACL variables can be used for this.

> Without this information its not possible to set a per user filter on the
> subject data.


You can't do a per-user filter on the subject data at ACL time. At
least, not if you want to accept all recipients, some of which may want
different filtering to others.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book