Re: Timing out while trying to connect to gmail. Config?

Charles Cazabon <[email protected]>
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
Mauricio Tavares <[email protected]> wrote:
> the EPEL redhat repository. But, as I see your point, I will get
> http://pyropus.ca/software/getmail/old-versions/getmail-5.13.tar.gz
> instead as shown later on this email.

Ok, that helps.

> I looked at my log file -- I let it run overnight -- and it showed
> that sometimes it grabbed some email and sometimes it times out:

Aha.  I had assumed from your initial report that it was timing out before it
was able to connect, login, retrieve any messages, etc.  That's not the case.

> 2019-02-26 11:32:58 msg   1998/928923 (17773 bytes) msgid 2/103919
> from <[email protected]> delivered to Maildir
> /home/mailsucker/mail/gmail/raubvogel/

So it's connecting successfully, and then timing out sometime later during
retrieval of a message.  That's a symptom of a lousy network connection
between getmail and the server, and it's causing the connection to be dropped.

What you want to do in that case is set the max_messages_per_session to a
small value -- basically the maximum number of duplicate messages you want to
have to deal with.  Try something like 10 or 20, for example.  Then you run
getmail periodically (by hand, or with a helper) and it will eventually have
retrieved all of your mail, disconnecting after each batch to make sure the
server state is updated (which can get lost if the connection is dropped).

If you're having further issues with this, can you post getmail's full output
showing the problem, while running it with the --verbose switch?

Charles

-- 
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:               http://pyropus.ca/software/
-----------------------------------------------------------------------
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.