LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-28-2011, 02:45 PM   #1
gorillus
Member
 
Registered: Jun 2011
Location: /home
Distribution: Slackware
Posts: 31

Rep: Reputation: 16
Question suddenly ca-cert isn't trusted anymore - msmtp problem?


Some days ago I was able to send mails with mutt/msmtp, but today I got (with msmtp -d):

Code:
msmtp: TLS certificate verification failed: the certificate is not trusted
msmtp: could not send mail (account arcor from /home/xxx/.msmtprc)
ignoring system configuration file /etc/msmtprc: Datei oder Verzeichnis nicht gefunden
loaded user configuration file /home/xxx/.msmtprc
using account arcor from /home/xxx/.msmtprc
host                  = mail.arcor.de
port                  = 25
timeout               = off
protocol              = smtp
domain                = localhost
auth                  = choose
user                  = xxx
password              = *
ntlmdomain            = (not set)
tls                   = on
tls_starttls          = on
tls_trust_file        = /etc/ssl/certs/ca-certificates.crt
tls_crl_file          = (not set)
tls_fingerprint       = (not set)
tls_key_file          = (not set)
tls_cert_file         = (not set)
tls_certcheck         = on
tls_force_sslv3       = on
tls_min_dh_prime_bits = (not set)
tls_priorities        = (not set)
auto_from             = off
maildomain            = (not set)
from                  = xxx@arcor.de
dsn_notify            = (not set)
dsn_return            = (not set)
keepbcc               = off
logfile               = /home/xxx/.msmtp.log
syslog                = (not set)
reading recipients from the command line
<-- 220 mail-in-11.arcor-online.net ESMTP arcor.de Mailservices usermail^M
--> EHLO localhost^M
<-- 250-mail-in-11.arcor-online.net^M
<-- 250-PIPELINING^M
<-- 250-SIZE 48000000^M
<-- 250-ETRN^M
<-- 250-STARTTLS^M
<-- 250-AUTH PLAIN LOGIN^M
<-- 250-AUTH=PLAIN LOGIN^M
<-- 250-ENHANCEDSTATUSCODES^M
<-- 250-8BITMIME^M
Ausgabe des Auslieferungs-Prozesses (96%)                                                   
Fehler 69 beim Versand der Nachricht (Service unavailable.).
I use Slackware 13.37 and didn't changed anything since the last e-mail...

my .msmtprc:

Code:
  # Set default values for all following accounts.
     defaults
     tls_trust_file /etc/ssl/certs/ca-certificates.crt
     tls on
     logfile ~/.msmtp.log
     
     # Arcor
     account arcor 
     host mail.arcor.de
     from xxx@arcor.de
     auth on
     user xxx 
     password *******
     
    

     # Set a default account
     account default : arcor
Code:
msmtp --serverinfo --host=mail.arcor.com --tls=on --tls-certcheck=off
tells me:

Code:
msmtp --serverinfo --host=mail.arcor.de --tls=on --tls-certcheck=off
SMTP server at mail.arcor.de (mail.arcor-online.net [151.189.21.116]), port 25:
    mail-in-11.arcor-online.net ESMTP arcor.de Mailservices usermail
TLS certificate information:
    Owner:
        Common Name: mail.arcor.de
        Organization: Vodafone D2 GmbH
        Locality: Duesseldorf
        State or Province: NRW
        Country: DE
    Issuer:
        Common Name: Thawte SSL CA
        Organization: Thawte, Inc.
        Country: US
    Validity:
        Activation time: Mo 26 Sep 2011 02:00:00 CEST
        Expiration time: Sa 26 Sep 2015 01:59:59 CEST
    Fingerprints:
        SHA1: 97:13:7B:28:89:1C:66:57:3B:A9:DB:4C:CF:1B:B1:1C:8E:09:D5:A5
        MD5:  0F:D7:FE:C0:B9:43:CE:FF:A6:DB:C2:80:6B:34:F3:AB
Capabilities:
    SIZE 48000000:
        Maximum message size is 48000000 bytes = 45,78 MiB
    PIPELINING:
        Support for command grouping for faster transmission
    ETRN:
        Support for RMQS (Remote Message Queue Starting)
    DSN:
        Support for Delivery Status Notifications
    STARTTLS:
        Support for TLS encryption via the STARTTLS command
    AUTH:
        Supported authentication methods:
        PLAIN LOGIN
Any help? (Could it be that ca-certificates is not up to date?)
 
Old 09-29-2011, 03:52 AM   #2
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 365

Rep: Reputation: 202Reputation: 202Reputation: 202
Could you run msmtp with LANG=C?
Code:
$ LANG=C msmtp -d
It's hard to understand error messages when one doesn't speak German.

I also doubt this is the problem with certificate, as I was able to connect to this SMTP server using openssl without any problems:
Code:
$ openssl s_client -CAfile /etc/ssl/certs/ca-certificates.crt -connect mail.arcor.de:smtps
<skipped openssl output>
---
220 mail-in-14.arcor-online.net ESMTP arcor.de Mailservices usermail
quit
221 2.0.0 Bye
read:errno=0
On the other hand, the certificate on that server was issued quite recently...
Code:
    Validity:
        Activation time: Mo 26 Sep 2011 02:00:00 CEST
        Expiration time: Sa 26 Sep 2015 01:59:59 CEST
 
Old 09-29-2011, 09:29 AM   #3
Wim2
LQ Newbie
 
Registered: Sep 2011
Location: Berlin
Distribution: Debian
Posts: 1

Rep: Reputation: Disabled
Hi gorillus,
arcor got a new ca-certifcate on the 26 September 2011 (see the output of msmtp --serverinfo --host=mail.arcor.com --tls=on --tls-certcheck=off). New certificates for mail.arcor.de are available here: ftp://ftp.arcor.de/pub/certs/. You'll need the mail.arcor.de.crt file.

Then:
Compute the MD5 sum and store it in a file: md5sum mail.arcor.de.crt > arcor.md5
Check for validity with: md5sum -c arcor.md5
You should get: mail.arcor.de.crt: OK

Under Debian according to the documentation:
If you want to install local certificate authorities to be implicitly trusted, please put the certificate files as single files ending with “.crt“ into “/usr/local/share/ca-certificates” and re-run “update-ca-certificates”.

I presume there some similar mechanism under slackware to install a certificate.
Hope that helps.
Wim2.
 
1 members found this post helpful.
Old 09-29-2011, 10:47 AM   #4
gorillus
Member
 
Registered: Jun 2011
Location: /home
Distribution: Slackware
Posts: 31

Original Poster
Rep: Reputation: 16
Thank you both! The mail.arcor.de.cert worked :-D Sorry for the German language - The German parts are not that important, that's why I left them
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suddenly it wont work anymore... brownie_cookie Linux - Newbie 4 04-28-2011 02:55 AM
Sound isn't working anymore 0zMe Slackware 13 02-06-2010 02:25 PM
Slackware10.2 suddenly isn't able to connect to internet makinavaja Linux - Networking 6 05-06-2006 10:16 AM
codecs suddenly don't work anymore theonebeyond Linux - Software 14 07-30-2005 05:43 PM
Debian isn't starting anymore need help! Hi-Tak Debian 4 04-22-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration