Marc Perkel <[EMAIL PROTECTED]> wrote:
> I have a file with a list of domains:
> paypal.com
> ebay.com
> ...
> It's in a domain list:
> domainlist verify_list = dbm;/etc/exim/run/verifylist.db
> And on an ACL I have
> sender_domains = +domain_verify
> So - if the sender is [EMAIL PROTECTED] - I think it matches -
> not quite sure.
It does not.
[EMAIL PROTECTED]:~$ /usr/sbin/exim -be \
'${if match_domain{mail5.paypal.com}{paypal.com:ebay.com}{yes}{no}}'
no
I guess this
[EMAIL PROTECTED]:~$ /usr/sbin/exim4 -be \
'${if
match_domain{mail5.paypal.com}{paypal.com:*.paypal.com:ebay.com}{yes}{no}}'
yes
should make you more happy.
> But - lets say it does match - how do I do this?
> I want to lookup mail4.paypal.com in a list containing paypal.com and
> have it consider paypal.com as a match. But - I want to somehow extract
> for processing the part that matched - the paypal.com part - not the
> mail5.paypal.com part - and look up the paypal.com part in the received
> headers to see if I match that.
You could use ${extract to extract the toplevel domain. However this
will sho problemns if the respective "top-level" is not foo.bar but
e.g. example.co.uk.
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/