Sample Header Ad - 728x90

Getmail: Connection reset by peer (IMAP Idle)

3 votes
1 answer
1494 views
I am trying to receive mails using getmail from an IMAP Idle server. Since I am able to receive mails using Mac OS' Mail app from another account on the same server (mail adress provider), IMAP Idle should be supported by the server. However, after some time (do not know how long this took) the connection is closed and an exception is raised: getmail version 4.46.0 Copyright (C) 1998-2012 Charles Cazabon. Licensed under the GNU GPL version 2. SimpleIMAPSSLRetriever:@:993: 0 messages (0 bytes) retrieved, 0 skipped IDLE message received msg 1/1 (1534 bytes) from delivered to MDA_external command procmail (), deleted 1 messages (1534 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped 0 messages (0 bytes) retrieved, 0 skipped IDLE message received Exception: please read docs/BUGS and include the following information in any bug report: getmail version 4.46.0 Python version 2.7.9 (default, Sep 17 2016, 20:26:04) [GCC 4.9.2] Unhandled exception follows: File "/usr/bin/getmail", line 866, in main success = go(configs, options.idle) File "/usr/bin/getmail", line 425, in go idling = retriever.go_idle(idle) File "/usr/lib/python2.7/dist-packages/getmailcore/_retrieverbases.py", line 1750, in go_idle self.conn.send('DONE\r\n') File "/usr/lib/python2.7/imaplib.py", line 1195, in send sent = self.sslobj.write(data) File "/usr/lib/python2.7/ssl.py", line 626, in write return self._sslobj.write(data) error: [Errno 104] Connection reset by peer Please also include configuration information from running getmail with your normal options plus "--dump". The getmail config looks like this: [retriever] type = SimpleIMAPSSLRetriever server = port = 993 username = password = mailboxes = ALL [destination] type = MDA_external path = /usr/bin/procmail [options] read_all = true delivered_to = false received = false message_log = ~/.getmail/getmail.log verbose = 2 delete = true Does anyone has some hints about how to get this issue solved? I do not have any starting point as I am a beginner in using getmail. Since I am planning to use supervisord in the future I could use supervisor to restart getmail which should do the job, but this does not feel to be good practise from a technical point of view.
Asked by albert (191 rep)
Mar 11, 2017, 12:17 PM
Last activity: Mar 15, 2017, 06:01 PM