Searching files for host lists

Page principale
Supprimer ce message
Répondre à ce message
Auteur: John Henders
Date:  
À: exim-users
Sujet: Searching files for host lists
I would like to be able to match a list of domains in the form

domain1.com
domain2.com
domain3.com

with a lsearch lookup. However, the sticky bit is that I also want to
have any subdomain in the above domains also be matched. I've tried
every combination of partial, partial0, etc that I can think of but all
seem to be designed on the presumption that the domains will be in the
form

*.domain1.com
etc.

I'd like to be able to use the first form because I already have a file
in that format, and I would prefer to use the same file as a
relay_domains file, rather than having to convert the one file to
another in a different format every time I update the first file. Am I
out of luck or is there a search method I've missed?

-- 
  Artificial Intelligence stands no chance against Natural Stupidity.
            GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v
                 b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*