Mail::Milter::Module::MailDomainDotMX - milter to reject mail whose sender domain publishes a null MX record
use Mail::Milter::Module::MailDomainDotMX; my $milter = new Mail::Milter::Module::MailDomainDotMX; my $milter2 = &MailDomainDotMX; # convenience $milter2->set_message('Mail from %M domain invalid (has dot-MX record)');
This milter module rejects any mail from a sender's domain (in the MAIL FROM part of the SMTP transaction, not in the From: header) if that domain publishes a "null", or "dot" MX record. Such a record looks like the following in DNS:
example.com. IN MX 0 .
This lookup requires the Net::DNS module to be installed in order to fetch the MX record.
An extra check as to whether the MX is valid is not (yet) done here. It is currently assumed that the MTA does rudimentary checking for the presence of a valid MX or A record on the sending domain.
new()
Creates a MailDomainDotMX object. There are no arguments to configure this module, as it is a fixed check.
ignore_tempfail(FLAG)
If FLAG is 0 (the default), a DNS lookup which fails the underlying DNS query will cause the milter to return a temporary failure result (SMFIS_TEMPFAIL).
If FLAG is 1, a temporary DNS failure will be treated as if the lookup resulted in an empty record set (SMFIS_CONTINUE).
This method returns a reference to the object itself, allowing this method call to be chained.
set_message(MESSAGE)
Sets the message used when rejecting messages. This string may contain the substring %M, which will be replaced by the matching e-mail address.
%M
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 95) 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.