• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Cannot connect to SMTP server on localhost using tls (or ssl)

Kroptokin

Regular Pleskian
Server operating system version
AlmaLinux 9.6 (Sage Margay)
Plesk version and microupdate number
Plesk Obsidian 18.0.70 Update #1 Web Host Edition
On local host I can connect to the SMTP server using basic authentication on port 25 but I cannot connect using tls or ssl. (I am trying to connect from code).

I have tried ports 465 and 587. (I cannot telnet to 587 but I can to 465).

I just get "Connection refused" from my client library.

I don't really know what I should be looking for. There is no SSL certificate for mail on the domain - but I don't think that matters. The server mail certificate is the default. The server web certificate is one for a domain - but that is for web access, not mail.

I don't really know what I should be looking at. AI is suggesting editing a posffix config file, but I would rather avoid that.
 
Is there any particular reason you're using localhost? Because instead you could also try to use the server host name to make an SMTP connection. Which by default is secured for SMTP connections.
 
Thanks @Kaspar - it does try to connect when I use the Plesk server hostname. But now, a message about 'incorrect certificate'. I tried on ports 468 and 587, So; it looks like progress but not there yet. Will keep trying, thanks for your input.
 
Actually, for what it's worth, connecting to localhost via port 25 is just as secure (if you are the administrator of the sever) as using a secured SMTP connection trough a domain/host name. It's an local connection, so there isn't much point in using SSL/TLS.
 
Back
Top