I just got e-mail notifications working.
First I installed perl and the required modules into the image:
apk add --no-cache perl perl-dev perl-socket6 perl-io-socket-inet6 perl-net-ssleay perl-io-socket-ssl
Then I downloaded the sendEmail script and copied it into /usr/bin
cd /tmp
wget https://github.com/lucalandolfi/sendEmail/archive/refs/heads/master.zip
unzip master.zip
cp sendEmail-master/sendEmail.pl /usr/bin/sendEmail
Finally I configured the following commands in Vorta under "Schedule -> Shell Commands":
Pre-backup:
sendEmail -f
[email protected] -t
[email protected] -u "Vorta backup started" -m "Vorta backup of $repo_url started" -o tls=yes -s mail.server.com:port -xu emailusername -xp emailpassword
Post-backup:
sendEmail -f
[email protected] -t
[email protected] -u "Vorta backup finished" -m "Vorta backup of $repo_url finished with returncode $returncode" -o tls=yes -s mail.server.com:port -xu emailusername -xp emailpassword
Just make sure you replace sender address, receiver address, mail server and the credentials with your own ones.
I used a fork of sendEmail from github, because the original version sendEmail-1.56 gave me the following error regarding the tls connection:
invalid SSL_version specified at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 670
Is there any chance that this could be incorporated into the docker image?