UnixServerAdmin

Server Administration & Management

How to enable viewing HTML content in Horde

By default it is not possible for us to view the emails in HTML format using Horde webmail interface. All the html content will be displayed at the top of the page and will be requested to download. To enable the html display for horde webmail you need to modify /usr/local/cpanel/base/horde/imp/config/mime_drivers.php file.

Proceed with the following steps:-

# cd /usr/local/cpanel/base/horde/imp/config

Edit the file mime_drivers.php using your favorite editor.

# vim mime_drivers.php

Change the following line
=================================
$mime_drivers[‘imp’][‘plain’][‘inline’] = false;
=================================
To
=================================
$mime_drivers[‘imp’][‘plain’][‘inline’] = true;
=================================

Restart cPanel service:-

# /etc/init.d/cpanel restart

Advertisements

May 30, 2012 Posted by | cPanel, Mail | , , , | 1 Comment

Horde Failed to connect to localhost:25 error message

On Shared server as well  as on Dedicated server some time we are facing large connection issue to SMTP port 25 at that time mostly we disable SMTP port 25 and enable any other port for SMTP but after changing SMTP port mostly we receive following error message in Horde webmail.

There was an error sending your message: Failed to connect to localhost:25 [SMTP: Invalid response code received from server (code: 421, response: Too many concurrent SMTP connections; please try again later.)]

To resolve above error simply change SMTP port from 25 to new SMTP port  in following file.

[/usr/local/cpanel/base/horde/imp/config]# vim servers.php

And change following line

From
‘smtpport’ => 25,
To
‘smtpport’ => 26,

We have taken new port as 26 for example you can use any port as per your requirement.

Similar problem with “Squirrelmail” then refer following steps.

[/usr/local/cpanel/base/3rdparty/squirrelmail/config]# vim config_default.php

Change following line

From
$smtpPort = 25;
To
$smtpPort = 26;

Save file and exit and now open the webmail.

May 20, 2012 Posted by | cPanel, Mail | , | Leave a comment

How to enable html display for horde

You can enable the html display for horde by using following steps but please make sure that you have been logged in as root.

# vi /usr/local/cpanel/base/horde/imp/config/mime_drivers.php

Search for the line
—-
/**
* HTML driver settings
*/
$mime_drivers[‘imp’][‘html’][‘inline’] = false;
—–

and replace it with

——–
/**
* HTML driver settings
*/
$mime_drivers[‘imp’][‘html’][‘inline’] = true;
——–
Save the changes and restart the following services.

# service cpanel restart

# /scripts/restartsrv_courier

May 16, 2012 Posted by | cPanel, Mail | , , , | Leave a comment

Horde Session Issue

There is a very common  issue where Horde prevents access to webmail by repeatedly redirecting viewers to Language Selection screen. The following commands, executed as root, will solve these issues:

# /usr/local/cpanel/bin/checkperlmodules

# /scripts/fullhordereset

# myisamchk -r /var/lib/mysql/horde/horde_sessionhandler.MYI

If still you have problem then check the ownership for session directory present in /var/cpanel/userhomes/cpanelhorde directory.

# ll /var/cpanel/userhomes/cpanelhorde

drwx–x–x 4 cpanelhorde cpanelhorde 4096 Jun  5  2011 ./
drwx–x–x 7 root        root        4096 Dec 17 01:48 ../
drwxr-x— 2 cpanelhorde cpanelhorde 4096 Jun  5  2011 mail/
drwx—— 2 cpanelhorde cpanelhorde 4096 Jan 27 14:01 sessions/

Session directory should be cpanelhorde.cpanelhorde ownership recursively.

 

 

August 24, 2011 Posted by | MySQL | , | Leave a comment