Re: [exim] block host name

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Magnus Holmgren
Data:  
Para: exim-users
Asunto: 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