Improve restic failure mail
mailu antispam reported an invalid date header and a missing message-id header.
This commit is contained in:
parent
22c5e6dbff
commit
ec7c248528
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
curl --silent smtp://{{ smtp_host }} --mail-from {{ services.restic.mail_from }} --mail-rcpt admin@data.coop --mail-rcpt datacoop-backup@reynir.dk --upload-file . << END_OF_MAIL
|
curl --silent smtp://{{ smtp_host }} --mail-from {{ services.restic.mail_from }} \
|
||||||
|
--mail-rcpt admin@data.coop --mail-rcpt datacoop-backup@reynir.dk \
|
||||||
|
--upload-file .; cat << END_OF_MAIL
|
||||||
From: Restic backup <{{ services.restic.mail_from }}>
|
From: Restic backup <{{ services.restic.mail_from }}>
|
||||||
To: admin@data.coop
|
To: admin@data.coop
|
||||||
Subject: Restic backup failed
|
Subject: Restic backup failed
|
||||||
Date: $(date)
|
Date: $(date -R)
|
||||||
|
Message-ID: $(date +%s.%N)@{{ services.restic.domain }}
|
||||||
|
|
||||||
Dear sir or madam,
|
Dear sir or madam,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue