Re: [exim] block host name

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Magnus Holmgren
Date:  
À: exim-users
Sujet: 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