mtpolicyd 1.21 has been released

Posted by Markus Benning on September 22, 2015

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:

    • Check if the remote SMTP server would accept mail for a address. Apply actions or scores if a permanent or temporary error is returned
    • If the remote server support the SIZE extension the SIZE will be passed to the remote SMTP server. This way it could be checked if the message exceeds the message size limit or the quota limit of the recipient.
    • Check if the remote SMTP server announces support for STARTTLS
    • Check if there is a TLSA record for the remote SMTP server
    • Check if there is OPENPGPKEY for the recipient