Jump to content
  • 0

how to set up smtp


AlexK

Question

I try to set up mail, url /admin/settings/company/emails/mail/ :

smt.mydomain.tld

port: 465

smtp-user

pass

Afrter click "Test These Settings" I recieve error message:

Connection could not be established with host "ssl://smtp-domain:465": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

or if I try with port 587:

"Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed"

So, whats wrong and how do I configure it works?

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

What version of Blesta is this? Does the mail server have a valid SSL certificate? It may not.

Make sure the TCP egress ports are open at your firewall. If you have SSH access to your server, you can try to telnet to the mail server over the port to see if it responds.

telnet mail.server.com 587

Link to comment
Share on other sites

  • 0
9 hours ago, Paul said:

What version of Blesta is this? Does the mail server have a valid SSL certificate? It may not.

Make sure the TCP egress ports are open at your firewall. If you have SSH access to your server, you can try to telnet to the mail server over the port to see if it responds.

telnet mail.server.com 587

Blesta 5.9 - the last one. Server has SSL cert, sure. It self-signed, but valid. I can connect to the server with MUA and receive/send emails from my PC. But to do that if I configure the Mail-account for the first time I have to confirm the storing of SSL cert on PC first.

Telnet don't respond on 465 (because cannot connect through SSL I think) if I close connection I see in logs on server: An unexpected TLS packet was received

Telnet on 587 respond, I see HELO message from server.

If I try to send test mail from admin panel, as before, (url /admin/settings/company/emails/mail/) I see in logs on mail server:

TLS error on connection from HOST-WITH-BLESTA (gnutls_handshake): Decryption has failed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...