From f0c8ca3b00ef81c68aa3b301142de9f65fea5601 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Tue, 16 Jul 2019 13:48:41 +0200 Subject: [PATCH] Add the --fail flag to curl when downloading the postgrey whitelist and redirect stdout and stderr to null --- setup/mail-postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/mail-postfix.sh b/setup/mail-postfix.sh index ffdcad2a..e67fab28 100755 --- a/setup/mail-postfix.sh +++ b/setup/mail-postfix.sh @@ -215,7 +215,7 @@ tools/editconf.py /etc/default/postgrey \ cat > /etc/cron.monthly/mailinabox-postgrey-whitelist << EOF; #!/bin/bash # Mail-in-a-Box -curl https://postgrey.schweikert.ch/pub/postgrey_whitelist_clients --output /etc/postgrey/whitelist_clients -sS +curl https://postgrey.schweikert.ch/pub/postgrey_whitelist_clients --output /etc/postgrey/whitelist_clients -sS --fail > /dev/null 2>&1 EOF chmod +x /etc/cron.monthly/mailinabox-postgrey-whitelist /etc/cron.monthly/mailinabox-postgrey-whitelist