DOKK / manpages / debian 10 / mtpolicyd / Mail::MtPolicyd::Plugin::RBLAction.3pm.en
Mail::MtPolicyd::Plugin::RBLAction(3pm) User Contributed Perl Documentation Mail::MtPolicyd::Plugin::RBLAction(3pm)

Mail::MtPolicyd::Plugin::RBLAction - mtpolicyd plugin for checking the client-address against an RBL

version 2.03

This plugin can be used when a more complex evaluation of an RBL result is needed that just match/not-match.

With this plugin you can take the same actions as with the RBL plugin, but it can match the result with a regular expression. This allows one to take action based on the category in combined blacklists.

Use the query result of this RBL check.
(uc_)enabled (default: on)
Enable/disable this check.
(uc_)mode (default: reject)
Reject the message. (reject)
Stop processing an accept this message. (dunno)
Only apply the score if one is given.
An regular expression to check the RBL result.
A pattern for the reject message if mode is set to 'reject'.
Apply this score if the check matched.

  <Plugin spamhaus-rbl>
    module = "RBL"
    mode = "passive"
    domain="zen.spamhaus.org"
  </Plugin>
  <Plugin spamhaus-rbl-sbl>
    module = "RBLAction"
    result_from = "spamhaus-rbl"
    mode = "passive"
    re_match = "^127\.0\.0\.[23]$"
    score = 5
  </Plugin>
  <Plugin spamhaus-rbl-xbl>
    module = "RBLAction"
    result_from = "spamhaus-rbl"
    mode = "passive"
    re_match = "^127\.0\.0\.[4-7]$"
    score = 5
  </Plugin>
  <Plugin spamhaus-rbl-pbl>
    module = "RBLAction"
    result_from = "spamhaus-rbl"
    mode = "passive"
    re_match = "^127\.0\.0\.1[01]$"
    score = 3
  </Plugin>

Markus Benning <ich@markusbenning.de>

This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991
2018-06-20 perl v5.26.2