Mail::...inDotMX(3pm)

πŸ“¦
version 0.07 Β· 2 versions
, in debian bookworm, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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