Home > Applications, Mail, Tech > How to fix the SSL “Verify Certificate” issue in Leopard Mail

How to fix the SSL “Verify Certificate” issue in Leopard Mail


Does this screen look familiar?


Picture 3.png

If you’re constantly having to click “Always trust XXX when connecting to XXX” when using Mail with SSL on, your solution may be a few clicks away.

In the above image, notice that it says “Always trust “smtp.gmail.com” when connecting to “imap.gmail.com”.” The problem here is that Leopard won’t ever trust a certificate (even after clicking the check box) when the server you entered in your account details doesn’t match the server name the certificate is using.

Picture 5.png

In this case, imap.gmail.com should be changed to smtp.gmail.com to reflect the name of the server on the certificate and the problem goes away like magic!

Here’s another slightly more complicated example…

I have several e-mail accounts hosted on “grid servers” from MediaTemple. You may use a different hosting company (i.e. Go Daddy, Yahoo!, Google, HostMonster) for your personal domains, but most don’t include SSL certificates that match your domain (or they cost extra). Since Mail won’t accept SSL certificates that don’t match your mail server, you may see something like this:

Picture 6.png

As you can see, the server entered in my Mail account settings is “mail.briancometa.com” but the certificate is for “*.gridserver.com.”
Unlike the first example, I can’t simply replace “mail.briancometa.com” with “*.gridserver.com” in my account settings (that’s not a legit mail server address).

In this case, I had to log into the Media Temple hosting panel to find out what grid server “briancometa.com” was hosted on. I knew to look for something ending in “gridserver.com” and after a little searching found that briancometa.com is, in fact, s6895.gridserver.com.

Back in Mail, I replaced both instances of “mail.briancometa.com” in my account settings with “s6895.gridserver.com.” I immediately quit and re-opened mail, re-entered passwords after checking for new mail, and re-entered passwords after sending messages from each account. If the Verify Certificate box pops up again, this should be the last time, make sure to click the “Always trust” checkbox.

NO MORE SSL ISSUES!! And, mail seems to run a bit faster — at least during startup.


Did this work for you too? Leave a comment and let us know.

Popularity: 13% [?]

  1. dgrebb
    August 31st, 2008 at 16:45 | #1

    YOU ARE THE MAN!

    After bugging me since Leopard was released, I finally got Mail auto-accepting self-signed certificates using the steps above.

    For anyone using Dreamhost, the incoming/outgoing servers should be set to postal.mail.dreamhost.com.

    This worked like a charm. I can’t thank you enough.

    Cheers!

  2. August 31st, 2008 at 19:06 | #2

    thanks!!! glad I could help!

  3. September 29th, 2008 at 20:55 | #3

    Having just moved from entourage to macmail (so we can use daylite) this was exactly our problem…. however the solution in the end was to go to advanced tab for the account and turn OFF ssl – it would seem that in this version when you add a new account it defaults to ssl ON. In my case our pop server does not use ssl.

    Thanks for the page

  4. November 14th, 2008 at 22:42 | #4

    For Dreamhost, it’s actually NOT

    postal.mail.dreamhost.com

    It’s the name of your mail server- .mail.dreamhost.com

    In my case, my mail server is “spunky”, so mine is set to:

    spunky.mail.dreamhost.com

  5. Paul Moshay
    November 18th, 2008 at 03:20 | #5

    Very useful post, Brian! I have to check what hostgator’s is for one of my domains.

  6. November 18th, 2008 at 09:36 | #6

    thanks paul, good luck!

  7. November 20th, 2008 at 17:11 | #7

    I have been plagued by this bloody problem for too damned long now and finally searc google correctly and found the answer.

    Thank you Paul, very much

  8. Walter
    December 22nd, 2008 at 09:03 | #8

    [ my previous response was missing 'mydomain' ]

    I did the following to get the name of my mail server on Dreamhost from Mac OS X.

    # host mail.mydomain
    mail.mydomain has address 208.113.200.50
    mail.mydomain mail is handled by 0 mx1.balanced.spacey.mail.dreamhost.com.
    mail.mydomain mail is handled by 0 mx2.balanced.spacey.mail.dreamhost.com.

    I then changed my incoming and outgoing mail server names to spacey.mail.dreamhost.com.

    No more nagging certificate pop-up. Thanks!

  9. December 22nd, 2008 at 10:44 | #9

    hey walter,

    can you give any more details on that command “host mail.mydomain?”

    did you just type that in terminal?

    when I tried host mail.briancometa.com it gave me this:
    mail.briancometa.com has address 64.13.192.62

    for host mail.briancometa I got this:
    bcmb:~ cometa$ host mail.briancometa
    mail.briancometa has address 208.67.216.132
    Host mail.briancometa not found: 3(NXDOMAIN)

    any ideas why I didn’t get something similar to you?

    it would be nice to have a terminal command which saves you from searching around for the actual domain name.

    thanks!

  10. December 27th, 2008 at 16:59 | #10

    Thank you! Fixed the issue. I’m on Hostmonster and had to set the server to host303.hostmonster.com

Comment pages
1 2 3 354
  1. April 15th, 2010 at 02:29 | #1