Now that we have basic imap available in ClearOS Version 6 - decided it was about time to install webmail. I love Squirrelmail, despite the comment from Peter :-) "Is there a good webmail client to suggest? Squirrelmail seems very dated"
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,39/func,view/id,43029/#43052
In fact, in early August this year, SquirrelMail was Nominated For SourceForge Project Of The Month and is very well supported.
This is a very basic HowTo and assumes the ability to use various commands from the CLI...
A pre-requisite is that you have the web-server and cyrus-imap installed, testing and running properly. If this is NOT the case - then fix and come back later... port 443 must be available for the webserver (httpd) to use
1) We need the dictionary if you do not have it
# yum install hunspell-en hunspell
2) Download and install the Squirrelmail rpm - use wget (might need to install with yum) or whatever method you chose...
found here - (thanks Nick for a better rpm)
http://fr2.rpmfind.net//linux/RPM/epel/6/x86_64/squirrelmail-1.4.22-2.el6.noarch.html
3) The Squirrelmail rpm installs a config file for apache - so you will need
to restart the webserver
# service httpd restart
4) Configure Squirrelmail - run the config program to do so
# /usr/share/squirrelmail/config/conf.pl
I changed the minimum to get going ie the Folder Defaults - to that as below
5) Try to login
I ignored the "short_open_tag=off" error
6) If that looks good then
and all your mail should be available to read and new messages created... it's that easy and simple :-)
Good Luck!
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,39/func,view/id,43029/#43052
In fact, in early August this year, SquirrelMail was Nominated For SourceForge Project Of The Month and is very well supported.
This is a very basic HowTo and assumes the ability to use various commands from the CLI...
A pre-requisite is that you have the web-server and cyrus-imap installed, testing and running properly. If this is NOT the case - then fix and come back later... port 443 must be available for the webserver (httpd) to use
1) We need the dictionary if you do not have it
# yum install hunspell-en hunspell
2) Download and install the Squirrelmail rpm - use wget (might need to install with yum) or whatever method you chose...
found here - (thanks Nick for a better rpm)
http://fr2.rpmfind.net//linux/RPM/epel/6/x86_64/squirrelmail-1.4.22-2.el6.noarch.html
3) The Squirrelmail rpm installs a config file for apache - so you will need
to restart the webserver
# service httpd restart
4) Configure Squirrelmail - run the config program to do so
# /usr/share/squirrelmail/config/conf.pl
I changed the minimum to get going ie the Folder Defaults - to that as below
Folder Defaults
1. Default Folder Prefix : INBOX/
2. Show Folder Prefix Option : false
3. Trash Folder : INBOX/Trash
4. Sent Folder : INBOX/Sent
5. Drafts Folder : INBOX/Drafts
6. By default, move to trash : true
7. By default, save sent messages : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : false
13. Show 'Contain Sub.' Option : true
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> q
5) Try to login
https://your_server_ip/webmail/src/configtest.php" target="_blank">https://your_server_ip/webmail/src/configtest.php
I ignored the "short_open_tag=off" error
6) If that looks good then
https://your_server_ip/webmail/
and all your mail should be available to read and new messages created... it's that easy and simple :-)
Good Luck!
Share this post:
Responses (10)
-
Accepted Answer
Tony,
Thanks. Are you aware you have linked to a PPC rpm? I used this one. I guess it does not matter as it is only webserver code?
I've managed to tar up /var/spool/imap and /var/lib/imap from 5.2 and untar it into 6.3. I had fun with trying to run the reconstruct command as the cyrus user and finally found the syntax. In /var/lib/imap run:
Squirrelmail can read these reconstructed mailboxes. I have an error in the POP and IMAP server which I am investigating and so far I've failed to send any e-mails.runuser - cyrus -s /bin/sh -c "/usr/lib/cyrus-imapd/reconstruct -r -f user/USERNAME"
-
Accepted Answer
Thanks Nick - updated my link.... as you say it's all php, but better to be consistent...
I transfer my mail using imapsync as I have 5.2 and 6.3 running on separate machines... the two machines are synced every four hours - the 5.2 machine is still the master.I initially tried zarafa while it was free as a beta, but it is too resource heavy - took way too much more cpu over a much longer time...
A simple "/usr/lib/cyrus-imapd/reconstruct -rf user/userid" works for me...
I could not send or receive emails with cyrus-imap initially because of the problems with quotas for existing users when cyrus imap was installed - new users created after were not a problem - see some discussion on this elsewhere... Previously used postfix to send system reports by hand editing main.cf even before cyrus-imap was installed, so knew the problem lie with cyrus... resolved by checking /etc/imapd.conf in 6.3 with what was configured in 5.2. (I run with no quotas on both). -
Accepted Answer
A few restarts later and playing round with the mail proxy settings (I am trying out on a VM on my own PC but it does not have bridged interfaces and its WAN is double natted .....) and I can send mail.
I initially used the reconstruct command like you but all the docs I found said to run as cyrus user or all the file permissions go wrong. These can be recusively reset. I did not test with before I reset the permissions - and then I found how to use the runuser command (from the init file) so I never checked if the basic command command was adequate.
I've downloaded the Roundcube rpm to give it a go but it needs a few dependencies to be sorted. I not sure if I want to go that way, although I used it in the CC4.3 days, as it also uses MySQL which is getting more system heavy. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Slightly late ... thank you Tony/Nick for the instructions.
If anyone is interested, I have a few new links for the downloads:
Could not find hunspell-en in any of ClearOS repo's, fetched from here
yum localinstall hunspell-en-0.20090216-7.1.el6.noarch.rpm
Squirrelmail rpm, fetched from here
BTW the change between: 1.4.22-3 and 1.4.22-2 is minor:
* Fri Sep 21 2012 Michal Hlavinka <mhlavink@redhat.com> - 1.4.22-3
- use original squirrelmail logo (#859311)
Added a minor configuration change to the squirrelmail configuration IMAP settings, changed server software from uw to cyrus:
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : localhost
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (cyrus)
B. Change Sendmail Config : /usr/sbin/sendmail
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> A
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : localhost
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
IMAP Settings
--------------
4. IMAP Server : localhost
5. IMAP Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : cyrus
9. Delimiter : /
B. Change Sendmail Config : /usr/sbin/sendmail
H. Hide IMAP Server Settings
R Return to Main Menu
C Turn color off
S Save data
Q Quit -
Accepted Answer
As Squirrelmail is available from clearos-epel and the menus have changed slightly with a newer version, have made updated instructions available at :-
http://www.sraellis.tk/master.php?topic=squirrel_install -
Accepted Answer
See http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,40/func,view/id,66376/limit,10/limitstart,20/#66464
for instructions for adding the "Sieve" plugin to automatically send
certain emails by sender address or sender domain to Trash
or visit http://www.sraellis.tk/master.php?topic=squirrel_plugin
and http://squirrelmail.org/plugin_view.php?id=76
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »