Re: [exim] String expansion sometimes not working

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users @ exim. org
Αντικείμενο: Re: [exim] String expansion sometimes not working
iain wrote:
> I am trying to setup per-user configurations for spam scanning. In my
> acl_smtp_data checks I have the following:
>
> *** START ***
> accept condition = ${lookup mysql{SELECT spamscan FROM users WHERE
> email='${quote_mysql:$local_part}@${quote_mysql:$domain}' AND
> spamscan=0}{yes}{no}}

[...]
> *** START ***
> 13141 Query       SELECT spamscan FROM users WHERE email='@' AND spamscan=0
> 13148 Query       SELECT spamscan FROM users WHERE
> email='iain@???' AND spamscan=0
> 13149 Query       SELECT spamscan FROM users WHERE email='@' AND spamscan=0
> *** END ***

>
> The query is taking place once the data part of the SMTP process is
> being run, so I am at a loss as to why Exim does not pass this
> information in a consistent manner.


What are you expecting local_part to be at data time on a multi-recipient mail?
- Jeremy