Mail::...n::RBL(3pm)

✨ NAME ✨

Mail::MtPolicyd::Plugin::RBL β€” it's an mtpolicyd plugin that checks the client-address against an RBL. bestie, it literally does a vibe check on whoever's knocking at your door πŸ’…

🌸 VERSION 🌸

version 2.05 β€” yeah she's got a version, she's official πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real talk: this plugin goes and queries a DNS black/white list. that's the whole thing. it asks the DNS "hey, is this IP on your list or nah?" and then acts accordingly. lowkey iconic behavior πŸŽ€

πŸ’– PARAMETERS πŸ’–

  • domain (required) β€” the domain of the blacklist you wanna query. and yes, it's required, like it's not optional, you cannot skip it, it's giving mandatory πŸ’€
  • (uc_)enabled β€” default: on. turns this check on or off. that's it, that's the flag 🫢
  • (uc_)mode β€” default: reject. here's where it gets spicy, three flavors:
    • reject β€” reject the message. (reject) yeah. bye. 🚫
    • accept β€” stop processing an accept this message. (dunno) β€” heads up, the original says "dunno" right there, i'm not making that up, it's a whole vibe 😭
    • passive β€” only apply the score if one is given. no score? no drama, it just chills 🌈
  • reject_message β€” default: delivery from %IP% rejected %INFO%. this is the pattern for the reject message, and it only matters if mode is set to 'reject'. note the %IP% and %INFO% placeholders, they're doing the work, don't touch them πŸ™ˆ
  • score β€” default: empty. apply this score if the check matched. no score set means... empty, bestie, empty ✨

πŸ”₯ EXAMPLE DNS BLACKLIST πŸ”₯

here's how you'd hook it up to sorbs.net, passive mode, score of 5, chef's kiss:

<Plugin sorbs.net>
  module = "RBL"
  mode = "passive"
  domain="dnsbl.sorbs.net"
  score = 5
</Plugin>

🌟 EXAMPLE DNS WHITELIST 🌟

and here's a whitelist one with dnswl.org β€” note the comment, it'll stop right there:

<Plugin dnswl.org>
  module = "RBL"
  mode = "accept" # will stop here
  domain="list.dnswl.org"
</Plugin>

πŸ’œ AUTHOR πŸ’œ

Markus Benning <ich@markusbenning.de> β€” the mastermind, the moment, the legend 🫢

This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.

This is free software, licensed under:

The GNU General Public License, Version 2, June 1991

okay and that's the whole page, no notes, you're welcome πŸ’–

made with perl v5.38.2, dated 2024-05-26, and it's the Mail::...n::RBL(3pm) page β€” mwah, slay, periodt βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from