Scroll to navigation

Mail::MtPolicyd::Plugin::ScoreAction(3pm) User Contributed Perl Documentation Mail::MtPolicyd::Plugin::ScoreAction(3pm)

NAME

Mail::MtPolicyd::Plugin::ScoreAction - mtpolicyd plugin for running an action based on the score

VERSION

version 2.05

DESCRIPTION

Returns a action based on the score.

PARAMETERS

If the score is higher than this value the action will be executed.
If it should match if the score if >= or <= the threshold.

Possible values: gt, lt

If set the value for threshold will be fetched from this user-config value if defined.
Specifies the name of the field the score is stored in. Could be set if you need multiple scores.
The action to be executed.

The following patterns in the string will be replaced:

  %IP%, %SCORE%, %SCORE_DETAIL%
    
Execute this plugins when the condition matched.

EXAMPLE

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>

AUTHOR

Markus Benning <ich@markusbenning.de>

COPYRIGHT AND LICENSE

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
2021-12-15 perl v5.32.1