NAME

Haineko::Default - Default configuration instead of etc/haineko.cf

DESCRIPTION

When etc/haineko.cf does not exist or failed to load at Haineko::HTTPD, This class provides default configuration to run haineko server.

SYNOPSIS

use Haineko::Default;
my $v = undef;
$v = Haineko::Default->conf;            # => isa 'HASH' # Default configuration
$v = Haineko::Default->table('mailer'); # => isa 'HASH' # Mailer tables

CLASS METHODS

conf

conf() returns a HASH reference which include default configuration for running Haineko server.

my $e = Haineko::Default->conf;
warn Dumper $e;
$VAR1 = {
    'smtpd' => { 
        'auth' => 0,
        'hostname' => '',
        'max_message_size' => 4194304,
        'max_rcpts_per_message' => 4,
        'max_workers' => 4,
        'milter' => {
            'libs' => [],
        },
        'syslog' => {
            'disabled' => 1,
            'facility' => 'local2',
        },
    },
};

table( [Name] )

table() return a HASH reference which define external table file names. The argument is 'mailer' or 'access'.

my $e = Haineko::Default->table('mailer');
warn Dumper $e;
$VAR1 = {
    'mail' => 'sendermt',
    'auth' => 'authinfo',
    'rcpt' => 'mailertable',
};

REPOSITORY

https://github.com/azumakuniyuki/Haineko

AUTHOR

azumakuniyuki <perl.org [at] azumakuniyuki.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.