Setting up Email with Mutt on Ubuntu Debian GNU/Linux
I have been using the Mutt email client for a short while now. By no means an expert, but have found a few little gems.
Firstly, I am using external POP and SMTP for sending and collecting email, with no local email server.
I use the following basic mutt settings in ~/.muttrc
As you can see, the mailbox are all in a folder in my home directory, no use of spool etc as I am not running an email server.
For sending email I use esmtp with this option in .muttrc
set sendmail=”/usr/bin/esmtp -v -X /tmp/esmtp.log”
For receiving email, I use getmail via cron every 15 mins.
The cron is :
# m h dom mon dow command
*/15 * * * * getmail –getmaildir /home/me/email/getmail/ –rcfile getmail.me.rc
The retriever in the getmail config is SimplePOP3SSLRetriever, and the destination is to procmail, which then does filtering based on rules and filters i set up and drops the email into the various maildir folders in ~/email/mailbox/