Muto - Blog - Feed


Email with Alpine and msmtp

I'm thinking about email on unix again. This time I'm using:


mpop

mpop copies mail from a remote inbox to a local inbox.

the mpop config file is in ~/.config/mpop/config:

defaults
tls  on
keep on
delivery mbox /var/mail/bird

account  bird
host     mail.muto.ca
user     bird@muto.ca
password psswD

account  default : bird

keep on means "instead of moving the mail, just copy it". I store my mail in /var/mail/bird because it's a standard mail path, so many clients look in this file by default.


msmtp

mpop is for getting mail. msmtp is for sending mail.

The msmtp config is in ~/.config/msmtp/config:

defaults
auth on
tls  on
port 587

account  bird
host     mail.muto.ca
from     bird@muto.ca
user     bird@muto.ca
password psswD
account  default : bird

We can see if msmtp works by sending ourselves an email:

echo "Subject: Hi!
How are you on this fine day?" | msmtp bird@muto.ca

Alpine

Alpine is an adorable mail client. This is what my ~/.pinerc file looks like:

customized-hdrs = From: Bird <bird@muto.ca>
editor          = nano
feature-list    = enable-alternate-editor-implicitly
sendmail-path   = /usr/bin/msmtp -t

By default, Alpine opens our inbox file at /var/mail/bird, and organizes other mbox files in ~/mail, which I think is a pretty comfy default!


Other Notes

  • I want to keep this post short. It's hard.
  • /var/mail is a symlink to /var/spool/mail. They both lead to the same place.
  • You should chmod 600 your msmtp and mpop configs, since they have your password.
  • This is not a replacement for reading the manuals, but I hope it helps.
  • bird@muto.ca is a fake address. My real email is showne here!

I'm not leaving rmail. I'm just doing "A month of alternative software", where I try to use as many new things as I can!