Graeme Fowler wrote:
> On Sat, 2009-02-14 at 21:31 -0800, Marc Perkel wrote:
>   
>> Trying to do a DBM lookup.
>>
>> condition = 
>> ${lookup{$domain}dbm{/etc/exim/control/run/alllocal.db}{yes}{no}}
>>
>> But - if example.com is in the file it will also match xxx.example.com
>>     
>
> Are you sure?
>
>   
>> How do I do a lookup where xxx.example.com won't match if example.com is 
>> in the file but will match if xxx.example.com is in the file.
>>     
>
> Taking your example, I created a two-line text file and converted it to
> DBM format using exim_dbmbuild:
>
> example.com
> xxx.example.com
>
> Then using exim -be I tried:
>
>   
>> ${lookup{example.com}dbm{alllocal}{yes}{no}}
>>     
> yes
>   
>> ${lookup{xxx.example.com}dbm{alllocal}{yes}{no}}
>>     
> yes
>   
>> ${lookup{marcperkel.example.com}dbm{alllocal}{yes}{no}}
>>     
> no
>
> Looks to my (untrained, I try not to use DBM files much) eye that your
> assertin is invalid. But you did try this before posting, right?
>
> Graeme
>
>   

I'm beginning to this you are right and I am wrong. It turns out that a 
user defined a bunch of subdomains that were in the list. Now with more 
testing I was wrong.

Sorry about that.

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to