Skip to content
Snippets Groups Projects
Commit 064d59ae authored by Martin Strbacka's avatar Martin Strbacka
Browse files

notifier: fixed support of starttls.

parent 1a876852
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,14 @@ create_msmtp_config() {
echo "port $port" >> "$msmtp_cfg_file"
echo "from $from" >> "$msmtp_cfg_file"
if [ "$security" == "starttls" ] || [ "$security" == "ssl" ]; then
if [ "$security" == "ssl" ]; then
echo "tls on" >> "$msmtp_cfg_file"
echo "tls_certcheck off" >> "$msmtp_cfg_file"
echo "tls_starttls off" >> "$msmtp_cfg_file"
elif [ "$security" == "starttls" ]
echo "tls on" >> "$msmtp_cfg_file"
echo "tls_certcheck off" >> "$msmtp_cfg_file"
echo "tls_starttls on" >> "$msmtp_cfg_file"
else
echo "tls off" >> "$msmtp_cfg_file"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment