Haineko::Default - Default configuration instead of etc/haineko.cf
When etc/haineko.cf does not exist or failed to load at Haineko::HTTPD, This class provides default configuration to run haineko server.
use Haineko::Default; my $v = undef; $v = Haineko::Default->conf; # => isa 'HASH' # Default configuration $v = Haineko::Default->table('mailer'); # => isa 'HASH' # Mailer tables
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() 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', };
https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.