Important bits for .muttrc (need public-key crypto set up for ssh):
set folder=imap://gsf@breaksalot.org/
set tunnel="ssh -q breaksalot.org /usr/sbin/dovecot --exec-mail imap"
my_hdr From: Gabriel Farrell <gsf@breaksalot.org>
set envelope_from=yes
mailboxes /var/mail/gsf + +archives +debian +django +dspace-tech
folder-hook . set record="+archives"
folder-hook . save-hook . "+archives"
folder-hook . set postponed="+drafts"
set sort=threads
set move=no
set delete=yes
set fast_reply=yes
set confirmappend=no
set mailcap_path=~/.mutt/mailcap
set smart_wrap
unset markers
set simple_search="~f %s | ~s %s | ~C %s"
set certificate_file=~/.mutt_certificates
set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"
set alias_file=~/.mutt/aliases
# simpler headers
ignore *
unignore from cc to date subject
Install Postfix as "Satellite system" and set "breaksalot.org" as the SMTP relay host. Defaults on everything else.
Add the following to the bottom of /etc/postfix/main.cf:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
Create /etc/postfix/sasl_passwd with the following line (substitute "passwd"):
breaksalot.org gsf:passwd
Run postmap /etc/postfix/sasl_passwd, then /etc/init.d/postfix reload.
On one laptop I was getting the following error in /var/log/mail.log when trying to send:
(SASL authentication failed; cannot authenticate to server
breaksalot.org[207.192.69.239]: no mechanism available)
That problem was solved by installing libsasl2-modules.