Modoba Integration Steps:
Configure Modoba according to the instructions and verify acceptable operation. Then:
If you are testing using the free samples updated every three days, edit /etc/anacrontab, then append:
RANDOM_DELAY=45
3 0 rsswhitelist wget -NP /etc/postfix https://whitelistfiles.rockstablesystems.com/ip_whitelist_sample_cidr_ok
If you are a subscriber to the whole list, remove the above if it exists, then append:
RANDOM_DELAY=45
3 0 rsswhitelist wget -NP /etc/postfix --user=<subscriber email address> --password=<subscriber password> https://whitelistfiles.rockstablesystems.com/subscribersonly/ip_whitelist_cidr_ok
After editing, give the command
#sudo anacron -f rsswhitelist
#ls -l /etc/postfix/ip_whitelist*
It might result in something like:
-rw-r–r– 1 root root 212972 Oct 18 13:24 /etc/postfix/ip_whitelist_cidr_ok
-rw-r–r– 1 root root 5351 Oct 18 13:24 /etc/postfix/ip_whitelist_sample_cidr_ok
Make sure the correct file beginning with ip_whitelist_ is present, has a date within three days of the current date, and has a nonzero length. If all that’s correct, then edit main.cf find the lines beginning with:
## Postcreen settings
#
postscreen_access_list =
permit_mynetworks
cidr:/etc/postfix/postscreen_spf_whitelist.cidr
To that, if you are using the sample file, before the line ‘postscreen_blacklist_action = enforce ‘, add:
cidr:/etc/postfix/ip_whitelist_sample_cidr_ok
If you are using the full subscribed whitelist, instead of the above, add:
cidr:/etc/postfix/ip_whitelist_cidr_ok