Szerző: Marc Perkel Dátum: Címzett: Exim-Users (E-mail) Tárgy: Re: [Exim] domainlist question - second attempt
That still doesn't get what I need. I need to put it in a DOMAINLIST so
that I can then use +preprocess_domains as part of a definition for
other domain lists.
I appreciate everyone's help here - but I really need a specific
solution in the form:
domainlist preprocess_domains = ???????
Where you fill in the ???????? and it behaves just like the extra fields
aren't there.
Stephen Gran wrote:
>On Sun, Mar 21, 2004 at 07:15:40AM -0800, Marc Perkel said:
>
>
>>OK - asking again still looking for the correct answer that actually
>>works and trying to be more clear. What I need to do is something like
>>this. The ordinary way to do domain lists is:
>>
>>domainlist preprocess_domains = lsearch;/etc/exim/preprocess
>>
>>where /etc/exim/preprocess contains:
>>
>>domain1.com
>>domain2.com
>>domain3.com
>>
>>----- BUT ------
>>
>>I need a domain list where the file /etc/exim/preprocess looks like:
>>
>>domain1.com: contains
>>domain2.com: other
>>domain3.com: data
>>
>>The domain list needs to behave with the second list exactly the way it
>>would
>>behave with the top example. So - the question is:
>>
>>domainlist preprocess_domains = ???????
>>
>>
>
>domainlist preprocess_domains = lsearch;/etc/exim/preprocess
>
>Then when you go to preprocess their mails, do this:
>
>condition = ${if eq{${lookup{$domain}lsearch{/etc/exim/preprocess}}{yes}{yes}{no}}}
>
>or so, to extract the data you're looking for, if it's a simple yes/no.
>
>Not tested, so use with some caution - especially check where my braces
>are :)
>
>If you're looking for more complicated things, you might want to use acl
>variables.
>
>
>
>