Re: [exim] Reject connects from hostnames containing special…

Top Page
Delete this message
Reply to this message
Author: Nigel Metheringham
Date:  
To: exim-users
Subject: Re: [exim] Reject connects from hostnames containing special words
On Thu, 2004-09-16 at 11:14 +0200, C.Kuesters@???
wrote:
> Is it possible to reject a connection if the senders hostname
> contains a special word/part in it? I would like to reject
> a connection if the looked up hostname contains a "adsl" part
> in it.


> deny host = \N^\adsl$\N


Thats using a hostlist and putting a regexp in it, which is an odd mix.

You would do better to use a condition statement and there compare
$sender_host_name using a regexp match:-
deny condition = ${if match {$sender_host_name}{adsl} {1}{0}}

The regexp has been simplified to a minimum. I guess you might want to
case independent this.

    Nigel.


-- 
[ Nigel Metheringham           Nigel.Metheringham@??? ]
[ - Comments in this message are my own and not ITO opinion/policy - ]