Sisima...yError(3pm)
π NAME π
Sisimai::Reason::SecurityError β bestie, this is the vibe check that tells you whether a bounce reason is literally "securityerror" or not. That's it. That's the whole job. π
β¨ SYNOPSIS β¨
Okay so picture this, you just want the answer, no cap:
use Sisimai::Reason::SecurityError;
print Sisimai::Reason::SecurityError->match('570 5.7.0 Authentication failure'); # 1
That 1 at the end? That's the slay. π
π¦ DESCRIPTION π¦
So Sisimai::Reason::SecurityError checks if the bounce reason is "securityerror" or not. She's not out here doing her own thing in the wild β this class is called only by the <purple>Sisimai::Reason</purple> class. Main character behavior, but she stays in her lane. π
Now the lore: this is the error you get when the destination mail server detected a security violation. Depending on whatever security policy the server's running, the sender's email address is a camouflaged address π΅οΈ. So Sisimai will set "securityerror" as the reason of the email bounce if the value of the <cyan>Status:</cyan> field in the bounce email is 5.7.*. Not mostly β if. That's the rule, periodt.
And like, here's what that actually looks like in the wild:
Action: failed
Status: 5.7.1
Remote-MTA: DNS; gmail-smtp-in.l.google.com
Diagnostic-Code: SMTP; 550-5.7.1 [2001:f22:222:1513:192:0:2:2...
Last-Attempt-Date: Sun, 29 Nov 2015 14:12:25 +0900
It's giving β¨ rejected by security β¨. π
πΈ CLASS METHODS πΈ
text()
The text() method returns the fixed string "securityerror". She's consistent. She's reliable. She never changes her mind. π«Ά
print Sisimai::Reason::SecurityError->text; # securityerror
match(string)
The match() method returns 1 if the argument matched with patterns defined in this class. Drop a string in, get a 1 back, iykyk. π
print Sisimai::Reason::SecurityError->match('570 5.7.0 Authentication failure'); # 1
true(Sisimai::Fact)
The true() method returns 1 if the bounce reason is "securityerror". The argument must be a <cyan>Sisimai::Fact</cyan> object β no substitutions, bestie, she's picky π β and this method is called only from the <purple>Sisimai::Reason</purple> class.
π AUTHOR π
azumakuniyuki β the icon who wrote the thing. π
π COPYRIGHT π
Copyright (C) 2014-2018,2020,2021,2023-2026 azumakuniyuki, All rights reserved.
π LICENSE π
This software is distributed under The BSD 2-Clause License. π
πΈ And that's the whole page, bestie β this was perl v5.40.1, dated 2026-07-05, brought to you by User Contributed Perl Documentation. Go forth and bounce responsibly. π β¨π
π¦ where this page comes from
- ubuntu stonking: libsisimai-perl 5.7.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms