Hi everyone,
I'm using a redhat 7.2 with fetchmail 5.9.0+IMAP-GSS+SSL+INET6+NLS
I have a problem where it is giving error code 2, and when I check, the socket opens manually, however, when as a script, it does not seem to want to open a socket. I have changed MTU's, checked against another server and against the protocols as per the /etc/services. Unfortunately, I cannot upgrade the server as the programs are old, and I need to find a solution.
Can anyone help?
Chris
On Tue, 25 Jan 2005, WebImmigration.Com wrote:
I have a problem where it is giving error code 2, and when I check, the
Can anyone help?
With a problem description like that? No.
Try running fetchmail with "-v -v" to enable verbose output including all the client server communications.
The man page defines error code 2 as
"An error was encountered when attempting to open a socket to retrieve mail. If you don't know what a socket is, don't worry about it -- just treat this as an 'unrecoverable error'. This error can also be because a protocol fetchmail wants to use is not listed in /etc/services."
While the output of -v -v above might tell you the problem right away, I'd guess there might be a typo in your config file, ie a hostname or something. It's been ages since I've ran fetchmail, but ISTR it being very straightforward.
Sean