Re: [exim] domain_match, local_domain, sql

2008-08-02 Thread Marcin Gryszkalis
On Friday of August 1 2008, Tony Finch wrote: looking into mysql logs it looks like fist condition matched against destination domain, not the sender one (is that possible?) Because $domain in the local_domains list definition is the recipient domain. right, It's my first exim box (I came

Re: [exim] domain_match, local_domain, sql

2008-08-01 Thread Tony Finch
On Fri, 18 Jul 2008, Marcin Gryszkalis wrote: domainlist local_domains = ${lookup mysql {SELECT DISTINCT domain FROM user WHERE domain='${quote_mysql:$domain}' UNION SELECT DISTINCT domain FROM alias WHERE domain='${quote_mysql:$domain}'}} and it seems to work well in other places. in rcpt

[exim] domain_match, local_domain, sql

2008-07-18 Thread Marcin Gryszkalis
Hi I have strange problem, I wanted to create acl check to defer messages from local domains but without auth. local_domains are defined as: domainlist local_domains = ${lookup mysql {SELECT DISTINCT domain FROM user WHERE domain='${quote_mysql:$domain}' UNION SELECT DISTINCT domain FROM alias