curl / Mailing Lists / curl-library / Single Mail

curl-library

"curl: (56) Failure to receive data from the peer" when sending an e-mail using cURL 7.63

From: BPEvent via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 16 Jan 2019 08:54:27 GMT

Dear Ladies and Gentlemen, we send e-mail with cURL using a command line call of cURL. The command line looks like this: curl.exe smtps://ms11smtp.webland.ch:465 --verbose --insecure --ssl --mail-from <Sender> --mail-rcpt <Recipient list> --user "<Login>:<Password>" -T "<Mailbody>" If we use the current version cURL 7.63, we get the following error: curl: (56) Failure when receiving data from the peer Here is the log of the call: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 92.43.217.111... * TCP_NODELAY set * Connected to ms11smtp.webland.ch (92.43.217.111) port 465 (#0) } [5 bytes data] * TLSv1.3 (OUT), TLS handshake, Client hello (1): } [512 bytes data] * TLSv1.3 (IN), TLS handshake, Server hello (2): { [61 bytes data] * TLSv1.2 (IN), TLS handshake, Certificate (11): { [3798 bytes data] * TLSv1.2 (IN), TLS handshake, Server key exchange (12): { [333 bytes data] * TLSv1.2 (IN), TLS handshake, Server finished (14): { [4 bytes data] * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): } [70 bytes data] * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): } [1 bytes data] * TLSv1.2 (OUT), TLS handshake, Finished (20): } [16 bytes data] * TLSv1.2 (IN), TLS handshake, Finished (20): { [16 bytes data] * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * Server certificate: * subject: C=CH; ST=Basel-Landschaft; L=Muenchenstein; O=Webland AG; OU=IT; CN=*.webland.ch * start date: Aug 31 00:00:00 2018 GMT * expire date: Jun 29 12:00:00 2020 GMT * issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=Thawte RSA CA 2018 * SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway. { [5 bytes data] < 220-ms11.webland.ch ESMTP Webland Mail Server v. 11.4.5.; Tue, 15 Jan 2019 09:15:20 +0100 < 220-Webland Secure Mail Server < 220- < 220-All connections are logged! < 220 This server uses antivirus and antispam technology } [5 bytes data] > EHLO 7635E55A-C0ED-0340-ABC5-0B47124437EC.body { [5 bytes data] < 250-ms11.webland.ch Hello 7635E55A-C0ED-0340-ABC5-0B47124437EC.body [194.230.158.39], pleased to meet you. < 250-ENHANCEDSTATUSCODES < 250-SIZE 52428800 < 250-EXPN < 250-ETRN < 250-ATRN < 250-DSN < 250-CHECKPOINT < 250-8BITMIME < 250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI < 250 HELP } [5 bytes data] > AUTH GSSAPI { [5 bytes data] < 334 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 * Closing connection 0 } [5 bytes data] * TLSv1.2 (OUT), TLS alert, close notify (256): } [2 bytes data] curl: (56) Failure when receiving data from the peer If we use the cURL version 7.40 with the same call and e-mail data, the e-mail will be sent successfully. I have found no way or parameter with cURL 7.63 via command line to successfully send an e-mail via this provider. Does anyone have an idea what it is? Kind Regards Rainer Eisel

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html

Received on 2019-01-16