Re: [exim] Stumped and Frustrated

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Finch
Ημερομηνία:  
Προς: Marc Perkel
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Stumped and Frustrated
On Sat, 1 Oct 2005, Marc Perkel wrote:
>
> I want to lookup mail4.paypal.com in a list containing paypal.com and have it
> consider paypal.com as a match.


Use partal- matching (section 9.5 of the spec).

> 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 can put information in the value part of a lookup, which Exim puts
into $domain_data when the lookup matches. For example,

domainlist verify_list = partial-dbm;/etc/exim/run/verifylist.db

then put in the verifylist file

*.paypal.com paypal.com

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}