Re: [Exim] Creating domainlist with SQL select

Top Page
Delete this message
Reply to this message
Author: Wakko Warner
Date:  
To: Kirill Miazine
CC: exim-users
Subject: Re: [Exim] Creating domainlist with SQL select
> > This doesn't always work. Supposed you're testing virtual_domains inside of
> > the mail acl. $domain is blank.
>
> "Whenever a domain list is being scanned, $domain contains the subject
> domain" (section 11.8 of the Exim specification).
>
> It should not matter whether the list is used in an ACL or not.


I tried this, and it did not work as expected. I was testing to see if the
sender was local or not and it always said the sender was not local
($domain was blank).

> > I found that useing ${lookup mysql{...}{ $sg{$value}{\\n}{ : }} }}
> > works pretty well for me. it's on the wishlist to treat a \n as a
> > seperator.
>
> I do not like this approach. What if you have thousands of domains? This
> will still work, but it will not be pretty.


True. If I had thousands to work with, I may find another solution. Still,
thousands to a computer isn't much.

--
Lab tests show that use of micro$oft causes cancer in lab animals