Answer the question
In order to leave comments, you need to log in
How to solve SMTP ERROR: Failed to connect to server: Connection refused (111)?
There are 3 servers.
1 mailwizz -web program for sending letters
2 mailwizz -web program for sending letters
3 mail server
both mailwiz - according to the configuration, they seem to be identical
on the mail server port 587 is open, there are no restrictions on the mailwizz server, everything is fine
mailwizz, you are connecting to the mail server via smtp,
the mail server is managed by PMTA, certificates are configured - another mailwiz sends
a problem:
1 mailwizz - connects perfectly via 587 to the mail server and sends letters
2 mailwizz - does not want to, writes an error
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Connection: opening to m-spf.ru:587, timeout=30, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
Connection failed. Error #2: stream_socket_client(): unable to connect to postal.ru:587 (Connection refused) [/var/www/mailwizz/data/www/mailwizz.ru/apps/common/vendors/Composer/vendor/phpmailer/phpmailer/src/SMTP.php line 387]
SMTP ERROR: Failed to connect to server: Connection refused (111)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question