
This article is for technical users with a command line (Linux, macOS, or Windows with OpenSSL). The short answer: openssl s_client opens an encrypted connection to the server and lets you type the protocol commands by hand. That separates a server problem from a program problem: if it works by hand, the server, the port and the password are right, and the fault is in the program settings.
The replies you will see
| Protocol | It worked | It failed |
| IMAP (port 993) | The line ends in OK, after the tag you typed (a1, a2...). | NO (the server refused, the password for example) or BAD (the command is badly written). |
| POP3 (port 995) | +OK | -ERR, followed by the reason. |
| SMTP (port 465 or 587) | 2xx codes (220 greeting, 235 authenticated, 250 accepted) and 354 (go ahead and type the message). | 4xx temporary, 5xx final: 535 is a rejected password, 550 is a refused recipient or sender. |
IMAP by hand
|
|
|
|
|
POP3 by hand
|
|
|
SMTP by hand
|
|
|
|
| What you type stays on screen. The password shows in clear in the terminal window, and in SMTP it goes as base64, which is no encryption at all: anyone can decode it. Run these tests on your own computer, close the terminal afterwards, and never paste the output into a support ticket or a forum without removing the password and the AUTH line. |
| Without -quiet, s_client reads some letters as commands. A line starting with a capital R (such as RCPT TO) renegotiates the connection, and one starting with Q closes it. With -quiet that does not happen; alternatively, type the SMTP commands in lower case, which the protocol accepts. |
|
The test by hand works but your program still fails? Tell us the program, the port and the error message, without the password. Open a support ticket |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from 5.940,00 Kz/mo (3-year plan, with coupon) See plans |











