Log::Saftpresse::Plugin::MtPolicyd - plugin to parse mtpolicyd logs
version 1.2
This plugin parses mtpolicyd log files
<Plugin mtpolicyd> module = "MtPolicyd" </Plugin>
This plugin expects a log line with
'program' => 'mtpolicyd'
and an message like
'message' => 'reputation: instance=25d8.55f1aea2.3adb.0, type=smtpd_access_policy, t=2ms, result=dunno'
or with mtpolicyd > 0.20:
'message' => 'reputation: instance=25d8.55f1aea2.3adb.0, type=smtpd_access_policy, t=2ms, plugin=whitelist, result=dunno'
It will output the following fields:
vhost instance elapsed action reason plugin (mtpolicyd version >= 0.20)
The plugin will create the following counters:
<host>.total <host>.time <host>.vhost.<vhost>.count <host>.vhost.<vhost>.time <host>.vhost.<vhost>.<action> <host>.plugin.<plugin>.count <host>.plugin.<plugin>.time <host>.plugin.<plugin>.<action>
Markus Benning <ich@markusbenning.de>
This software is Copyright (c) 1998 by James S. Seymour, 2015 by Markus Benning.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
To install Log::Saftpresse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Saftpresse
CPAN shell
perl -MCPAN -e shell install Log::Saftpresse
For more information on module installation, please visit the detailed CPAN module installation guide.