cURL / Mailing Lists / curl-library / Single Mail

curl-library

Using curl to send email (smtps)

From: Ben Greear <greearb_at_candelatech.com>
Date: Tue, 12 Jul 2011 16:24:36 -0700

I'm trying this command to send email and having no luck:

[root_at_lec2010-ath9k-1 l4logs]# curl -v -k -T ../foo-email.txt --mail-rcpt greearb_at_candelatech.com --url smtps://mail.candelatech.com --user tester
Enter host password for user 'tester':
* About to connect() to mail.candelatech.com port 465 (#0)
* Trying 208.74.158.172... % Total % Received % Xferd Average Speed Time Time Time Current
                                  Dload Upload Total Spent Left Speed
   0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to mail.candelatech.com (208.74.158.172) port 465 (#0)
* Initializing NSS with certpath: /etc/pki/nssdb
* warning: ignoring unsupported value (1) of ssl.verifyhost
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
   CApath: none
* Certificate is signed by an untrusted issuer: 'E=support_at_candelatech.com,CN=mail.candelatech.com,OU=Candela Technologies Inc.,O=Head Office,L=Ferndale,ST=WA,C=US'
* SSL certificate verify ok.
* NSS: client certificate not found (nickname not specified)
* SSL connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
* subject: E=support_at_candelatech.com,CN=mail.candelatech.com,OU=Candela Technologies Inc.,O=Head Office,L=Ferndale,ST=WA,C=US
* start date: Jul 12 22:57:37 2011 GMT
* expire date: Jul 11 22:57:37 2012 GMT
* common name: mail.candelatech.com
* issuer: E=support_at_candelatech.com,CN=mail.candelatech.com,OU=Candela Technologies Inc.,O=Head Office,L=Ferndale,ST=WA,C=US
< 220 ns3.lanforge.com ESMTP Sendmail 8.14.2/8.14.2; Tue, 12 Jul 2011 16:17:27 -0700
> EHLO foo-email.txt
< 250-ns3.lanforge.com Hello firewall.candelatech.com [70.89.124.249], pleased to meet you
< 250-ENHANCEDSTATUSCODES
< 250-PIPELINING
< 250-8BITMIME
< 250-SIZE
< 250-DSN
< 250-ETRN
< 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
< 250-DELIVERBY
< 250 HELP
> AUTH CRAM-MD5
< 334 PDE5Mzk5NzA1MDQuMTg4OTg3N0BuczMubGFuZm9yZ2UuY29tPg==
> dGVzdGVyIDAwYTJhOGFjOGQzNDdmNTk3YjY3NjVmYjJlNDRkM2U3
   0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< 535 5.7.0 authentication failed
* Authentication failed: 535
> QUIT
< 221 2.0.0 ns3.lanforge.com closing connection
* Closing connection #0

curl: (67) NSS: client certificate not found (nickname not specified)

I've double-checked that I can ssh in with the user/password, and
I can check email over imap with it. Other users can send email using
SSL/TLS in Thunderbird.

My mail server does use self-signed certs, in case that matters, but I
was thinking the -k would take care of that?

Any idea what I might be doing wrong?

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-13