Archive for the Email Issues Category

How to enable port 26 for Postfix on Plesk

Sometimes it happens that port 25 is blocked by your ISP and you need port 26 to be enabled on the server for mails.

Follow the below steps to enable port 26 on your linux server with Postfix MTA(Mail Transfer Agent) :

Open the /etc/postfix/ file

[email protected][#] vi /etc/postfix/

and then search for the line :

smtp inet n – n – – smtpd

and this line below the above one

26 inet n – n – – smtpd

Save and Quit (wq!)

And finally restart the Postfix service on the Server.

[email protected][#] /etc/init.d/postfix restart

You can test Postfix by connecting on the new port number. Use the terminal command telnet localhost 26 to test your new port number.

Note : Also you need to make sure that the Port 26 is opened in the Server Firewall.

That’s all you are done.

A fatal error has occurred DB Error: connect failed

A fatal error has occurred
DB Error: connect failed
Details have been logged for the administrator

If you are getting the above error while logging in the Wemail using horde , it means that there is problem with the horde database on the server and you can easily fix this by running the below command on the server as a root user.

[email protected][#] /usr/local/cpanel/bin/update-horde –force

The above command will fix the database for horde by updating the current database.

That’s all you are done.

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

Search for the line :

$rcmail_config[‘smtp_port’] = 25;

and change it to

$rcmail_config[‘smtp_port’] = 26;

That’s all you are done.