Setting up Mutt with NUS Student Email

Posted on October 26, 2015 by Richard Goulter
Tags: , ,

This is for setting up NUS student email (hosted with Office 365) for the Mutt Mail User Agent; particularly, using IMAP, and alongside other email accounts.

Why you’d want to use Mutt, I’m not entirely sure. Probably Thunderbird will serve your needs as well as need be.
But if you’re wanting to learn something productive while procrastinating, then Mutt is a sensible choice as any.

I find the Arch Wiki’s Mutt page indispensable when setting up Mutt. - If you’ve googled your way to this page without a prior guide, I recommend this.

As for setting up an account with Office 365, a blogpost from Alexander Brown (which comes up from a search for “mutt office365”) has a useful codedump.

I’m not sure what the minimal set of options would be, but the example I have in my dotfiles (as per Arch Wiki’s “Multiple Accounts” advice):

# Connection
set ssl_starttls=yes
set ssl_force_tls=yes
set ssl_use_sslv3=yes

# Incoming
set imap_user=""
set imap_pass=$my_nusstu_pass
set folder="imaps://"
set mbox="+INBOX"
set postponed="+Drafts"
set spoolfile="+INBOX"
set record="+Sent Items"
set imap_check_subscribed
unset imap_passive

# Outgoing
set realname="Richard Goulter"
set from=""
set smtp_pass=$my_nusstu_pass
set smtp_authenticators="login"
set smtp_url="smtp://$"
unset hostname

## Hook -- IMPORTANT!
account-hook $folder "set imap_user=$imap_user imap_pass=$imap_pass"

Disclaimer: WFM, YMMV. This is just what I have, and clearly I’m not a well-versed Mutt user.
My Mutt configuration, in general, may be useful for other NUS students keep their NUS Office 365 account separate from their GMail account.

Newer post Older post