Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing and configuring Mutt on OSX
# Install mutt using brew
$ brew install mutt
# Configure mutt
$ vim ~/.muttrc
# Put the following on the mutt config file (.muttrc)
set imap_user = “YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN.com”
set imap_pass = “YOUR_PASSWORD”
set smtp_url = “smtp://YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN@smtp.gmail.com:587/”
set smtp_pass = “YOUR_PASSWORD”
set from = “YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN.com”
set realname = “YOUR_NAME”
set folder = “imaps://imap.gmail.com:993"
set spoolfile = “+INBOX”
set postponed = “+[Gmail]/Drafts”
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates
set move = no
set smtp_authenticators = ‘gssapi:login’
@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Jan 28, 2018

Why you using “? Not "?

@LEARAX

This comment has been minimized.

Copy link

@LEARAX LEARAX commented Mar 17, 2018

These quotations...

@rcode

This comment has been minimized.

Copy link

@rcode rcode commented Jun 1, 2018

Put the following on the mutt config file (.muttrc)

set imap_user = "YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN.com"
set imap_pass = "YOUR_PASSWORD"
set smtp_url = "smtp://YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN@smtp.gmail.com:587/"
set smtp_pass = "YOUR_PASSWORD"
set from = "YOUR_USERNAME@GMAIL_OR_YOUR_DOMAIN.com"
set realname = "YOUR_NAME"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates
set move = no
set smtp_authenticators = ‘gssapi:login’

@rcode

This comment has been minimized.

Copy link

@rcode rcode commented Jun 1, 2018

changed the quotes.

@caballerofelipe

This comment has been minimized.

Copy link

@caballerofelipe caballerofelipe commented Oct 11, 2018

Hi,

I wrote a script to do this automatically, you can execute it like this:
sh -c "$(curl -sSL https://raw.githubusercontent.com/caballerofelipe/scripts/master/mutt/installMuttForGmailOrApps.sh)"

Also, I created the needed dirs.

Or clone the repo and execute the file locally. You can also see the file here.

@devinrhode2

This comment has been minimized.

Copy link

@devinrhode2 devinrhode2 commented Dec 24, 2019

@caballerofelipe your script is awesome, thank you very much. I even sent a patch with some tweaks+comments (running mac os x mojave)

@caballerofelipe

This comment has been minimized.

Copy link

@caballerofelipe caballerofelipe commented Dec 26, 2019

@devinrhode2, you welcome ;) Unfortunately I won't be able to check the patch in the near future cause I did this a long time ago and I'm working on other stuff for the time being.

@devinrhode2

This comment has been minimized.

Copy link

@devinrhode2 devinrhode2 commented Dec 26, 2019

for anyone googling, my pr is here: caballerofelipe/scripts#1
All I did was move the brew install to the end, for reasons outlined in this pr

@jonnyhtw

This comment has been minimized.

Copy link

@jonnyhtw jonnyhtw commented May 10, 2020

hi there

i'm new to mutt and am having trouble getting it to open jpeg and png files using mailcap! i'm on osx catalina.

does anyone have any tips?!

thanks!

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