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 (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