Discussion:
[imapfilter-devel] error while initiating connection (timeout?)
Bernd Kuemmerlen
2010-10-13 11:10:09 UTC
Permalink
Hello,

I am connecting imapfilter to an Exchange IMAP server (through a cron
job), and sometimes I get the following error message:

imapfilter: error while initiating connection to [my.mail.server] at
port 993

It only happens sometimes, and I haven't seen this when starting
imapfilter manually. There is no general problem with the server
connection, since most of the time it works correctly.

Is there anything I can do to debug this issue? Is there a timeout that
I can increase to see if this fixes the issue?

Thanks for any help
Bernd
Lefteris Chatzimparmpas
2010-10-13 20:17:18 UTC
Permalink
Hello,

How often is this cron job executed?

If you want to see what the problem was you can apply the attached patch
and recompile/reinstall. Something like:

$ tar zxf imapfilter-2.2.2.tar.gz
$ cd imapfilter-2.2.2
$ patch < patch-2.2.2-socket.diff
$ make && make install

Then run again with the newly installed version to get more verbose
error reporting.
Post by Bernd Kuemmerlen
Hello,
I am connecting imapfilter to an Exchange IMAP server (through a cron
imapfilter: error while initiating connection to [my.mail.server] at
port 993
It only happens sometimes, and I haven't seen this when starting
imapfilter manually. There is no general problem with the server
connection, since most of the time it works correctly.
Is there anything I can do to debug this issue? Is there a timeout that
I can increase to see if this fixes the issue?
Thanks for any help
Bernd
_______________________________________________
Imapfilter-devel mailing list
Imapfilter-devel at lists.hellug.gr
http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-2.2.2-socket.diff
Type: text/x-patch
Size: 379 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20101013/6bae3ada/attachment.bin>
Bernd Kuemmerlen
2010-10-19 17:55:35 UTC
Permalink
Post by Bernd Kuemmerlen
Hello,
How often is this cron job executed?
Every 15 minutes
Post by Bernd Kuemmerlen
If you want to see what the problem was you can apply the attached patch
$ tar zxf imapfilter-2.2.2.tar.gz
$ cd imapfilter-2.2.2
$ patch < patch-2.2.2-socket.diff
$ make && make install
Then run again with the newly installed version to get more verbose
error reporting.
The output I get then is
imapfilter: connect; Operation timed out
imapfilter: error while initiating connection to [my.mail.server] at
port 993

Not a lot more than the original log ;-)

So, it seems that there's a timeout. Is there anything I can adjust?

Best regards,
Bernd
Lefteris Chatzimparmpas
2010-10-20 07:31:43 UTC
Permalink
Post by Bernd Kuemmerlen
The output I get then is
imapfilter: connect; Operation timed out
imapfilter: error while initiating connection to [my.mail.server] at
port 993
Not a lot more than the original log ;-)
So, it seems that there's a timeout. Is there anything I can adjust?
Hello!

This probably translates to:

Timeout while attempting connection. The server may be too busy
to accept new connections. Note that for IP sockets the timeout
may be very long when syncookies are enabled on the server.

I don't think there is much you can do, other than try again later...
Loading...