You are not logged in.

#1 2012-10-08 03:28:35

Registered: 2012-10-08
Posts: 3

mutt and Gmail issues

I'm trying to set up mutt to communicate with Gmail. I believe I have everything correct in my .muttrc file (I've followed one of the many guides out there); yet, when I load up mutt, I inevitably get this error:

Connecting to
Could not connect to (Network is unreachable)

Some random Google searches doesn't really turn up much, so I was hoping someone else would have a bit of information. I have previously set up mutt once when I was flirting with a pure TTY setup, but I also was on the road, so maybe whatever ISP I was using at the time allowed for this kind of connection.

Any help is greatly appreciated.


#2 2012-10-08 03:36:06

Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,970

Re: mutt and Gmail issues

Try to use telnet to verify that the connection actually allows port 993 (IIRC) access.

Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.


#3 2012-10-08 03:38:43

From: .nz
Registered: 2009-05-09
Posts: 22,708

Re: mutt and Gmail issues

Welcome to the boards.

Please read the Forum Etiquette on How To Post.
You will help people assist you if you post the relevant information; in this
case your .muttrc (minus any passwords, etc) and how you are attempting to
connect to Gmail…

Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438


#4 2012-10-08 06:11:41

From: localhost
Registered: 2012-04-03
Posts: 498

Re: mutt and Gmail issues

This may help you

  Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain


#5 2012-10-08 06:44:29

From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 100

Re: mutt and Gmail issues

You need a cetificate to authentificate to gmail server. certificate to ensure to connect to Gmail
cert_fingerprint = 6d1b5b5ee0180ab493b71d3b94534b5ab937d042

I use offlineimap to fetch mails.

To send, I use msmtp, and need a valid sertificate too:

tls_trust_file   /usr/share/ca-certificates/mozilla/Thawte_Premium_Server_CA.crt

And the adress is :

Not sure your server adress is valide so.

Hope this may help

Last edited by gabx (2012-10-08 06:52:53)


#6 2012-10-08 16:04:04

Registered: 2012-10-08
Posts: 3

Re: mutt and Gmail issues

I'll give the suggestions a shot in sometime today.

Sorry; here is my .muttrc:

set from = ""
set realname = "Michael Kosler"

set hostname =

set imap_user = ""
set imap_pass = "****"

set folder    = "imaps://"
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 smtp_url  = "smtp://"
set smtp_pass = "****"

set move = no
set imap_keepalive = 900
set mail_check = 120
set timeout = 300

# Header stuff
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKM-Signature:"
hdr_order Date From To Cc

ignore *
unignore from: date subject to cc
unignore x-mailing-list: posted-to:
unignore x-mailer:

# For better looks
set markers = no
set pager_index_lines = 5
set sort = 'threads'
set sort_aux = 'last-date-received'

set editor = 'vim'


Board footer

Powered by FluxBB