Sunday, December 15, 2013

How To: Set up Hotmail in Mutt

I like to think of Microsoft's email infrastructure as a bad bowl of spaghetti. Ever since they came out with outlook, live, and hotmail, doing anything with the server configuration is a pain. When using thunderbird, which configures your mail for you automatically, it's fine, but with a program like mutt things get a bit harder. This is how to set up hotmail and mutt.

The important parts of any mutt configuration file are imap_user, imap_pass, smtp_url, smtp_pass, from, and realname. Here is what that section of the file should look like for you:

 set imap_user = ""
 set imap_pass = "YOUR_PASSWORD"
 set smtp_url = "smtp://"
 set smtp_pass = "YOUR_PASSWORD"
 set from = ""
 set realname = "FIRST LAST"
 set ssl_force_tls = yes

Note, smtp_url has two "@" symbols. Without this, sending mail will fail with an SASL error. For the curious, the rest of my configuration file is below:

 # The editor to edit the plaintext of the email in
 set editor = "emacs"

 set folder = "imaps://"
 set spoolfile = "+INBOX"
 set imap_check_subscribed
 set hostname =
 set mail_check = 25
 set timeout = 300
 set imap_keepalive = 300
 set postponed = "+[hotmail]/Drafts"
 set record = "+[hotmail]/Sent Mail"
 set header_cache=~/.mutt/cache/headers
 set message_cachedir=~/.mutt/cache/bodies
 set certificate_file=~/.mutt/certificates
 set move = no
 set include
 set sort = 'threads'
 set sort_aux = 'reverse-last-date-received'
 set auto_tag = yes
 ignore "Authentication-Results:"
 ignore "DomainKey-Signature:"
 ignore "DKIM-Signature:"
 hdr_order Date From To Cc
 alternative_order text/plain text/html *
 auto_view text/html
 bind editor <Tab> complete-query
 bind editor ^T complete
 bind editor <space> noop

 # Gmail-style keyboard shortcuts
 macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
 macro index,pager d "<enter-command>set trash=\"imaps://[GMail]/Bin\"\n <delete-message>" "Gmail delete message"
 macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
 macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
 macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
 macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"


  1. Thank you for your valuable post, If you are facing problem with your hotmail account, Hotmail Helpline Number NZ +64-98890480 for help & Support.

  2. The above post is worthy enough to set up Hotmail in Mutt but it’s just little bit confusing, to get clarification on this matter better way is to call at Hotmail Phone Number UK 0800-029-4639.

  3. Every Hotmail user faces complications while using this like emails sending issue or getting junk mails. In this case, to resolve the issues, you should talk to the technical experts @0800-090-3240 to get instant resolution of the issue. Hotmail Help Number UK

  4. Nice Blog, I have been throughout your blog and being a technical expert, I found it quite information giving. Here, you forgot to tell about the correct to counter the issue which is to contact the technicians. If one facing any tech problem, then contact us at keyword and for more information follow the link. Hotmail Help Number UK