On Mon, 8 Jun 2020 at 16:11, PGNet Dev <pgnet....@gmail.com> wrote: > 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 ...
This was discussed before: https://www.mail-archive.com/postfix-users@postfix.org/msg85706.html