在cpanel php mailer中完成的配置无法连接到SMTP主机

mailing function works fine on my localhost but when i upload my code in server cpanel it is throwing me the following error

SMTP -> ERROR: Failed to connect to server: Connection refused (111)
SMTP Error: Could not connect to SMTP host.

if i telnet my domain server

220-xxxxx.xxxxxxxxxx.com ESMTP Exim 4.69 #1 Fri, 30 Mar 2012 00:00:13 -050
0
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.

As the script is not working on the server, check the firewall on the server.

SSH to server and telnet to mx record of the recipient domain.

telnet mail.receiver.com 25