<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 05/18/2009 03:35 PM, Patrick O'Callaghan wrote:
<blockquote cite="mid:1242686148.3982.32.camel@bree.homelinux.com"
 type="cite">
  <pre wrap="">On Mon, 2009-05-18 at 22:18 +0100, Adel ESSAFI wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">fetchmail: Server CommonName mismatch: imap.gmail.com != pop.gmail.com
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I'm guessing that Gmail's SSL certificate uses imap.gmail.com instead of
pop.gmail.com. Read the section on --sslcommonname in fetchmail(1).

poc

  </pre>
</blockquote>
<br>
Your error seems to point at smtp set up on your local server:<br>
<br>
fetchmail: connection to localhost:smtp [<a href="http://127.0.0.1/25">127.0.0.1/25</a>]
failed: Connection refused.<br>
fetchmail: SMTP connect to localhost failed<br>
fetchmail: SMTP transaction error while fetching from <a
 href="mailto:xxx@pop.gmail.com">xxx@pop.gmail.com</a> and delivering
to SMTP host localhost<br>
fetchmail: Query status=10 (SMTP)<br>
<br>
<br>
Although I also see the error mentioned it retrieves the mail:<br>
<br>
fetchmail -u slwetmore pop.gmail.com --keep --ssl<br>
Enter password for <a class="moz-txt-link-abbreviated" href="mailto:slwetmore@pop.gmail.com:">slwetmore@pop.gmail.com:</a> <br>
fetchmail: Server CommonName mismatch: imap.gmail.com != pop.gmail.com<br>
1 message for slwetmore at pop.gmail.com.<br>
reading message <a class="moz-txt-link-abbreviated" href="mailto:slwetmore@gmail-pop.l.google.com:1">slwetmore@gmail-pop.l.google.com:1</a> of 1 (2111 header
octets).. (39 body octets) not flushed<br>
<br>
<br>
<br>
</body>
</html>