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

Mail::MtPolicyd::Plugin::ScoreAction3pm

Mtpolicyd plugin for running an action based on the score

Version

version 2.05

Overview

Returns a action based on the score.

Parameters

threshold (required)

If the score is higher than this value the action will be executed.

match (default: gt)

If it should match if the score if >= or <= the threshold.

Possible values: gt, lt

uc_threshold (default: undef)

If set the value for threshold will be fetched from this user-config value if defined.

score_field (default: score)

Specifies the name of the field the score is stored in. Could be set if you need multiple scores.

action (default: empty)

The action to be executed.

The following patterns in the string will be replaced:

  %IP%, %SCORE%, %SCORE_DETAIL%
Plugin (default: empty)

Execute this plugins when the condition matched.

Examples

Reject everything with a score >= 15. and do greylisting for the remaining request with a score >=5.

  <Plugin ScoreReject>
    module = "ScoreAction"
    threshold = 15
    action = "reject sender ip %IP% is blocked (score=%SCORE%%SCORE_DETAIL%)"
  </Plugin>
  <Plugin ScoreGreylist>
    module = "ScoreAction"
    threshold = 5
    <Plugin greylist>
      module = "Greylist"
      score = -5
      mode = "passive"
    </Plugin>
  </Plugin>

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.