Mail::MtPolicyd::Plugin::PostfixMap(3pm)

Mail::MtPolicyd::Plugin::PostfixMap3pm

Mtpolicyd plugin for accessing a postfix access map

Usage

  <Plugin whitelist>
    module="PostfixMap"
    db_file="/etc/postfix/whitelist.db"
    match_action=dunno
  </Plugin>
  <Plugin blacklist>
    moduel="PostfixMap"
    db_file="/etc/postfix/blacklist.db"
    match_action="reject you are blacklisted!"
  </Plugin>

Version

version 2.05

Overview

Plugin checks the client_address against a postfix hash table.

It will only check if the IP address matches the list. 'OK' or a numerical value will be interpreted as a 'true' value. All other actions or values will be treaded as 'false'.

Example table

/etc/postfix/whitelist:

  123.123.123.123 OK
  123.123.122 OK
  123.12 OK
  fe80::250:56ff:fe85:56f5 OK
  fe80::250:56ff:fe83 OK

generate whitelist.db:

  $ postmap whitelist

Parameters

The module takes the following parameters:

(uc_)enabled (default: "on")

Could be set to 'off' to deactivate check. Could be used to activate/deactivate check per user.

By default the plugin will do nothing. One of the following actions should be specified:

match_action (default: empty)

If given this action will be returned to the MTA if the SQL query matched.

not_match_action (default: empty)

If given this action will be returned to the MTA if the SQL query DID NOT matched.

score (default: empty)

If given this score will be applied to the session.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Markus Benning <[email protected]>

From mtpolicyd 2.05-1.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.