#!/bin/bash curl -L https://github.com/schweikert/postgrey/raw/master/postgrey_whitelist_clients -o /dev/shm/postgrey_whitelist_clients #wget https://github.com/schweikert/postgrey/raw/master/postgrey_whitelist_recipients sed -e 's|##DATE##|'"$(date +%d/%m/%Y)"'|' -e 's|##VERSION##|master|' -i /dev/shm/postgrey_whitelist_clients cat /dev/shm/postgrey_whitelist_clients > /etc/postfix/postgrey_whitelist_clients rm -f /dev/shm/postgrey_whitelist_clients systemctl restart postgrey