From d0788372fea23c3a5d349beb477a87867aa8010e Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 2 Nov 2019 12:03:41 +0100 Subject: [PATCH] [Dovecot] Retry sa-rules download (1, 2, 4, 8, 16 ... seconds) --- data/Dockerfiles/dovecot/sa-rules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Dockerfiles/dovecot/sa-rules.sh b/data/Dockerfiles/dovecot/sa-rules.sh index eaa15127..1641a992 100755 --- a/data/Dockerfiles/dovecot/sa-rules.sh +++ b/data/Dockerfiles/dovecot/sa-rules.sh @@ -13,7 +13,7 @@ fi # Deploy ## Heinlein -curl --connect-timeout 15 --max-time 30 http://www.spamassassin.heinlein-support.de/$(dig txt 1.4.3.spamassassin.heinlein-support.de +short | tr -d '"').tar.gz --output /tmp/sa-rules-heinlein.tar.gz +curl --connect-timeout 15 --retry 10 --max-time 30 http://www.spamassassin.heinlein-support.de/$(dig txt 1.4.3.spamassassin.heinlein-support.de +short | tr -d '"').tar.gz --output /tmp/sa-rules-heinlein.tar.gz if gzip -t /tmp/sa-rules-heinlein.tar.gz; then tar xfvz /tmp/sa-rules-heinlein.tar.gz -C /tmp/sa-rules-heinlein cat /tmp/sa-rules-heinlein/*cf > /etc/rspamd/custom/sa-rules