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. the postfix-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 πŸ‘‘πŸ’