I Can't send email from cPanel/ mailserver?

1,616 views
asked Apr 19, 2012 in Email by SaraSX (2,770 points)
Hi all

I have a problem sending emails from my mail-server or cPanel. I keep getting this  error message
ERROR:
Message not sent. Server replied:

Connection timed out
110 Can't open SMTP stream.

How can I fix this?
please help

2 Answers

0 like 0 dislike
answered Apr 19, 2012 by WebProX (12,200 points)
hi Sara,

Edit the following file, and change useSendmail to true, instead of false:

/usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php

Save this, and close it, but you must do the following so that cpanel doesn't change useSendmail back to false:

chattr +ai /usr/local/cpanel/base/3rdparty/squirrelmail/config/config.php
0 like 0 dislike
answered Apr 19, 2012 by tareq101 (4,880 points)
If you have:

SMTP_BLOCK = 1

then make sure

SMTP_ALLOWLOCAL is also be set to "1"
...