Mail::Milter::Authentication - A Perl Mail Authentication Milter
version 2.20191206
Subclass of Net::Server::PreFork for bringing up the main server process for authentication_milter.
This class handles the server aspects of Authentication Milter.
For individual Protocol handling please see the Mail::Milter::Authentication::Protocol::* classes
For request handling please see Mail::Milter::Authentication::Handler
Please see Net::Server docs for more detail of the server code.
Please see the output of 'authentication_milter --help' for usage help.
A Perl Implementation of email authentication standards rolled up into a single easy to use milter.
Preload (pre-fork) lazy loading modules.
Takes a Package Name and a Base module, and loads all modules which match.
Hook which runs to write logs
Hook which runs in the master periodically.
Hook which runs in the master before looping.
Hook which runs in parent before it forks children.
Hook which runs after forking, sets up per process items.
Hook which runs when the child is about to finish.
Hook which runs before the server closes.
Get the protocol of the connecting client.
Get the port of the connecting client.
Get the host of the connecting client.
Get the path of the connecting client.
Get the details of the connecting client.
Hook which runs for each request, passes control to metrics handler or process_main as appropriate.
Method which runs for each request, sets up per request items and processes the request.
Log a fatal error and die in child
Log a fatal error and die in child and parent
Setup the Handler objects.
Load the $name Handler module
Setup the $name Handler object
Remove the $name Handler
Register the specified callback
Sort the callbacks into the order in which they must be called
Sort the callbacks for the $callback callback into the right order
Remove references to all objects
Return the queue ID (for logging) if possible.
Turn on extra debugging mode, will cause child to exit on close.
Cause $line to be written to log if extra debugging mode is enabled.
Log to the error log.
Log to the info log.
Log to the debug log.
Return an array ref of installed handler modules.
Given a pid file, check for a valid process ID and return if valid.
Search the process table for an authentication_milter master process
Run a daemon command. Command can be one of start/restart/stop/status.
Start the server. This method does not return.
$hashref = { 'pid_file' => 'The pid file to use', # 'daemon' => 1/0, # Daemonize process? }
Marc Bradshaw <marc@marcbradshaw.net>
This software is copyright (c) 2018 by Marc Bradshaw.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Mail::Milter::Authentication, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Milter::Authentication
CPAN shell
perl -MCPAN -e shell install Mail::Milter::Authentication
For more information on module installation, please visit the detailed CPAN module installation guide.