Re: [exim] dnslists - netmask or wildcard

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nick Rickard
Fecha:  
A: exim-users
Asunto: Re: [exim] dnslists - netmask or wildcard
>> Does
>>
>>    dnslists =    abcdef.sbl.dq.spamhaus.net
>>    condition =    ${if match_ip ($dnslist_value) {127.0.0.0/24}}
>>
>> do what you need?
>
> Yes, thank you.
>
> Noting that it should, I believe, be curly brackets throughout the condition.
>
>

Hmm, I spoke to soon. For my use case, Spamhaus does not always return a single (IP adddress) value leading to errors such as:

connect" ACL: failed to expand ACL string "${if match_ip {$dnslist_value} {127.0.0.0/24}}": "127.0.0.3, 127.0.0.2" is not an IP address

But thank you for the pointer; it feels that with a bit of working through the logic I should be able to make it work.