• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Failed to connect to mailserver

LauPasq

New Pleskian
Hi,

I tried to access to my mail server via port 25 from my PC with a php script, and it always failed with answer "SMTP: Failed to connect socket"
My server is on Plesk 11.5 and uses postfix as mail server.
Nothing appears in the logs (no connection attempts).

When I try with telnet, there is a connection (appear in log file), but I do not succeed to authenticate.
Any SSL protection ?

How to proceed ?

my Php sript :
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}

Thanks a lot for any help
 
Back
Top