Mail::Milter::Module::HeloRegex - milter to accept/reject connections with certain HELO values
use Mail::Milter::Module::HeloRegex; my $milter = new Mail::Milter::Module::HeloRegex('^foo\.com$'); my $milter2 = &HeloRegex('^foo\.com$'); # convenience
This milter module rejects entire SMTP connections if the connecting client issues a HELO command matching user-supplied regular expressions. Note that only the initial word of the HELO string is tested; any EHLO parameters are not checked by the regexes.
new(REGEX[, ...])
Accepts one or more regular expressions, as strings or qr// precompiled regexes. They are tested in sequence, and the first match terminates checking.
set_message(MESSAGE)
Sets the message used when rejecting messages. This string may contain the substring %H, which will be replaced by the matching HELO parameter.
%H
This method returns a reference to the object itself, allowing this method call to be chained.
Todd Vierling, <tv@duh.org> <tv@pobox.com>
Mail::Milter::Object
1 POD Error
The following errors were encountered while parsing the POD:
You can't have =items (as at line 81) unless the first thing after the =over is an =item
To install Mail::Milter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Milter
CPAN shell
perl -MCPAN -e shell install Mail::Milter
For more information on module installation, please visit the detailed CPAN module installation guide.