How to verify that SSL for IMAP/POP3/SMTP works and a proper SSL certificate is in use

Follow

Comments

6 comments

  • Avatar
    Henri Pelkonen

    I have similar problem, as OVH Let's encrypt SSL won't work, and mail certifies by domain always resort to ovh address.

    0
    Comment actions Permalink
  • Avatar
    Lev Iurev

    @Henri, could you please describe the issue in more details?

    0
    Comment actions Permalink
  • Avatar
    Henri Pelkonen (Edited )

    @Lev Iurev

    Hi,

    For starters I must say I'm very new to this and this is my first server setup with Plesk and mail server.

    Would you recommend 1 serverwide certificate to secure multiple domains or every domain with own sertificate as my vps is with shared IP?

    The problem is that I can't make sertificate now for my OVH vps cause number of *.ovh.net certs are restricted by Let's Encrypt. So should I get a own domain for vps and plesk server and get sertificate to that or could and should I get separate domain name sertificates to work with each domain? As for now the domains seems to show vps plesk self signed certificate even though they are set to Let's Encrypt via Plesk panel.

    Is there a way to force certificates to domain and bypass the plesk certificate and check them after they are set that tey truly are correct? Do I just need some refresh? I have use something like for now:

    true | openssl s_client -connect YOUR-DOMAIN.COM:995 | openssl x509 -noout -text | grep DNS:
    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov


    @Henri Pelkonen,

    >Would you recommend 1 serverwide certificate to secure multiple domains or every domain with own sertificate as my vps is with shared IP?

    I would use free Let's Encrypt certificates to secure my domains.

    >Is there a way to force certificates to domain and bypass the plesk certificate and check them after they are set that tey truly are correct?

    Make sure that SSL/TLS support is enabled and Let's Encrypt certificate is selected in Domains > example.com > Hosting Settings > Security

    Afterwards, use the following command to check which cert is used for a domain (where example.com is the domain name):

    # openssl s_client -showcerts -servername example.com -connect example.com:443

     

    0
    Comment actions Permalink
  • Avatar
    Alaa Mansour

    is it normal that when i request:
    openssl s_client -showcerts -connect mail.example.com:995

    i recieve my server certificate:
    s:/CN=my.server.com
    ???

    the first address is for a client, and they use my.server.com as an address for using IMAP and SMTP, not there domain name

    0
    Comment actions Permalink
  • Avatar
    Nikita Nikushkin

    Hello @Alaa Mansour,

    This report depends on a certificate selected for securing mail in Plesk:

    How to secure a Plesk mail server with an SSL certificate (Let's Encrypt / other certificate authorities)?

    You have selected a certificate issued for the server hostname for the "Certificate for securing mail" at the "Plesk > Tools & Settings > SSL/TLS certificates" page, thus, you receive the next output:

    # openssl s_client -showcerts -connect mail.example.com:995

    s:/CN=my.server.com

    If you select certificate issued for a website, e.g. example.com, for securing mail, the output will be the following:

    # openssl s_client -showcerts -connect mail.example.com:995

    s:/CN=www.example.com

    Keep in mind that an SSL certificate secures the entire mail server and all domains on it. Currently, it is not possible to secure domains in Plesk with a separate SSL certificate for the mail server

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request