Mail::Milter::Authentication::Handler
version 2.20180509
Handle the milter requests and pass off to individual handlers
my $object = Mail::Milter::Authentication::Handler->new( $thischild );
Takes the argument of the current Mail::Milter::Authentication object and creates a new handler object.
Return the version of this handler
Retrieve json data from external file
Register a metric type
Increment a metrics counter by $count (defaults to 1 if undef)
Send metrics to the parent
Return details of the metrics this module exports.
Return current time in microseconds
Top level handler for handler setup.
Top level handler for the connect event.
Top level handler for the HELO event.
Top level handler for the MAIL FROM event.
Top level handler for the RCPT TO event.
Top level handler for a Mail Header event.
Top level handler for the end of headers event.
Top level handler for a Body Chunk event.
Top level handler for the End of Message event.
Apply a policy to the generated authentication results
Top level handler for the Abort event.
Top level handler for the addheader event.
Called after the Authentication-Results header has been added, but before any other headers.
Top level handler for the Close event.
Set the status of the current child as visible by ps.
Return the configuration hashref.
Return the configuration for the current handler.
Return the current handler type.
Set the return code to be passed back to the MTA.
Get the current return code.
Get the reject mail reason (or undef)
Clear the reject mail reason
Return the current top Handler object.
Check if the named handler is loaded.
Return the named handler object.
Return the list of handlers which have callbacks for the given event in the order they must be called in.
Register an object maker for type 'name'
Return the named object from the object store.
Object 'resolver' will be created if it does not already exist.
Object 'spf_server' will be created by the SPF handler if it does not already exist.
Handlers may register makers for other types as required.
Store the given object in the object store with the given name.
If $destroy then the object will be destroyed when the connection to the child closes
Remove the reference to the named object from the object store.
Remove the references to all objects currently stored in the object store.
Certain objects (resolver and spf_server) are not destroyed for performance reasons.
Exit this child once it has completed, do not process further requests with this child.
Reject mail with the given reason
Clear the symbol store.
Clear the symbol store but do not remove the Connect symbols.
Store the key value pair in the symbol store with the given code (event stage).
Return a value from the symbol store, searches all codes for the given key.
Returns a TEMP FAIL to the calling MTA if the configuration is set to do so.
Config can be set for all, authenticated, local, and trusted connections.
Is the current connection from a local ip address?
Requires the LocalIP Handler to be loaded.
Is the current connection from a trusted ip address?
Requires the TrustedIP Handler to be loaded.
Is the current connection authenticated?
Requires the Auth Handler to be loaded.
Return the ip address of the current connection.
Format text as ctext for use in headers.
Format text as ctext with no spaces for use in headers.
Format text as a comment for use in headers.
Format text as a key value pair for use in authentication header.
Extract the domain from an email address.
Extract the domains from an email address as an arrayref.
Extract an email address from a string.
Extract all email address from a string as an arrayref.
Return the effective hostname of the MTA.
Send output to debug and/or Mail Log.
priority is a standard Syslog priority.
Log an error.
Write out logs to disc.
Logs are not written immediately, they are written at the end of a connection so we can include a queue id. This is not available at the start of the process.
Returns 1 is this handler has a header_sort method capable or sorting entries for $header Returns 0 otherwise
Sorting function for sorting the Authentication-Results headers Calls out to __HANDLER__->header_sort() to sort headers of a particular type if available, otherwise sorts alphabetically.
Send the header changes to the MTA.
Add a trace header to the email.
Add a section to the authentication header for this email.
Add a section to the authentication header for this email, and to any subsequent emails for this connection.
Add a normal header to the email.
Return Continue code.
Return TempFail code.
Return Reject code.
Return Discard code.
Return Accept code.
Write a packet to the MTA (calls Protocol object)
Write an Add Header packet to the MTA (calls Protocol object)
Write an Insert Header packet to the MTA (calls Protocol object)
Write a Change Header packet to the MTA (calls Protocol object)
tbc
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.