make gmail work with fetchmail


Install the appropriate SSL Certificate

  sh# cd /usr/share/ssl/certs   #make need to create w/ mode 755
  sh# wget -O Equifax_Secure_Certificate_Authority.pem \ 
      https://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Certificate_Authority.cer
  sh# chmod 644 Equifax_Secure_Certificate_Authority.pem
  sh# openssl x509 -in Equifax_Secure_Certificate_Authority.pem \  
                   -fingerprint -subject -issuer -serial -hash -noout
    MD5 Fingerprint=67:CB:9D:C0:13:24:8A:82:9B:B2:17:1E:D1:1B:EC:D4
    subject= /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
    issuer= /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
    serial=35DEF4CF
    594f1775
  sh# c_rehash .                      # this did not work for me in fc4
  sh# /usr/sbin/cacertdir_rehash .    # seems better...
  sh# file 594f1775.*
  594f1775.0: symbolic link to `Equifax_Secure_Certificate_Authority.pem'

Tell fetchmail about gmail.com

  sh# vi .fetchmailrc      #and add the following stanza

  poll pop.gmail.com
       protocol pop3
       username "luser@gmail.com" password "s33kr3t" is "localuser" here
       options  ssl
           sslfingerprint '59:51:61:89:CD:DD:B2:35:94:BB:44:97:A0:39:D5:B4'
           sslcertck sslcertpath /usr/share/ssl/certs


source: http://download.gna.org/hpr/fetchmail/FAQ/gmail-pop-howto.html
keywords: keywords
date: 06/27/2006