Re: [exim] block host name

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] block host name
lördag 18 mars 2006 08:03 skrev Alexey Danilevsky:
> Of course, you can block hostnames if they can be resolved via DNS. You can
> use acls like this:
>
> acl_check_coonect:
>    deny message = This hostname is blocked
>              condition = ${if eq{$sender_host_name}{some.hostname.com}
> {yes} {no}}

>

For matters of simplicity, the "{yes} {no}" part is redundant. ${if ...} by
default returns "yes" if the condition is true, and "" (which is evaluated as
false) if it is false.

--
Magnus Holmgren