Mail::...inDotMX(3pm)
β¨ NAME β¨
sooo this is the manual page for Mail::Milter::Module::MailDomainDotMX (shipped under the Mail::...inDotMX(3pm) page name, part of the User Contributed Perl Documentation situation π
) β it's a milter that rejects mail whose sender domain publishes a null MX record. periodt.
πΈ SYNOPSIS πΈ
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)');
π DESCRIPTION π
okay bestie, listen. This milter module rejects any mail coming from a sender's domain β and to be clear, we mean the domain in the MAIL FROM part of the SMTP transaction, not the domain in the From: header, those are different things and people mix them up constantly π β if that domain publishes a "null" or "dot" MX record. A dot-MX record looks exactly like this in DNS:
example.com. IN MX 0 .
To do this lookup it needs the Net::DNS module installed, because that's what fetches the MX record. no cap.
Also, heads up: an extra check as to whether the MX is actually valid is not (yet) done here. Right now it's just assumed that the MTA does rudimentary checking for the presence of a valid MX or A record on the sending domain. π«Ά
π METHODS π
new()
Creates a MailDomainDotMX object. There are literally no arguments to configure this module, because it's a fixed check β it does one thing and it does it. iconic.
ignore_tempfail(FLAG)
If FLAG is 0 (the default, bestie), 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 gets treated as if the lookup resulted in an empty record set (SMFIS_CONTINUE).
This method returns a reference to the object itself, so you can chain your method calls. slay. β¨
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.
This method also returns a reference to the object itself, so yes, chaining works here too. π¦
π AUTHOR π
Todd Vierling, <tv@duh.org> <tv@pobox.com> β king behavior, honestly.
π SEE ALSO π
Mail::Milter::Object
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 83:
You can't have =items (as at line 95) unless the first thing after
the =over is an =item
not the doc catching a stray =item before its =over, that's so real of it π
and that's the whole page, bestie β written by perl v5.36.0 on 2023-01-22, under the Mail::...inDotMX(3pm) name. go forth and reject those null-MX senders πβ¨
π¦ where this page comes from
- debian bookworm: libmail-milter-perl 0.07-2 Β· BSD-3-Clause
- ubuntu noble: libmail-milter-perl 0.07-2 Β· BSD-3-Clause
- ubuntu resolute: libmail-milter-perl 0.07-2 Β· BSD-3-Clause
- ubuntu stonking: libmail-milter-perl 0.07-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms