I spent a whole day figuring this out and tweaking MANY combinations between different SSL/TLS and ports configurations with no success, until today I finally tried this specifically:
set ssl_starttls = no
It seems mutt's default behavior is to try STARTTLS, so you have to specifically tell it DON'T
No other configuration was needed besides the obvious smtp_url
and smtp_pass
.
I can now perfectly send mail with this .muttrc
set ssl_starttls = no
set smtp_url = "smtp://user@example.com@mail.example.com:587/"
set smtp_pass = "password"
That worked with the Not recommended configurations of SSL from my email provider. I'm still not able to use the recommended config using 465 port.
This are all the configurations I have tweaked that affects sending mail, if any one else want to try:
set ssl_starttls = no # apparently yes is default.
set ssl_force_tls = yes
set smtp_authenticators = "login"
set smtp_url = "smtp[s]://..."
set certificate_file = "~/.mutt/certificates" # some recommend creating the file first: mkdir ~/.mutt && touch ~/.mutt/certificates
set ssl_verify_host = no
set ssl_verify_dates = no
smtp_url
is set? Is it possible to confirm withmutt -D | grep smtp_url
?