Mail::...loRegex(3pm)
β¨ NAME β¨
This is the page for Mail::...loRegex(3pm) (the header trims it, but bestie, you know her π
), and her whole government name is Mail::Milter::Module::HeloRegex β a milter that accepts or rejects connections based on certain HELO values. π
πΈ SYNOPSIS πΈ
use Mail::Milter::Module::HeloRegex;
my $milter = new Mail::Milter::Module::HeloRegex('^foo\.com$');
my $milter2 = &HeloRegex('^foo\.com$'); # convenience
π¦ DESCRIPTION π¦
Okay so here's the vibe: this milter module will reject entire SMTP connections if the connecting client sends a HELO command that matches any of the regular expressions you hand it. Not a soft little nudge β the whole connection, gone. π
But wait, lowkey important: only the initial word of the HELO string gets tested. Any EHLO parameters? Not checked by the regexes. Periodt. So don't come for her about the params, she literally does not look at them. π
π METHODS π
new(REGEX[, ...])
Takes one or more regular expressions β you can pass them as plain strings or as qr// precompiled regexes, whatever fits your main character energy β¨. They get tested in sequence, and the first match terminates checking β she's not out here doing extra credit, bestie. First hit and she's done. π
set_message(MESSAGE)
Sets the message that gets used when rejecting messages. This string can contain the substring %H, which will be replaced by the matching HELO parameter. Cute, right? π
And plot twist β this method returns a reference to the object itself, which means you can chain the method call. So smooth. π«Ά
π AUTHOR π
Todd Vierling, <tv@duh.org> <tv@pobox.com>
(an icon, fr fr π)
β SEE ALSO β
Mail::Milter::Object
π POD ERRORS π
Hey! Not me catching the doc having some coding errors π β here's what went down, explained below:
Around line 69:
You can't have =items (as at line 81) unless the first thing after
the =over is an =item
ngl, that's a real one. The=overneeds an=itemright after it. She's a little messy but we love her anyway. π
Okay bestie, that's the whole page!! Written by perl v5.36.0 on 2023-01-22 β mwah, kiss the doc, go protect your milter ππ§π
π¦ 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