Version 1.21 has been released.
Get the sources from: https://mtpolicyd.org/download.html or from CPAN.
What has changed:
New feature vhost_by_policy_context
New option vhost_by_policy_context will if activated tell mtpolicyd to select the VirtualHost based on the policy_context. For example in postfix main.cf use advanced syntax:
check_policy_service { inet:localhost:12345,
policy_context=reputation }
...
check_policy_service { inet:localhost:12345,
policy_context=accounting }
In mtpolicyd.conf:
port="127.0.0.1:12345"# only 1 port
vhost_by_policy_context=1
<VirtualHost 12345>
name=reputation
# ...plugins ...
</VirtualHost>
<VirtualHost 12346>
name=accounting
# ...plugins ...
</VirtualHost>
The policy_context feature will be available in postfix 3.1 and later.
New plugin SMTPVerify
The SMTPVerify plugin implements address verification at a remote SMTP server with MAIL FROM and RCPT TO commands. It support the following checks: