summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mw b/bin/mw
index 051bf54..8adb0b9 100755
--- a/bin/mw
+++ b/bin/mw
@@ -40,7 +40,7 @@ list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" || exit 1 ;}
prepmsmtp() { echo "account $fulladdr
host $smtp
-port ${sport:-587}
+port ${sport:-465}
from $fulladdr
user $login
passwordeval \"pass $fulladdr\"
@@ -48,7 +48,7 @@ auth ${auth:-on}
tls on
tls_trust_file $sslcert
logfile $msmtplog
-$tlsline
+${tlsline:-tls_starttls off}
" >> "$msmtprc"
}
@@ -193,7 +193,7 @@ askinfo() { \
read -r imap
[ -z "$smtp" ] && echo "Give your email server's SMTP address (excluding the port number):" &&
read -r smtp
- [ "$sport" = 465 ] && tlsline="tls_starttls off"
+ [ "$sport" = 587 ] && tlsline="# tls_starttls"
[ -z "$realname" ] && realname="${fulladdr%%@*}"
hostname="$(echo "$fulladdr" | cut -d @ -f 2)"
login="${login:-$fulladdr}"