POSTFIX-ADD-FILTER(8)

πŸ’– POSTFIX-ADD-FILTER πŸ’–

okay bestie, welcome to postfix-add-filter, section 8 of the System Manager's Manual β€” yes, the big-girl admin section, we love that for us 🫢


✨ NAME ✨

postfix-add-filter β€” literally just adds a filter service to your Postfix master.cf. that's it. that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

postfix-add-filter [smtp service name...] [smtpd port...]

like, you hand it some names and some ports and it goes to work. no cap.


πŸ¦‹ DESCRIPTION πŸ¦‹

so the postfix-add-filter(8) command adds an smtp service named smtp service name and an smtpd server listening on smtpd port into /etc/postfix/master.cf β€” and the whole point is to make integrating SMTP filters like amavisd-new or clamsmtp actually, you know, work. ✨

the configuration it writes is based on the upstream recommendations for amavisd-new 2.6.0. but heads up bestie πŸ‘‘: administrators should verify it is appropriate for their requirements. it's giving "template, not gospel."

the original file gets copied before modification and left in /etc/postfix so you can revert your changes easily. safety net? iconic. we stan a rollback. πŸŽ€

also available in the Debian package for Postfix version 2.5.3 and later. iykyk.


πŸ’€ DIAGNOSTICS πŸ’€

if the smtp service name you gave or the smtpd port you gave already appears in the master.cf? a message gets printed to standard out and master.cf will not be modified. nothing happens. it just says so and vibes. 🫢


🌈 ENVIRONMENT 🌈

  • MAIL_CONFIG β€” directory with Postfix configuration files. πŸ“
not me telling you this: the postfix-add-filter(8) command should use this, but it currently doesn't. it is hard coded to /etc/postfix. this should be changed. 😭

fr fr. it's a known situation. we move.


πŸ“ CONFIGURATION PARAMETERS πŸ“

None

that's right, zero. empty. nothing to configure. the void. πŸ’œ


🧚 FILES 🧚

  • /etc/postfix/master.cf

this is the one. the main character file. πŸ‘‘


⭐ SEE ALSO ⭐

go read those too, bestie, knowledge is free πŸ’–


πŸ“œ LICENSE πŸ“œ

this software is licensed under the MIT open source license. slay, permissive licensing, we love to see it. ✨


πŸ‘‘ AUTHOR(S) πŸ‘‘

  • Scott Kitterman
  • <scott@kitterman.com>

thank you for your service, king. πŸ«‘πŸ’…


and that's a wrap on POSTFIX-ADD-FILTER(8) from the System Manager's Manual β€” stay slay, back up your configs, and remember: it's hard coded to /etc/postfix, so act accordingly. bye bestie! πŸŽ€πŸŒΈπŸ’–