NAME
Mail::Decency::LogParser
SYNOPSIS
use Mail::Decency::LogParser;
my $syslog_parser = Mail::Decency::LogParser->new( {
config => '/etc/decency/log-parser.yml'
} );
$syslog_parser->run;
DESCRIPTION
Postfix:DecencyPolicy is a bunch of policy servers which c
Base class for all decency policy handlers.
CONFIG
Provide either a hashref or a YAML file.
Example:
---
syslog:
file: /var/log/mail.log
# or socket
# socket: /var/log/mail.socket
# setup the database
database:
# what database to use. So far only 'dbi' supported,
# which let you use any DBD::* database via DBIx::Simple
type: dbd
# arguments for DBD::connect method
args:
- 'dbi:SQLite:dbname=/tmp/decency.db'
# setup the cache
cache:
# you can use any cache from Cache::*
# use NONE to deactivate cache
class: File
# all attributes besides "class" will be handed to
# the Cache::<class>->new constructor
cache_root: /tmp/decency-cache
CLASS ATTRIBUTES
See Mail::Decency::Policy::Core
METHODS
init
Loads policy modules
init_syslog_parser
start
Starts all POE servers without calling the POE::Kernel->run
run
Start and run the server via POE::Kernel->run
handle
AUTHOR
Ulrich Kautz <uk@fortrabbit.de>
COPYRIGHT
Copyright (c) 2010 the "AUTHOR" as listed above
LICENCSE
This library is free software and may be distributed under the same terms as perl itself.