Re: [Exim] Deny hosts - acl_smtp_connect

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tim Jackson
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Deny hosts - acl_smtp_connect
Hi Mumtaj, on Mon, 16 Feb 2004 16:44:46 +0000 you wrote:

> In exim 4, I am trying to use acl_smtp_connect to prevent spammers
> getting connected to my mail server.
> I also tried
>
> check_4_denyhosts:
>     deny hosts =  lsearch;/etc/denyhosts


The default at the end of ACLs is to deny. So the above rule reads like
this:

check_4_denyhosts:
deny hosts = lsearch;/etc/denyhosts
deny

What you need is this:

check_4_denyhosts:
deny hosts = lsearch;/etc/denyhosts
accept

so that anything not in /etc/denyhosts is accepted.

Hope that helps,

Tim