cPanel's webmail requires that IMAP be enabled

Astral God

Well-Known Member
Sep 27, 2010
180
0
66
127.0.0.1
cPanel Access Level
Root Administrator
Hi.

On "Mailserver Configuration", we have the follow note:

It should be noted that cPanel's webmail requires that IMAP be enabled
Does this mean tha ti have to maintain IMAP, IMAPS and POPS or can i keep only IMAPS and POPS (secured versions only) ?

Thanks.
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
Interesting question. Looking at the sources under /usr/local/cpanel/base/3rdparty/ the applications themselves certainly seem to have defaults of localhost and port 143

The disable plaintext auth also has the following

Setting this to 'no' is preferable to disabling IMAP in the 'Protocols Enabled' section since it will force remote users to use encryption while still allowing webmail to function correctly.
Implying that webmail does indeed need IMAP, per the note
 
Last edited:

Eric

Well-Known Member
Nov 25, 2007
753
12
143
Texas
cPanel Access Level
Root Administrator
Twitter
Sure

First run /scripts/makecpphp you're going to need some SSL in your PHP Kool-Aid.

For SquirrelMail

Code:
/usr/local/cpanel/base/3rdparty/squirrelmail/configure

Option 1, Option 2, Option A, Option 5, Change the port to 993, Option 7, Switch to YES, Save and Quit
I will research the others and update.

Thanks!
 

EWD

Well-Known Member
PartnerNOC
Aug 19, 2003
165
0
166
NY
Sure

First run /scripts/makecpphp you're going to need some SSL in your PHP Kool-Aid.

For SquirrelMail

Code:
/usr/local/cpanel/base/3rdparty/squirrelmail/configure

Option 1, Option 2, Option A, Option 5, Change the port to 993, Option 7, Switch to YES, Save and Quit
I will research the others and update.

Thanks!

Awesome thank you Eric :)
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
Houston, TX
cPanel Access Level
Root Administrator
For Horde:

Edit /usr/local/cpanel/base/horde/imp/config/servers.php and change the port and protocol values as described here:

Wiki :: FAQ/Admin/Prerequisites

For Roundcube:

Edit /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php, and edit the following line:

Code:
$rcmail_config['default_host'] = 'localhost';
This is explained here:

Howto_Config – Roundcube Webmail

Note that edits to the SquirrelMail, Roundcube and Horde configuration files can be overwritten when cPanel updates. To work around this, once you get everything working as you want, copy the files you have edited to another location, and create a /scripts/postupcp script that will copy the files back to their original locations. That way your custom edited files will still be present after each cPanel update.
 

EWD

Well-Known Member
PartnerNOC
Aug 19, 2003
165
0
166
NY
Excellent!
Thank you so much Jared
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
For the /scripts/postupcp script in case you have any trouble, here's how you could do that part:

Code:
cp /usr/local/cpanel/base/horde/imp/config/servers.php  /root/servers.php
cp /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php /root/main.inc.php
Code:
touch /scripts/postupcp
chmod +x /scripts/postupcp
After that, run the following to place the copy commands into that script:

Code:
echo -e '#!/bin/bash\ncp /root/servers.php /usr/local/cpanel/base/horde/imp/config/servers.php\ncp /root/main.inc.php /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php' > /scripts/postupcp
Thanks!