Email with Alpine and msmtp
I'm thinking about email on unix again. This time I'm using:
mpop copies mail from a remote inbox to a local inbox.
the mpop config file is in
defaults tls on keep on delivery mbox /var/mail/bird account bird host mail.muto.ca user email@example.com password psswD account default : bird
keep on means "instead of moving the mail,
just copy it". I store my mail in
because it's a standard mail path, so many clients look
in this file by default.
mpop is for getting mail.
msmtp is for sending mail.
The msmtp config is in
defaults auth on tls on port 587 account bird host mail.muto.ca from firstname.lastname@example.org user email@example.com 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 firstname.lastname@example.org
Alpine is an adorable mail client. This is what my
~/.pinerc file looks like:
customized-hdrs = From: Bird <email@example.com> 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
- I want to keep this post short. It's hard.
/var/mailis a symlink to
/var/spool/mail. They both lead to the same place.
- You should
chmod 600your msmtp and mpop configs, since they have your password.
- This is not a replacement for reading the manuals, but I hope it helps.
firstname.lastname@example.org 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!