I'm just getting started with mu4e after using Gnus for about a year. The sending of mail seems similar between the two, but mu4e hangs when I try to send mail and finally fails with the error:
network-stream-open-starttls: Failed connect: connection timed out
.
Here's my .emacs.d:
;; * mu4e
(require 'mu4e)
(setq mail-user-agent 'mu4e-user-agent)
(setq mu4e-maildir "/home/steven/mail/")
(setq mu4e-sent-folder "/sent")
(setq mu4e-drafts-folder "/drafts")
(setq mu4e-trash-folder "/trash")
(setq mu4e-maildir-shortcuts
'(("/archive" . ?a)
("/inbox" . ?i)
("/sent" . ?s)))
;; smtp mail settings
(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-smtp-server "example.server.com")
Is there anything here that would foul sending a message? If not, where might I look next for the cause of this behavior, or what experiment might I run to deduce the problem?
smtpmail-debug-info
tot
. That should cause a buffer called*trace of SMTP session to example.server.com*
to be created, which should contain more information. If Emacs keeps being stuck, interrupting it withC-g
should help.*trace of SMTP*
buffer ended up emtpy, I did find something by looking in*Messages*
. I've added it to my post above, too:network-stream-open-starttls: Failed connect: connection timed out
smtpmail-smtp-service
, for the port number of the SMTP server. It defaults to 25, but many mail servers want it to be 587 these days.