On 6/8/20 7:12 AM, Dominic Raferd wrote: > main.cf <http://main.cf>: > <snip> > rbl_reply_maps = pcre:/etc/postfix/rbl_reply_maps.pcre > postscreen_dnsbl_reply_map = pcre:/etc/postfix/postscreen_dnsbl_reply_map.pcre > <snip> > > # cat /etc/postfix/rbl_reply_maps.pcre > /[a-z0-9]*\.([a-z]*\.dq\.spamhaus\.net)/ $$rbl_code Service unavailable; > $$rbl_class [$$rbl_what] blocked using ${1}$${rbl_reason?; $$rbl_reason} > # cat /etc/postfix/postscreen_dnsbl_reply_map.pcre > /[a-z0-9]*\.([a-z]*\.dq\.spamhaus\.net)/ ${1}
ah, thx! that seems to work nicely -- for the SMTP reply; doesn't affect the dnsblog output (yet; poking around now) tho, reading some other examples I've now found in posts -- why the double "$$" here? reading http://www.postfix.org/pcre_table.5.html I do see the TEXT SUBSTITUTION Substitution of substrings (text that matches patterns inside "()")from the matched expression into the result string is requested with$1, $2, etc.; specify $$ to produce a $ character as output. , just not clear if/why it's needed here?