Mail::MtPolicyd::Plugin::Condition - mtpolicyd plugin for conditions based on session values
version 1.11
Will return an action, score or execute futher plugins if the specified condition matched.
The name of the variable within the session to check.
At least one of the following parameters should be given or your condition will never match:
Simple string equal match.
Match content of the session variable against an regex.
Match if numerical less than.
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.
The action to return when the condition matched.
The score to add if the condition matched.
Execute this plugins when the condition matched.
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
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
To install Mail::MtPolicyd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::MtPolicyd
CPAN shell
perl -MCPAN -e shell install Mail::MtPolicyd
For more information on module installation, please visit the detailed CPAN module installation guide.