mutt + fetchmail + maildrop + esmtpmsmtp

… are still the best combination on laptop. Originally I use mutt + fetchmail + maildrop + exim but the ability to use different SMTP server with different mail account won me over again.

My .fetchmailrc:

poll gmail
     via pop.gmail.com
     protocol pop3
     username "xxx@gmail.com"
     password "####"
     mda maildrop
     ssl

poll dotcom
     via dot.com
     protocol pop3
     username "xxx"
     password "####"
     mda maildrop

My .esmtprc:

# default
identity = xxx@gmail.com
    hostname = smtp.gmail.com
    starttls = required
    username = xxx@gmail.com
    password = ####

identity = xxx@dot.com
    hostname = smtp.dot.com
    username = xxx
    password = ####

My .mailfilter:

if ( /^List-Id:.*<android-porting.googlegroups.com>/:h )
    to $DEFAULT/android-porting

if ( /^List-Id:.*<android-ndk.googlegroups.com>/:h )
    to $DEFAULT/android-ndk

if ( /^List-Id:.*<android-platform.googlegroups.com>/:h )
    to $DEFAULT/android-platform

3 thoughts on “mutt + fetchmail + maildrop + esmtpmsmtp

  1. 1. esmtp is unmaintained.
    2. It does not consider “john.lee@somewhere.com” and “John.Lee@somewhere.com” are the same identity.
    I made a patch for 2, but because of 1, I still switched to msmtp, which basically provides similar function.

  2. @John regarding point 2: That’s because they are not the same. Only the domain part of an email address are to be treated without case sensitivity (with the exception of the postmaster address). It may have become customary not to treat them case insensitively, but that does not make it correct to do so.

    Please do not use the domain “somewhere.com” unless you have a right to use that domain. The domain example.com has been specifically designated for the purpose of (tada!) giving examples.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s