ansible-role-postfix/files/usr/local/sbin/update_postgrey_whitelist.sh
2018-10-08 19:35:21 +02:00

7 lines
381 B
Bash
Executable file

#!/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