I have been having some trouble trying to setup fetchmail to retrieve
mail from our MS Exchange 2003 server using IMAP, authentication is
handled by NTLM (I normally use evolution and it works.).
Fetchmail seems to be able to connect to the server fine however it
hangs when trying to download the messages from the server. Here is
an example of the output.
...
reading message xxxxxxxxxx:1 of 12 (791 header octets)
fetchmail: smtp listener protocol error
fetchmail: smtp listener protocol error
fetchmail: SMTP connect to localhost failed
...
fetchmail: SMTP transaction error while fetching from xxxxxx
This suggests that the problem is not in the IMAP connection to
the Exchange server, but in the SMTP connection to your local
sendmail/qmail/postfix/whatever. Perhaps there will be something
useful in its logfile.