Unable to send email via smtpmail

12 views
Skip to first unread message

Ashish Panigrahi

unread,
Apr 27, 2025, 2:23:59 PMApr 27
to mu-discuss
Hi,

I've been trying to setup mu4e on emacs and am having trouble setting up smtp for sending email. I end up getting "Process smtpmail not running: connection broken by remote peer".

I was expecting emacs to prompt me for my username and password but instead end up with this error when sending a message.

Here's my config:
(use-package smtpmail
  :ensure nil
  :after message
  :config
  (setq message-send-mail-function 'smtpmail-send-it)
  (setq smtpmail-smtp-server "smtp.migadu.com")
  (setq smtpmail-smtp-service 465)
  (setq smtpmail-debug-info t)
  (setq smtpmail-stream-type 'plain))

I'd appreciate any help on this. Thanks!

Kind regards,
Ashish

Dirk-Jan C. Binnema

unread,
Apr 28, 2025, 2:30:12 PMApr 28
to mu-di...@googlegroups.com
Perhaps.... change the stream-type, e.g. to 'ssl or 'starttls I'm just
guessing -- check- the settings from your mail provider.

Kind regards,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036

jman

unread,
Apr 28, 2025, 3:16:37 PMApr 28
to Ashish Panigrahi, mu-discuss
Ashish Panigrahi <ashish.pan...@gmail.com> writes:

> Here's my config:
> (use-package smtpmail
> :ensure nil
> :after message
> :config
> (setq message-send-mail-function 'smtpmail-send-it)
> (setq smtpmail-smtp-server "smtp.migadu.com")
> (setq smtpmail-smtp-service 465)
> (setq smtpmail-debug-info t)
> (setq smtpmail-stream-type 'plain))

Just a blind guess, not an expert.

Migadu requires TLS terminated connections:
https://migadu.com/guides/index.html

Do you have the variable `smtpmail-stream-type` set to `ssl`? The
documentation says that the default is `nil`.

Hope it helps,
Reply all
Reply to author
Forward
0 new messages