btcpayserver icon indicating copy to clipboard operation
btcpayserver copied to clipboard

EMail Server Settings SMTP Port 587 SSL Not connecting

Open tmcphail67 opened this issue 3 years ago • 3 comments

Server and Store Email settings. I am receiving the error "A task was canceled" when testing my SMTP mail server settings using port 587 with ssl. When I set up port 25 without ssl the test email sends no porblem. I am seeing the following in the hmailserver logs:

"TCPIP" 9740 "2022-06-09 13:04:24.353" "TCP - 192.168.1.1 connected to 192.168.1.11:587." "TCPIP" 9740 "2022-06-09 13:04:33.979" "TCPConnection - TLS/SSL handshake failed. Session Id: 570, Remote IP: 192.168.1.1, Error code: 1, Message: stream truncated"

Capture

  • BTCPay Server Version: 1.5.4.0
  • Deployment Method: Ubuntu Docker
  • Browser: Firefox

Thank you!

tmcphail67 avatar Jun 09 '22 18:06 tmcphail67

Were you able to figure this one out, SMTP is something beyond our control, and in most cases it's your settings that aren't correct.

pavlenex avatar Jun 14 '22 09:06 pavlenex

Thanks for your response!

I have not figured it out. I have tried two different SMTP servers with the same result. It probably has something to do with the SSL/TLS configuration. One of the servers I used was set up for STARTTLS and the other I was able to set it to SSL/TLS or STARTTLS with the same result. With the second server it is connecting fine without encryption.

The thunderbird mail client is connecting on port 587 with the following connection parameters.

Screenshot 2022-06-14 150128

So without any guidance from you on what the BTCPay Server is looking for I don't have a clue what the issue is.

Thanks for your help!

tmcphail67 avatar Jun 14 '22 20:06 tmcphail67

Is this hosted in EC2 ? AWS Blocks mail ports. If this is not AWS, did you check the server firewall settings to allow those ports?

eugeneprateek avatar Jul 23 '22 09:07 eugeneprateek