-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with TLS from one of the Server #1685
Comments
http://serverfault.com/questions/793260/what-does-tlsv1-alert-unknown-ca-mean/793290 Your client (i.e., the ec2 instance) is sending a client certificate which the server doesn’t like. Make sure that the client provides the right certificate in the proper way, and that the server honors the root CA which is the base for the client certificate chain. |
OpenSSL has been updated quite a few times lately (addressing vulnerabilities) and some SSL protocols and ciphers that were formerly widely tolerated aren't any longer, as we've updated our software. The only solution is doing what everyone else has done: update their software. Also, node 0.10 is deprecated upstream (by Node project). They don't support it and neither do we. Upgrade to at least Node 4. |
Yes, some days back we upgrade PHP and OpenSSL also got updated to newer version. From that day we are facing this issue. I will update node version to Node 6 and check! Thanks! |
That's arguably the strongest argument against running PHP and Node.js (or frankly, any two significant software stacks) on the same host. Virtualize that stuff. Put your PHP stack in one VM, your node.js stuff in another, etc. That way, when you upgrade PHP, it doesn't affect node.js, and vice versa. |
Hi haraka server details Haraka shows only below logs : leglevel LOGDEBUG [NOTICE] [CF9552DF-A13E-4EAF-9425-1CBDA74E733E] [core] connect ip=54.254.xxx.xxx port=51709 local_ip=:: local_port=587 Client logs show some unrecognised charaters, may be ssh terminal not able to rendered it.
Mailer Error: Language string failed to load: tls SMTP server error: K [root@infimart smtp]# PuTTYPuTTYPuTTY client server details Kindly suggest on this! |
Whatever your PHP script is doing - it's doing it wrong, simple as that. It sent a STARTTLS and then is treating the TLS negotiation as SMTP mode traffic, which it isn't, it's supposed to negotiate TLS and then go back into SMTP mode after negotiation. This isn't a Haraka problem... |
Okay.. i will check again! Can you please help me understand this log, In my First Post using same php script HARaka log shows as But now haraka log does not shows any specific log entry for running disconnect hooks, |
Huh - aside from the error you highlighted... Haraka disconnects the client forcibly due to the error. See http://serverfault.com/questions/660241/postfix-tls-error Test your Haraka TLS by running: openssl s_client -port 25 -starttls smtp If that works, it's the PHP end that is the problem. If it doesn't work, then you've got some other problem with the certificates you've installed. |
Hi , Tested Haraka TLS by running: openssl s_client -port 25 -starttls smtp [ajay.p@infimart ~]$ openssl s_client -host myhost.com -port 587 -starttls smtp verify return:1Certificate chain i:/C=IN/L=Bangalore/O=Solutions /CN=mailerServer certificate subject=/C=IN/L=Bangalore/O=Solutions /CN=mailer issuer=/C=IN/L=Bangalore/O=Solutions /CN=mailerNo client certificate CA names sent Server Temp Key: ECDH, prime256v1, 256 bitsSSL handshake has read 1787 bytes and written 408 bytesNew, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
250 STARTTLS Also tested mails are successfully going from different server with php5. Still trying to figure out for resolution. will post here if i get any success! Thanks a lot for guidance! |
system info
Expected behavior
No error in TLS plugin
Observed behavior
Plugin tls failed:
I am using phpmailer application to send mail from multiple different server. from one of the server mails are not going, getting below error at haraka.
connection error: Error: 139842931415008:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1259:SSL alert number 48
From other server there is no issue mails are delivering. Not able track where is the issue.
Kindly suggest!
clientlog
SMTP -> FROM SERVER: 250-host1.com Hello ec2-54-254-211-170.ap-southeast-1.host1.amazonaws.com [54.254.211.170], Haraka is at your service.
250-PIPELINING
250-8BITMIME
250-SIZE 26214400
250 STARTTLS
SMTP -> FROM SERVER:220 Go ahead.
SMTP -> FROM SERVER:
SMTP -> ERROR: RSET failed:
Language string failed to load: tls
Message was not sent
Mailer Error: Language string failed to load: tls
SMTP server error:
below is haraka log
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] hook=ehlo plugin=access function=any params="localhost.localdomain" retval=CONT msg=""
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running capabilities hooks
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running capabilities hook in auth/flat_file plugin
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [auth/flat_file] Auth disabled for insecure public connection
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] hook=capabilities plugin=auth/flat_file function=hook_capabilities params="" retval=CONT msg=""
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running capabilities hook in tls plugin
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] hook=capabilities plugin=tls function=tls_capabilities params="" retval=CONT msg=""
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running unrecognized_command hooks
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running unrecognized_command hook in auth/flat_file plugin
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] hook=unrecognized_command plugin=auth/flat_file function=hook_unrecognized_command params="STARTTLS" retval=CONT msg=""
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running unrecognized_command hook in tls plugin
[DEBUG] [-] [core] Upgrading to TLS
[DEBUG] [9AD66EB3-533E-4E9E-ADC0-458AB03418A0.1] [outbound] running send_email hooks
[DEBUG] [9AD66EB3-533E-4E9E-ADC0-458AB03418A0.1] [outbound] Sending mail: 1477311824083_2_14270_683.infimailer.com
[DEBUG] [9AD66EB3-533E-4E9E-ADC0-458AB03418A0.1] [outbound] running get_mx hooks
[INFO] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] client [54.254.211.1] connection error: Error: 139842931415008:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1259:SSL alert number 48
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running disconnect hooks
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] running disconnect hook in tls plugin
[DEBUG] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] hook=disconnect plugin=tls function=hook_disconnect params="" retval=CONT msg=""
[NOTICE] [CE8EA427-B5BA-499E-9FBB-1E77C50F161E] [core] disconnect ip=54.254.211.1 rdns="ec2-54-254-211-170.ap-southeast-1.compute.amazonaws.com" helo="localhost.localdomain" relay=N early=N esmtp=Y tls=N pipe=N errors=0 txns=0 rcpts=0/0/0 msgs=0/0/0 bytes=0 lr="" time=0.282
[INFO] [9AD66EB3-533E-4E9E-ADC0-458AB03418A0.1] [outbound] Attempting to deliver to: 182.18.174.10:25 (0) (0)
The text was updated successfully, but these errors were encountered: