Posts tagged How to change SMTP ports for Squirelmail

How to change SMTP ports for Horde,Squirelmail,Roundcube

Some times while accessing the Webmail we may encounter errors like :

Horde Failed to connect to localhost:25

In that case we can change the SMTP port from 25 to 26.

In-order to change the SMTP port follow the below steps :

For Horde :

[email protected][#] cd /usr/local/cpanel/base/horde/imp/config
[email protected][#] vi conf.php

Search for the line

‘smtphost’ => ‘localhost’,
‘smtpport’ => 25,

and change it to

‘smtphost’ => ‘localhost’,
‘smtpport’ => 26,

For Squirelmail

[email protected][#] cd /usr/local/cpanel/base/3rdparty/squirrelmail/config
[email protected][#] vi config.php

Search for the lines

$smtpServerAddress = ‘localhost’;
$smtpPort = 25;

and change it to

$smtpServerAddress = ‘localhost’;
$smtpPort = 26;

For Roundcube

[email protected][#] cd /usr/local/cpanel/base/3rdparty/roundcube/config
[email protected][#] vi main.inc.php


Search for the line :

$rcmail_config[‘smtp_port’] = 25;

and change it to

$rcmail_config[‘smtp_port’] = 26;

That’s all you are done.