Re: [Exim] HostLists and ACLs

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nico Erfurth
Datum:  
To: William Craven
CC: exim-users
Betreff: Re: [Exim] HostLists and ACLs
William Craven wrote:
> Hello;
>
> I would like to configure an ACL rule for the SMTP RCPT command such
> that it looks at a 2 column file that contains the list of blocked hosts
> and a description for the block which will then be used for the SMTP
> return message. For example
>
> 216.42.116.0/24: Blocked - Open Relay
> h24-87-143-55.vs.shawcable.net: Blocked - rogue user
> *.optprofessionals.com:    Blocked - SPAM generator

>
> At the moment I am not sure how this can be implemented. Any thoughts
> from the list.


I'm not sure, but try

deny message = $value
      hosts = lsearch;/etc/exim/blocked/hosts


if this does not work, use

deny message = ${lookup {$sender_hostname} partial-lsearch \
        {/etc/exim/blocked/hosts}{$value}}
      hosts = partial-lsearch;/etc/exim/blocked/hosts



ciao