File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,17 @@ Automate adding domains and IP addresses to Postfix and Postgrey whitelists on M
2525
2626## 📝 Overview
2727
28+ ## Overview
29+
2830` add_whitelists.sh ` reads a simple text file (` whitelist.txt ` ) with one domain or IP (CIDR supported) per line, then:
2931
30- 1 . Creates timestamped backups of your existing whitelist files.
31- 2 . Adds entries to Postfix (` /etc/postfix/client_whitelist ` ) suffixed with ` OK ` .
32- 3 . Adds domain entries to Postgrey (` /etc/postgrey/whitelist_clients.local ` ).
33- 4 . Rebuilds the Postfix hash database and restarts both services.
32+ 1 . ** Automatically creates missing whitelist files** if they do not exist:
33+ - ` /etc/postfix/client_whitelist `
34+ - ` /etc/postgrey/whitelist_clients.local `
35+ 2 . Creates timestamped backups of your existing whitelist files.
36+ 3 . Adds entries to Postfix (` /etc/postfix/client_whitelist ` ) suffixed with ` OK ` .
37+ 4 . Adds domain entries to Postgrey (` /etc/postgrey/whitelist_clients.local ` ).
38+ 5 . Rebuilds the Postfix hash database and restarts both services.
3439
3540Keeping your whitelist entries in a separate file lets you safely publish this script on GitHub without exposing private data.
3641
You can’t perform that action at this time.
0 commit comments