Mail::...tfixMap(3pm)
β¨ NAME β¨
Mail::MtPolicyd::Plugin::PostfixMap β an mtpolicyd plugin that lets you reach into a postfix access map πΊοΈπ
π VERSION π
version 2.05
πΈ SYNOPSIS πΈ
okay bestie, here's the vibe, look how cute this config is:
<Plugin whitelist>
module="PostfixMap"
db_file="/etc/postfix/whitelist.db"
match_action=dunno
</Plugin>
<Plugin blacklist>
moduel="PostfixMap"
db_file="/etc/postfix/blacklist.db"
match_action="reject you are blacklisted!"
</Plugin>
(yes, moduel is spelled like that up there, i'm not touching it, i'm just the messenger π
)
π DESCRIPTION π
So what this plugin does is it takes your client_address and checks it against a postfix hash table. that's it. that's the whole job. iconic honestly π«Ά
It will only check if the IP address matches the list. Here's the tea on how it reads your values: 'OK' or a numerical value gets interpreted as a 'true' value. Literally everything else β every other action, every other value β gets treated as 'false'. periodt π
π¦ EXAMPLE TABLE π¦
Here's what /etc/postfix/whitelist is giving:
123.123.123.123 OK
123.123.122 OK
123.12 OK
fe80::250:56ff:fe85:56f5 OK
fe80::250:56ff:fe83 OK
and now you generate whitelist.db, like so:
$ postmap whitelist
slay, look at you go β¨
π PARAMETERS π
The module takes the following parameters, bestie, write these down:
(uc_)enabled(default:"on") β you can set this to'off'to deactivate the check. it's the move if you wanna activate/deactivate the check per user π
By default the plugin will do nothing. One of the following actions should be specified:
match_action(default: empty) β if you give it one, this action gets returned to the MTA when the SQL query matched πnot_match_action(default: empty) β if you give it one, this action gets returned to the MTA when the SQL query DID NOT match π€score(default: empty) β if you give it one, this score gets applied to the session β
π AUTHOR π
Markus Benning <ich@markusbenning.de> π
π COPYRIGHT AND LICENSE π
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 that's the whole page bestie, no cap π this little beauty is running on perl v5.38.2 and it was dated 2024-05-26 β catch you on the flip side, Mail::MtPolicyd::Plugin::PostfixMap πβ¨π¦
π¦ where this page comes from
- debian trixie: mtpolicyd 2.05-1.2 Β· GPL-2.0-only
- ubuntu questing: mtpolicyd 2.05-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms