This is an old revision of the document!
current setup (as of March 2016)
getmail via IMAP with maildrop for filtering/filing into local subfoldersmu4e in emacsemacs using smtpmail (and smtpmail-stream-type 'ssl) to connect to remote smtp serversome notes…
using getmail to deliver mail from remote server[s] to local maildir folders, with maildrop as a way of filing (filtering) messages into subfolders on the local machine.
configs
~/.getmail/imap.conf
[retriever] type = SimpleIMAPSSLRetriever server = example.com username = xxxxxxx password = xxxxxxx [destination] type = MDA_external path = /opt/local/bin/maildrop
~/.mailfilter
# filtering with maildrop
DEFAULT="$HOME/Maildir/INBOX"
MAILDIR="$HOME/Maildir"
logfile "$HOME/.mailfilter.log"
# archive list messages
if (/^List-id:.*/)
to $MAILDIR/archiv-0201x
# sysadmin for the sysadmin
if (/^From:.*MAILER-DAEMON/)
to $MAILDIR/sysadmin
# [etc...]
<code>
====mail reading/writing====
mu4e
====mail sending====
<code>
(setq
message-send-mail-function 'smtpmail-send-it
smtpmail-stream-type 'ssl
smtpmail-default-smtp-server "mail.example.com"
smtpmail-smtp-server "mail.example.com"
smtpmail-smtp-service 465
)