Mail::Milter::Authentication::Client
version 2.20200107
Connect to the Authentication Milter and pass it email, returning the result.
Client to the Authentication Milter
Instantiate a new Client object
my $client = Mail::Milter::Authentication::Client->new({ 'mailer_name' => 'test.mta.yoga.fastmail.com', 'connect_ip' => '66.111.4.148', 'connect_name' => 'test.fastmail.com', 'connect_port' => '54321', 'connect_type' => 'tcp4', 'helo_host' => 'test.helo.fastmail.com', 'mail_from' => 'test@marc.fastmail.com', 'rcpt_to' => 'marc@yoga', 'mail_data' => $email_content, 'mail_file' => '/path/to/email.txt', });
Private method, do not call this directly
Send the email to the milter and process the result.
Return the result of the milter run
The name (fqdn) of the MTA
The IP address of the host connecting to the mailer.
The name of the host connecting to the mailer.
The port of the connection to the mailer.
The type of connection to the mailer (eg tcp4).
The string passed in the HELO stage of the SMTP transaction.
The string passed in the MAIL FROM stage of the SMTP transaction.
The string passed in the RCPT TO stage of the SMTP transaction.
The EMail body as a string.
The EMail body can also be passed as a filename.
This project includes a modified copy of Net::Milter which is imported into the Mail::Milter::Authentication::Net::Milter namespace.
The included module has been modified to support all of the features required by Authentication Milter.
If these required features are ever merged back into Net::Milter then we may just use it instead, however at this point the modified version does the job.
Marc Bradshaw <marc@marcbradshaw.net>
This software is copyright (c) 2020 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.