Gmail POP3 via SSL

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
iben12
Posts: 1
Joined: Fri Oct 21, 2016 9:35 pm

Gmail POP3 via SSL

Postby iben12 » Fri Oct 21, 2016 10:06 pm

Let me just put it here, because it took me a few days to figure this out, maybe it could help someone.

If you want to retrieve mails into Gmail via secure POP3 connection from a VestaCP mail server, set Dovecot ssl_cert config in /etc/dovecot/conf.d/10-ssl.conf to the full chain cert.

So if you're using Letsencrypt it looks like this:

Code: Select all

ssl_cert = </etc/letsencrypt/live/server-domain.com/fullchain.pem
ssl_key = </etc/letsencrypt/live/server-domain.com/privkey.pem


This is important, because as described here Google is strict about the certs:
We do not accept self-signed certificates. For a certificate to be valid it needs to chain up to a valid CA, like one in the Mozilla CA list.


In Gmail POP3 account settings you should use the following settings:

    Password: user-password
    POP server: server-domain.com (use the server's TLD, not the mail account's domain and do not add mail. before, unless your cert contains the subdomain)
    Port: 995
    Always use secure connection... checked

Hope I can spare a few days for someone trying to get this working.

Return to “Mail Server”



Who is online

Users browsing this forum: No registered users and 6 guests