I can't persuade fetchmail to collect mail from an Exchange server on our LAN (fetchmail and Exchange are both on the LAN).
The errors I am getting are: fetchmail: Server CommonName mismatch: myoffice.mydomain.co.uk != 192.168.11.10 fetchmail: Server certificate verification error: unable to get local issuer certificate fetchmail: Server certificate verification error: certificate not trusted fetchmail: Server certificate verification error: unable to verify the first certificate fetchmail: Error exchanging credentials fetchmail: Authorisation failure on user@192.168.11.10 fetchmail: Query status=3 (AUTHFAIL)
myoffice.mydomain.co.uk resolves to the office's external IP address, although I think (from Googling) that the first line is a warning not the reason for the failure.
My fetchmailrc is fairly simple: set daemon 60 set invisible set no bouncemail set no syslog set logfile /var/log/fetchmail.log poll 192.168.11.10 protocol pop3 username "user" password "password" mda "/usr/bin/rt-mailgate --queue general --action correspond --url http://localhost/rt/" no keep
You'll see from the last line that I'm trying to set up Request Tracker (RT), and it needs to be able to collect mail from our office mailserver.
This guy seems to have the fix: http://berqnet.blogspot.com/2009/11/exchange-2007-fetchmail.html .. but I don't know what he means by "the fingerprint of the Exchange 2007".
[We've had nothing but problems like this since moving to Exchange, but it does a reasonable job of keeping Windows users in check so we're stuck with it.]