gmail, mutt and msmtp fix

August 17, 2009 by
Filed under: technology 

If you use mutt and smtp to access gmail . Here is a (bad) news. Cool guys at Google again changed certificate. Oh, did you ask – how do it know it ? Simple mutt started complaining about bad certificate when trying to use msmpt, infamous ‘msmtp: TLS certificate verification failed: the certificate hasn’t got a known issuer.’ greeted me on the screen.

To cross confirm –
Just run following

$ msmtp --serverinfo --host=smtp.gmail.com --tls=on --port=587 --tls-certcheck=off

In place of old Thwate Server now you get following in issuer segment
Issuer:
Common Name: Google Internet Authority
Organization: Google Inc
Country: US

Fortunately fix is simple, here is what you need to do on debian

# apt-get install ca-certificates
# dpkg -s ca-certificates|grep Version
Version: 20090814

After this just change following line in you ~/.msmtprc

tls_trust_file /certs/Thawte SSLWeb Server Roots/thawte Premium Server CA/Thawte Premium Server CA.pem

to

tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt

Comments

3 Comments on gmail, mutt and msmtp fix

    […] gmail, mutt and msmtp fix | Life, universe, everything […]

  1. Joe on Mon, 18th Jan 2010 9:32 am
  2. ??????

  3. Freeman on Sat, 12th Jun 2010 10:12 pm
  4. How do you do! Please e-mail me your contacts. I have a question

    Thank you!…

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





  • Recent Posts