Συντάκτης: Peter Bowyer Ημερομηνία: Προς: exim-users Αντικείμενο: Re: [exim] Reject connects from hostnames containing special words
On Thu, 16 Sep 2004 11:14:18 +0200, c.kuesters@???
<c.kuesters@???> wrote: > Hi!
>
> 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.
>
> I tried
>
> deny host = \N^\adsl$\N
>
> but that doesn't work. Does anyone knows how to get this working ?
> I can't believe exim won't allow this, even it won't make much
> sense to some out there, but we need it. :)
deny condition = ${if match {$sender_host_name}{<your regex>}{1}{0}}
but note that there are restrictions on $sender_host_name - it only
gets set when a full reverse-then-forward DNS lookup succeeds and
matches. You might need to do some trickery with dnsdb if you need
something other than this behaviour.