Re: [exim] Drop all traffic unless authenticated users OR sp…

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: exim users
Subject: Re: [exim] Drop all traffic unless authenticated users OR specific IP ?
On 25/01/2008, Bleurgh <chris.drayton@???> wrote:

> I posted this question on the exim users list but only received one reply
> which wasnt helpful. I hope someone can help me!


I thought I answered this only yesterday, but it will be just as quick
to answer it again...

> All I want to do is drop all smtp connections unless it is from an
> authenticated user or it comes from a host I specify in a list.
>
> Someone provided me with this acl....
>
> drop !condition = ${if def:authenticated_id{yes}{no}}
> !hostlist = myip1 : myip2 : myip3


Think of it the other way around and the logic gets easier....

accept authenticated=*

accept hosts = myip1 : myip2 : myip3

drop

(You might consider 'deny' instead of 'drop', this is less likely to
cause unwanted behaviour from the other party).

Peter



--
Peter Bowyer
Email: peter@???