I use Emacs and mu4e for email. I successfully set up Amazon WorkMail IMAP with Emacs and mu4e as a second account. My first account works with TLS:
(setq ; ...
smtpmail-smtp-server "smtp.server.com"
message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-service 587
smtpmail-stream-type 'starttls
smtpmail-auth-credentials ; ...
)
I was unable to set up SMTP: Amazon's page mentions that STARTTLS is not supported. I followed this page on SSL:
(defvar my-mu4e-account-alist
'(
("mainAccount" ; ...
)
("AWS"
(user-mail-address "me@domain.com")
(smtpmail-smtp-server "smtp.mail.eu-west-1.awsapps.com")
(smtpmail-stream-type 'ssl)
(smtpmail-smtp-service 465)
)
))
And I get this error:
open-network-stream: Invalid connection type ssl
How can I fix this?