Timing out while trying to connect to gmail. Config?

Mauricio Tavares <[email protected]>
Newsgroups gmane.mail.getmail.user
Message-ID <CAHEKYV6xO73Mj9h+rNsb9_WBnsBrQYJaTF3P2iP4XJyAzGfWJA@mail.gmail.com>
Newbie question: My rc file looks like this:

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
mailboxes = ("Inbox", "[Gmail]/Sent Mail")
username = [email protected]
password = super-secret-password

[destination]
type = Maildir
path = ~/mail/gmail/raubvogel/

[options]
verbose = 2
message_log = ~/mail/mailog/log.gmail
# do not alter messages
delivered_to = false
received = false
delete = false

Short of the gmail-specific entries, it is the config I used to
retrieve emails from another account (used it to save 50K emails). I
checked some of the  config -- username/password/imap address -- by
using them with mutt, and it worked there. When I try to manually run
getmail using the above rc file, it just times out:

getmail -vvv --getmaildir ~/mail/mailrc -r
~/mail/mailrc/getmailrc.gmail.raubvogel
getmail version 5.6
Copyright (C) 1998-2012 Charles Cazabon.  Licensed under the GNU GPL version 2.
SimpleIMAPSSLRetriever:[email protected]@imap.gmail.com:993:
read_all and not delete -- all messages will be retrieved each time
getmail is run
SimpleIMAPSSLRetriever:[email protected]@imap.gmail.com:993:
getmailrc.gmail.raubvogel: socket error (('The read operation timed out',))
  0 messages (0 bytes) retrieved, 0 skipped

and I have no clue why. Suggestions?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.