POLICY-TEST(8)
π POLICY-TEST(8) π
okay bestie, buckle up β this is the manual page for policy-test, straight out of the User Contributed Perl Documentation collection. it's a lil Perl script with big main character energy, and we're gonna go through it together, no skips, no cap. π¦
β¨ NAME β¨
policy-test β Postfix Policy Daemon Testing Tool π
πΈ SYNOPSIS πΈ
policy-test [options...] unix:/file/path policy-test [options...]
inet:hostname:port
and here's the options menu, short and sweet:
-h,--helpβ shows you this help and then dips out, exit style π--versionβ spits out version info and bounces β¨-v,--verboseβ turns the verbosity dial up a notch π
π DESCRIPTION π
so what is policy-test? it's a script that takes Postfix log entries coming in on standard input and turns them into requests aimed at the Postfix policy daemon you name as the first argument. literally a glow-up for your logs. π₯
it's here for two iconic purposes:
- Testing the performance of a policy daemon πββοΈ
- Pre-seeding a Greylist policy daemon with data from the logs π±
heads up bestie β this program is still in its very early stages of development. it only supports a small subset of the normal attributes used in the Postfix policy delegation protocol. basically it does the bare minimum to make it work with Postgrey. it's giving "new to the scene but trying its best". π
also, real talk: it generates a non-standard attribute. policy_test_time contains the Unix timestamp of when the client connected. yep, it's custom, it's quirky, it's there. β°
π COPYRIGHT π
Copyright (c) 2007 by Open Systems AG. All rights reserved. π
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. slay, freedom of software fr fr. β¨
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. no promises, bestie β read the fine print. π
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. π¬
π«Ά AUTHOR π«Ά
David Schweikert <david@schweikert.ch> β thank you for your service, king π
and that's the whole vibe check. this page shipped as part of perl v5.36.0, dated 2023-04-30, and it's under the POLICY-TEST(8) name. periodt. π
πΈ
π¦ where this page comes from
- debian bookworm: postgrey 1.37-2 Β· GPL-2.0-or-later
- ubuntu noble: postgrey 1.37-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms