Hello Ævar.
>>> I use exim4 on Debian to send E-Mail async [...]
>> [...] in this context, async sending means for me to press C-c
>> C-c and to continue working immediately in the emacsverse
>> while the mail is being sent in the background. [...]
> It does two things: 1) You're always, from Emacs's perspective,
> just sending a mail to localhost, so there's none of the remote
> handshaking etc. So you wait less. Using any smtpd-like
> solution, including smtpmail.el or exim does that.
Ah, thank you very much, now I'm starting to undestand. :)
> 2) Your mu4e doesn't need to deal with any of the special cases
> where the send function fails, that's outsourced to the smtpd,
> e.g. when you don't have a network connection.
Beautiful.
Your reply made me start reading about exim4, MTAs and MDAs. While
real understanding is a long reading-tinkering distance from
now/here yet, I grok the idea that exim is the one who does the
real job of sending those mails.
What I still didn't found (surely I'm using the wrong keywords) is
how do we chain mu4e with exim.
Right now, the (hopefully) relevant config lines I have are:
--8<---------------cut here---------------start------------->8---
send-mail-function 'sendmail-send-it
message-send-mail-function 'message-send-mail-with-sendmail
sendmail-program "/usr/bin/msmtp"
--8<---------------cut here---------------end--------------->8---
Maybe it is the <sendmail-program> line that should point to
"/usr/sbin/exim"? (a search for [mu4e "sendmail-program" exim]
gave me nothing, or nothing I could understand at least). ;)
Not counting the exim specific configuration (smarthost without
local delivery), are other changes needed?
Thanks a lot for sharing... :D