Re: [exim] block host name

Góra strony
Delete this message
Reply to this message
Autor: Magnus Holmgren
Data:  
Dla: exim-users
Temat: 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