title: Setting up mutt
body: <p>I am a newbie to linux and need some help on using mutt for my office MS exchange server.</p>
  
  <p>I have installed mutt 1.5.23 with configure options: <code>--enable-imap --with-ssl</code> and <code>--enable-hcache</code>.</p>
  
  <p>I think, I am able to login to my exchange account, but can not go beyond (read or send mails). Mutt logs in and then says connection closed with message </p>
  
  <blockquote>
    <p>--Mutt: (no mailbox) [Msgs:0] --- (date/date) ----------(all)</p>
  </blockquote>
  
  <p>Is there a problem with my <code>.muttrc</code> or <code>.msmtprc</code>? I have no idea. I am pasting contents of both the files:</p>
  
  <p>.muttrc:</p>
  
  <pre><code>source /usr/local/etc/Muttrc
  set realname = "Ashish Goel"
  set from = "ashish.goel@abc.com"
  set envelope_from = yes
  set imap_user = "ashish.goel@abc.com" 
  set folder = "imaps://owa.abc.com/owa/INBOX"
  set imap_authenticators = "login"
  set mbox = "imaps://owa.abc.com/owa/INBOX"
  set spoolfile = "imaps://owa.abc.com/owa/INBOX"
  set record = "imaps://owa.abc.com/owa/Sent Items"
  set postponed = "imaps://owa.abc.com/owa/Drafts"
  set copy=yes
  set smtp_url = "smtps://ashish.goel@abc.com@owa.abc.com/owa"
  mailboxes !
  set header_cache = ~/.mutt/headers
  set message_cachedir = ~/.mutt/cache/bodies
  set certificate_file = /etc/ssl/certs
  set imap_check_subscribed = yes
  set imap_keepalive = 300
  set imap_passive = no
  set mail_check = 60
  set timeout = 15
  set sendmail = "/usr/bin/msmtp"
  set ssl_verify_host = no
  set ssl_verify_dates = no
  </code></pre>
  
  <p>.msmtprc:</p>
  
  <pre><code>account work
  host owa.abc.com/owa
  port 587
  from ashish.goel@abc.com
  user ashish.goel@abc.com
  auth ntml
  tls on
  tls_trust_file /etc/ssl/certs/ca-certificates.crt
  logfile ~/.msmtp.log
  ntlmdomain MYDOMAIN
  protocol smtp
  account default : work
  </code></pre>