Externalize role

This commit is contained in:
Adrien Reslinger 2018-10-08 19:35:21 +02:00
commit 6dd27f2df4
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
18 changed files with 1740 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/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