#!/bin/bash wget https://github.com/schweikert/postgrey/raw/master/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 postgrey_whitelist_clients cat postgrey_whitelist_clients > /etc/postfix/postgrey_whitelist_clients systemctl restart postgrey