mail-filters/Makefile at master · fumiyas/mail-filters
Posted by jpluimers on 2019/04/15
Cool tool if you use Postfix: mail-filters/Makefile at master · fumiyas/mail-filters.
You set it up like this:
cd /etc/postfix
wget https://raw.githubusercontent.com/fumiyas/mail-filters/master/postfix/Makefile
Then each time you change your postfix configuration:
cd /etc/postfix
make
In that directory, it will (re)generate a Makefile.postmapbased on the lines with hash in main.cf, then make each .db file from the source hash file.
After that you have to manually restart postfix, which depends on your Linux flavour.
Similar solutions:
- [WayBack] Using “make” for Postfix file maintenance
- [WayBack] Postfix Makefiles – Web and dedicated hosting tutorials by Anchor
(also does a reload on one specific flavour) - [WayBack] HSC – Brève – Makefile for postfix configuration
(also does a reload on one specific flavour)
–jeroen






Leave a comment