Skip to content
Snippets Groups Projects
Commit 639db2e5 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Fix auth method

Not all servers support login, and some support better. Use the best one
available.
parent 4fe9dca0
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
base_folder=/tmp/user_notify
if [ "$1" = -d ] ; then
if [ "$1" = "-d" ] ; then
base_folder="$2"
shift 2
fi
......@@ -33,7 +33,7 @@ create_msmtp_config() {
fi
echo "port $port" >> $msmtp_cfg_file
echo "auth login" >> $msmtp_cfg_file
echo "auth on" >> $msmtp_cfg_file
echo "from $from" >> $msmtp_cfg_file
echo "user $username" >> $msmtp_cfg_file
echo "password $password" >> $msmtp_cfg_file
......
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