Error cant connect to SMTP

Hi everyone

I installed phplist in a server (list.dzads.com) and try to configure the smtp server on another server (ovh vps) that s under (mailing.dzads.com) the smtp server is working fine (tesed the email account using thunderbird).

When i try to sen d test mail i got the erro message:
SMTP ERROR: Failed to connect to server: Connexion terminée par expiration du délai d’attente (110)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

My first question is: how to enable debug mode?

I tryed to add

define('VERBOSE', 1);
define('PHPMAILER_SMTP_DEBUG', 1);

But the only debug information i got is:

2016-03-17 13:19:23 SMTP ERROR: Failed to connect to server: Connexion terminée par expiration du délai d’attente (110)
2016-03-17 13:19:23 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

phplist v3.2.4

Am I doing something wrong?

Thanks.

The value for this is the level of debug. See https://phpmailer.github.io/PHPMailer/classes/PHPMailer.html#property_SMTPDebug

Hi duncanc,

Thanks for you answer,

I tryed define(‘PHPMAILER_SMTP_DEBUG’, 1); and 2, 3, 4 and even 5 but the debug result is always the same as i gave above!

is there some cache used on phplist?

After changing the config.php should i logout and login again to make change happen?

Thanks.

I’m not sure that you are looking at the right results. When you send a test message the debug output will be displayed at the top of the page.

But your error looks to be a connection problem, so there is something wrong with the smtp server or port values you have entered, or the port is blocked.

Hi

Yes there should be a mistake somewhere, but to solve that i need to have detailed debug information, what bugs me is in my search on google i found that the debug informations ars more detailled than that in some discussion but even if i do what described there i havent got those details in my case like all the communication between server,

thats why i ask here if i have mad something wrong?

The last debug information i got are those :

2016-03-20 08:52:22	Connection: opening to mailing.dzads.com:25, timeout=20, options=array (
               	                  )
2016-03-20 08:52:42	SMTP ERROR: Failed to connect to server: Connection timed out (110)
2016-03-20 08:52:42	SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
2016-03-20 08:52:42	Connection: opening to mailing.dzads.com:25, timeout=20, options=array (
               	                  )

Hi

I tryed another smtp (from hostgator) for test and it works and i got the debug information working too, i dont know whats is wrong with the ovh vps server!

I will dig more!