MUTT : Background sending with mSMTP

I am regular mutt user. Here is a good fix to remove waiting while the mutt interacts with the SMTP server to send an email. Previously I used a local mail server, now I am going to use mSMTP which is a SMTP Client just like mutt. We will let the mSMTP do the sending part in the background and will keep reading mails in the mutt, Sounds cool, eh ?

At First, Do Install and Configure mSMTP, don’t worry its a quick one.

Open your .muttrc file, remove smtp_url variable, or comment it.

#set smtp_url = "smtp://"

Append following, change things accordingly.

#sets path to msmtp command
set sendmail="/usr/bin/msmtp"
set envelope_from=yes

#Tells mSMTP to use which block of address to send the email
macro generic "1" ":set"

#Background sending, Hurray !
set sendmail_wait=-1

That’s it guys !

Feel free to share problems, if any. I’ll be back after some sleep.

Leave a Reply