If you have csf firewall on the server please check its configuration for the parameter“SMTP_BLOCK”, the configuration file is “/etc/csf/csf.conf”
vim /etc/csf/csf.conf
If it is configured as like below
SMTP_BLOCK = “1″
It is enabled thereby it will block outgoing SMTP.
So change value 1 to 0
SMTP_BLOCK = “O”
And then check, the mail will sent through webmail successfully.