How about modify iRedAPD plugin to make it work as you expect:
https://bitbucket.org/zhb/iredapd/src/d … ismatch.py
camel1cz wrote:
What's the meaning of '%s' and '%d'
Reference: http://www.postfix.org/pgsql_table.5.html