Arnie T via Postfix-users:
> main.cf:
>       var_SHDQS=xxxxxxxxxxx
>       postscreen_dnsbl_reply_map = 
> texthash:/etc/postfix/postscreen_dnsbl_reply_map
>
>       cat /etc/postfix/postscreen_dnsbl_reply_map
>               ${var_SHDQS}.zen.dq.spamhaus.net=127.0.0.[2..11]  554 
> $rbl_class $rbl_what blocked using ZEN - see 
> https://www.spamhaus.org/query/ip/$client_address for details

Caution: postscreen_dnsbl_reply_map is searched without the =address-filter.
See my other mssage in this thread.

Caution: ${foo} expansion happens only in main.cf or master.cf, and in features
where this is explicitly promised such as rbl_reply_maps lookup results.

If you must have ${foo} expansion in table lookup keys, you  could
use an inline:{...} table. But then you must quote the $ on the
right-hand side:

main.cf:
    var_SHDQS = xxxxxxxxxxx
    postscreen_dnsbl_reply_map = inline:{
        { ${var_SHDQS}.zen.dq.spamhaus.net      554 $$rbl_class $$rbl_what 
blocked u sing ZEN - see https://www.spamhaus.org/query/ip/$$client_address for 
details }
        { ... } }

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to