You are not logged in.

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

mkosler
Member
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 imap.gmail.com...
Could not connect to imap.gmail.com (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.

Offline

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

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,355

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.

Offline

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

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

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  •   Surfraw

Registered Linux User #482438

Offline

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

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

Re: mutt and Gmail issues

This may help you
.muttrc


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

Offline

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

gabx
Member
From: Geneva, Switzerland
Registered: 2011-11-20
Posts: 135
Website

Re: mutt and Gmail issues

You need a cetificate to authentificate to gmail server.

#imap.gmail.com 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 :

smtp.gmail.com:587

Not sure your server adress is valide so.

Hope this may help

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

Offline

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

mkosler
Member
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 = "marekkpie@gmail.com"
set realname = "Michael Kosler"

set hostname = gmail.com

set imap_user = "marekkpie@gmail.com"
set imap_pass = "****"

set folder    = "imaps://imap.gmail.com:933"
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://marekkpie@smtp.gmail.com:587/"
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'

Offline

Board footer

Powered by FluxBB