Hi,
Simple to do ->
i) Create a .fetchmailrc file in /root folder with below lines :
set postmaster "root"
set logfile /var/log/fetchmail.log
poll
pop.gmail.com with proto POP3
user '
he...@gmail.com' there with password 'aries@123' is
he...@gmail.com here options keep ssl sslfingerprint '44:A8:E9:2C:FB:A9:7E:6D:F9:DB:F3:62:B2:9E:F1:A9' sslcertck sslcertpath /home/gmail-certs
Note :- Change
he...@gmail.com username and its password with your account and password.
ii) Then, execute this command -> "openssl s_client -host
www.gmail.com -port 443". You will get Gmail certificate in middle of "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" lines. Then copy and paste that certificate into file with extension .(dot)pem with BEGIN and END texts and place that file into /home/gmail-certs folder ( you need to create /home/gmail-certs folder ).
iii) Finally execute fetchmail command and your fetchmail will work,,,,,
Please let us know the results.
--
Regards
Ashutosh