[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[msmtp-users] Issue with certificate



I'm having problems with msmtp accepting SSL certificate for my email provider.

$ msmtp --serverinfo --host=gator1860.hostgator.com --tls=on --tls-certcheck=off
SMTP server at gator1860.hostgator.com (gator1860.hostgator.com [50.97.97.38]), port 25:
    gator1860.hostgator.com ESMTP Exim 4.77 #2 Wed, 30 May 2012 11:57:39 -0500 
TLS certificate information:
    Owner:
        Common Name: *.hostgator.com
        Organizational unit: Domain Control Validated
    Issuer:
        Common Name: PositiveSSL CA 2
        Organization: COMODO CA Limited
        Locality: Salford
        State or Province: Greater Manchester
        Country: GB
    Validity:
        Activation time: Tue 29 May 2012 01:00:00 BST
        Expiration time: Tue 30 May 2017 00:59:59 BST
    Fingerprints:
        SHA1: 76:00:DF:3A:B4:AE:70:D9:D2:6D:8A:FE:5C:15:63:1A:F2:64:D0:AC
        MD5:  6F:FF:FB:B6:51:B1:F2:D3:2C:B4:26:34:AD:40:B2:7B
Capabilities:
    SIZE 52428800:
        Maximum message size is 52428800 bytes = 50.00 MiB
    PIPELINING:
        Support for command grouping for faster transmission
    STARTTLS:
        Support for TLS encryption via the STARTTLS command
    AUTH:
        Supported authentication methods:
        PLAIN LOGIN 


According to the above I need PositiveSSL CA 2 from Comodo which can be found here (second from the top):

https://support.comodo.com/index.php?_m=downloads&_a=view&parentcategoryid=4

I have downloaded it and added a line to msmtprc -

tls_trust_file   /usr/share/ca-certificates/PositiveSSLCA2.crt

But when I try to send an email it gives me an error:

msmtp: TLS certificate verification failed: the certificate hasn't got a known issuer

How can I fix that? Tnaks!