POSTFIX-ADD-POLICY(8)
π postfix-add-policy(8) π
ok bestie, this is a page from the System Manager's Manual β we're looking at postfix-add-policy, and it is literally the "set up my smtp policy server for me" button. let's get into it π«Ά
β¨ NAME β¨
postfix-add-policy β add policy service to Postfix master.cf
πΈ SYNOPSIS πΈ
postfix-add-policy [policy name...] [username...] [argv...]
π DESCRIPTION π
okay so the postfix-add-policy(8) command adds an smtp policy server β named policy name β that runs as username and gets called as argv β into /etc/postfix/master.cf. the whole point is to make it easy to plug in SMTP policy servers like postgrey or postfix-policyd-spf-perl. the config it writes is based on the Postfix SMTPD_POLICY_README, but heads up: admins should verify it's actually appropriate for their requirements. no cap. π₯
the original file gets copied before any modification, and that copy is left sitting in /etc/postfix so you can revert your changes easily. iconic safety behaviour, honestly π
available in the Debian package for Postfix version 2.5.3 and later.
π©Ί DIAGNOSTICS π©Ί
if the given policy name already shows up in the master.cf, a message gets printed to standard out and master.cf will not be modified. it's giving "i see you, but no π".
π ENVIRONMENT π
MAIL_CONFIGβ directory with Postfix configuration files.
bestie, listen. thepostfix-add-policy(8)command should use this, but it currently doesn't. it's hard coded to/etc/postfix. this should be changed. π«
π CONFIGURATION PARAMETERS π
None
(yeah. nothing. empty. a whole vibe of nothing. β¨)
ποΈ FILES ποΈ
/etc/postfix/master.cf
π¦ SEE ALSO π¦
postconf(5), Postfix configuration
π LICENSE π
this software is licensed under the MIT open source license.
π AUTHOR(S) π
Scott Kitterman <scott@kitterman.com>
and that's the whole page, bestie β no crumbs left π
this was POSTFIX-ADD-POLICY(8) from the System Manager's Manual, footer and all β go forth and add your policy service, you absolute queen ππ
π¦ where this page comes from
- debian bookworm: postfix 3.7.11-0+deb12u1
- debian trixie: postfix 3.10.13-0+deb13u1
- ubuntu jammy: postfix 3.6.4-1ubuntu1
- ubuntu jammy: postfix 3.6.4-1ubuntu1.4
- ubuntu noble: postfix 3.8.6-1build2
- ubuntu noble: postfix 3.8.6-1ubuntu0.1
- ubuntu questing: postfix 3.10.2-1ubuntu2
- ubuntu questing: postfix 3.10.2-1ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2
- ubuntu resolute: postfix 3.10.6-4ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2.2
- ubuntu stonking: postfix 3.11.7-1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms