Re: [exim] Rejecting connections based on IP range.

Página Inicial
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Para: Evil Ernie
CC: exim-users
Assunto: Re: [exim] Rejecting connections based on IP range.
On Thu, 20 Jul 2006, Evil Ernie wrote:

> I'm trying to reject certain connections based upon the IP range they're in.
>
> Most of the time it works fine. But I'm still seeing email being delivered
> despite the range being listed there.


Do you have any accept clauses before the deny clause?

> Is there a more efficent method of comparing IP's to ranges or is there some
> other problem/solution?


You can use the net24- prefix on a search type keyword (e.g. net24-dbm is
mentioned in the spec) if all your ranges are the same size. It gets
painful if they have variables sizes.

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}}