NAME
Mail::MtPolicyd::Plugin::Condition - mtpolicyd plugin for conditions based on session values
VERSION
version 1.11
DESCRIPTION
Will return an action, score or execute futher plugins if the specified condition matched.
PARAMETERS
At least one of the following parameters should be given or your condition will never match:
- match (default: empty)
-
Simple string equal match.
- re_match (default: empty)
-
Match content of the session variable against an regex.
- lt_match (default: empty)
-
Match if numerical less than.
- gt_match (default: empty)
-
Match if numerical greater than.
Finally an action must be specified.
First the score will be applied the the action will be executed or if specified additional plugins will be executed.
- action (default: empty)
-
The action to return when the condition matched.
- score (default: empty)
-
The score to add if the condition matched.
- Plugin (default: empty)
-
Execute this plugins when the condition matched.
EXAMPLE: execute postgrey action in postfix
If the session variable "greylisting" is "on" return the postfix action "postgrey":
<Plugin trigger-greylisting>
module = "Condition"
key = "greylisting"
match = "on"
action = "postgrey"
</Plugin>
The variable may be set by a UserConfig module like SqlUserConfig.
The postgrey action in postfix may look like:
smtpd_restriction_classes = postgrey
postgrey = check_policy_service inet:127.0.0.1:11023
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