This is an old revision of the document!


current setup (as of March 2016)

  • mail delivery - getmail via IMAP with maildrop for filtering/filing into local subfolders
  • mail reading/writing - mu4e in emacs
  • sending - from within emacs using smtpmail (and smtpmail-stream-type 'ssl) to connect to remote smtp server

some 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...]    
(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
)
  • emacs_and_email.1460143293.txt.gz
  • Last modified: 2016-04-08 19:21
  • by nik