Re: [Exim] sender_reject_recipients Query

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Gordon McKee
CC: exim-users
Assunto: Re: [Exim] sender_reject_recipients Query
On Sat, 9 Mar 2002, Gordon McKee wrote:

> which I have converted to a dbm file format. This method works fine but
> it doesn't seem to like wild cards in the domain name. For example if I
> put in *ahoo.com or yahoo.* any mail I send in from my yahoo account
> should get blocked but it doesn't.


Exim's facilities for "wildcard" lookups are very particular. Read the
sections on "partial lookups". You can't just put general wild cards in
a DBM file. Think about it. How could it index such things? A DBM file
is a key/value index.

1. *ahoo.com will never work. Exim's partial searching works only on
complete components.

2. yahoo.* won't work. Exim recognizes * only for the special case "ends
with". If you want more complicated patterns, you must use a regular
expression. And you certainly cannot put _that_ in a DBM file. You can
only put a regular expression inline, or in an included file.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.