Skip to content

Instantly share code, notes, and snippets.

@yangxuan8282
Created December 9, 2016 08:56
Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save yangxuan8282/a18d757429c2e3a89699325045c742b3 to your computer and use it in GitHub Desktop.
Save yangxuan8282/a18d757429c2e3a89699325045c742b3 to your computer and use it in GitHub Desktop.
Hotmail template config for mutt, just insert your mail account and password to "imap_user" and "imap_pass", if 2-factor is enable, generate an app password.
set ssl_starttls=yes
set ssl_force_tls=yes
set imap_user = 'user_name@hotmail.com'
set imap_pass = 'password_here'
set from= $imap_user
set use_from=yes
set realname='Your_Name'
set folder = imaps://imap-mail.outlook.com:993
set spoolfile = "+INBOX"
set postponed="+[hotmail]/Drafts"
set mail_check = 100
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
set smtp_url = "smtp://$imap_user@smtp-mail.outlook.com:587"
set smtp_pass = $imap_pass
set move = no
set imap_keepalive = 900
set record="+Sent"
@sskset
Copy link

sskset commented Jul 8, 2019

thanks

@Jon-BV
Copy link

Jon-BV commented Aug 20, 2019

cool

@tanasarant
Copy link

great job!

@cybertxt
Copy link

cybertxt commented Jul 7, 2021

works!

@vukko
Copy link

vukko commented Feb 18, 2022

Thank you for this! It works for Office365 too with these settings
set folder = imaps://outlook.office365.com:993
set smtp_url = "smtp://$imap_user@smtp.office365.com"
set postponed="+Drafts"

@tanasarant
Copy link

tanasarant commented Feb 18, 2022 via email

@troilus
Copy link

troilus commented Jul 7, 2022

should add

set smtp_authenticators = "login"

@Mastrota
Copy link

Mastrota commented Sep 3, 2022

Login failed[SASL-XOAUTH2] - Requesting authID!
[SASL-XOAUTH2] - Requesting token!
Someone Can help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment