01.19.06
Horde3 and Imp4 HOWTO under Ubuntu/Debian
This post is a simple set of guidelines (a mini-HOWTO) on How to setup Horde3 and Imp4 Webmail. In fact, the official documentation lacks a few important things, so here are a few tricks.
First of all, install the horde3 and Imp4 packages (Ubuntu/Debian)
apt-get install horde3 imp4
It is then necessary to setup an Alias for Apache. If you’re using Apache2, add a file /etc/apache2/conf.d/horde3.conf containing
Alias /horde3 /usr/share/horde3
Also, allow Apache to write horde configuration files :
chown -R www-data:www-data /etc/horde
Or, if you prefer to use ACLs
setfacl -m “g:www-data:rwx” /etc/horde
setfacl -d -m “g:www-data:rwx” /etc/horde
setfacl -m “g:www-data:rwx” /etc/horde/*
setfacl -d -m “g:www-data:rwx” /etc/horde/*
setfacl -m “g:www-data:rw-” /etc/horde/*/*
and restart apache
/etc/init.d/apache2 restart
You can then browse http://server/horde3
Important parameters to change are (in Horde setup) :
- Horde URL (change it to /horde3)
- Enable Database Access. Do Not use MySQL Improved (4+), my attempts at using it failed. MySQL Standard runs fine however
- Enable Authentication. I recommend IMAP authentication (something like {localhost:143/imap/notls}. Do not forget the /notls, not specifying failed on my setup). Also make sure to add your username to the list of Administrators, otherwise, you won’t have access to horde/imp4 parameters. Using anything else than IMAP seeemed to fail on my setup
- Generate the configuration
Horde should now be setup. You now have to configure imp4
- generate a configuration using the horde administration panel
- modify the /etc/horde/imp4/servers.php file. Instruction are given inside the file concerning the syntax. If you run Courier-IMAP, and want Imp to automatically authenticate using horde credentials :
$servers[’imap’] = array(
‘name’ => ‘IMAP Server’,
’server’ => ‘localhost’,
‘hordeauth’ => true,
‘protocol’ => ‘imap/notls’,
‘port’ => 143,
‘folders’ => ‘INBOX.’,
‘namespace’ => ‘’,
‘maildomain’ => ‘domain.com’,
’smtphost’ => ‘localhost’,
’smtpport’ => 25,
‘realm’ => ‘’,
‘preferred’ => ‘’,
‘dotfiles’ => false,
‘hierarchies’ => array()
);
You should now have a working setup.. Good luck !
Jan Hagemejer said,
April 14, 2006 at 12:42 pm
I have installed horde on ubuntu breezy. It works but i get these everywhere:
Notice: Only variable references should be returned by reference in /usr/share/horde3/lib/Horde/Notification.php on line 98
Yves said,
May 17, 2006 at 7:56 am
@Jan Hagemejer
You have to change the debug_level in Horde Setup from E_ALL to E_ERROR.
Darren Holt said,
August 28, 2006 at 7:21 pm
Thanks heaps Sami, I struggled with the debian setup for a couple of days before I read this. The imap/notls fixed my woes, cheers!
One more thing to include, removing the exit(0) from /etc/horde/horde3/conf.php although this is already mentioned in the README.Debian.
Coko Tracy said,
November 16, 2006 at 8:36 am
On my Ubuntu Edgy, after installing apache2, Horde3 and IMP4, Im’not able to start horde after configuring apache2.conf
Here is the error I get:
Horde3 configuration disabled by default because the administration/install wizard gives the whole world too much access to the system. Read /usr/share/doc/horde3/README.Debian.gz on how to allow access.
Maski said,
November 20, 2006 at 7:27 pm
Coko: have you actually “Read /usr/share/doc/horde3/README.Debian.gz on how to allow access.”
Sami: I installed and configured horde3 but after generating the conf i cannot log into the horde system. I check the logs for the imap conection;
Nov 20 21:28:42 mail imapd: Connection, ip=[::ffff:127.0.0.1]
Nov 20 21:28:42 mail imapd: LOGIN, user=Maski, ip=[::ffff:127.0.0.1], protocol=IMAP
Nov 20 21:28:42 mail imapd: LOGOUT, user=Maski, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=38, sent=250, time=0
So its ok.. but i cant get into horde at http://localhost/horde3
Any ideas.. thanks
skoobi said,
November 21, 2006 at 12:21 am
Maski : are you sure that you
- Used the /notls option for the IMAP server
- do NOT use MySQL 4+ support, but plain MySQL ?
Is there anything in your horde logs ? Can you activate them ?
Maski said,
November 21, 2006 at 6:26 am
Skoobi:
Yes the /notls option is the one i have selected
But about MySQL are you saying I can only have MySQL 4 but i cant use MySQL 5 as the backend?
thanks
skoobi said,
November 21, 2006 at 7:54 am
Yes, you can use MySQL 5 as the backend. However, for some reason, the application seems to screw up if MySQL 4+ is selected. So, you can try selecting “MySQL” as the backend …
Maski said,
November 21, 2006 at 8:44 am
Skoobi:
Ok let me see, in the setup area, on the dabase tab you can select MySQL or MySQLi,.. i selected MySQL,.. but still the same, im gettin desperate!!
.
Do you by any chance have a conf.php I can have a look at? cause im really lost here… when i try to log in localhost/horde3, it keeps showing me the logging page again, its like a loop or something,.. the imap seem to be working fine,
Thanks
Maski said,
November 21, 2006 at 12:38 pm
Finally got it working!!! i think its a bug on the setup
Thanks! by the way, what authentication backend should i use if i want to add users into horde??
skoobi said,
November 22, 2006 at 1:14 am
Hi Maski,
I’m glad you actually got it to work
If you want to add users into horde, you can use the SQL authentication backend…. It’s available in the setup list..
Good luck,
Sami
Justin said,
December 12, 2006 at 2:00 pm
Hello all,
I’ve followed everthing to a “T”, and I get:
“Failed to import Horde configuration: Horde3 configuration disabled by default because the administration/install wizard gives the whole world too much access to the system. Read /usr/share/doc/horde3/README.Debian.gz on how to allow access.” Can someone help? Thanks
skoobi said,
December 12, 2006 at 11:33 pm
Hi justin.. This HOWTO was working for Ubuntu Hoary, so something must have changed in the meanwhile.. I suspect specific changes on the debian packages to completly disable the wizzard… What does README.Debian.gz actually say on that subject ?
cyberdoo said,
December 22, 2006 at 9:48 pm
‘To configure horde3 use the web configuration wizard. It is disabled
by default for security reasons. To enable it remove the exit (0) directive
in /etc/horde/horde3/conf.php file. To let the configuration wizard
write to the configuration files you have to change the owner
of the /etc/horde/horde3 dir and config files to be owned by www-data.’
However I was finally able to get it work after deleting all the lines after the
Erik-Widar said,
February 5, 2007 at 3:08 pm
Hello,
It appeared to be a bit tricky the horde, but nice… I must have fkd up while configuring so the program lost track of some essentials. I’d like to get started from the beginning again. Apt-get remove doesn’t do the trick. The evil .config lives on into the next apt-get install. Is there a spell to use that purges the horde for a fresh start?
skoobi said,
February 5, 2007 at 10:34 pm
sudo dpkg –purge horde3 && sudo dpkg –purge imp4 && rm -rf /etc/horde3 ?
wcteskey said,
February 12, 2007 at 9:30 am
Deleting lines after the ….
I would sure like to know what cyberdoo did to fix this
sillyagent said,
April 28, 2007 at 9:43 pm
Hi Maski,
After installing and generating the horde3 conf i cannot log into the horde system, same as you reported.
You claimed to have solved the problem but didn’t mention how you did so.
Could you please share your solution?
Thanks in advance
JLI said,
May 23, 2007 at 3:00 am
Hi,
Can anyone know how to deal with this error? I’ve already followed whole instructions above but it returns error message below.
“Horde3 configuration disabled by default because the administration/install wizard gives the whole world too much access to the system.”
Please help….
skoobi said,
May 23, 2007 at 3:30 am
Hi,
what are the permissiosn of /etc/horde ?
JLI said,
May 23, 2007 at 6:36 pm
I’ve already executed “chown -R www-data:www-data /etc/horde” so the permission set on that way.
skoobi said,
May 23, 2007 at 9:37 pm
yeah, but maybe you should tweak chmod, to make sure the directory is NOT readable and writable by “others”.
Are you using pure permissions or ACL permissions ?
Coko Tracy said,
May 26, 2007 at 11:44 am
Hello Maski,
Thanx a lot, I just edited /etc/horde/horde3/conf.php and the horde works perfectly!!
Cheers!
khayjake said,
May 29, 2007 at 1:24 pm
Hey guys,
This is for the people having the error:
“Failed to import Horde configuration: Horde3 configuration disabled by default because the administration/install wizard gives the whole world too much access to the system. Read /usr/share/doc/horde3/README.Debian.gz on how to allow access.”
You need to not only remove exit(0); but comment out the text above that. So just put a // before the echo statement at the top of the config.php
Example:
// echo “blahblahblah read the README.debian.gz that doesn’t tell you jack”
hehe…man, debian developers are great…but their documentation lacking in content to say the least. I’m all for the little guys trying to port themselves away from the Microsoft giant (booo to ms! unless ur finding new ways to screw with their kernel haha)
Khayjake
Debian Sid
Slackware 11.0
Fedora Core 6
HP-UX
AIX
martin said,
June 27, 2007 at 5:52 am
can you please post a fix to be able to login to horde as admin. (maski)
seem’s you have solved that, i’ve got the same problem (debian etch)
martin said,
June 27, 2007 at 5:57 am
already solved;
the path in /etc/horde/horde3/conf.php must be changed to value ‘/horde3′ (was ‘/horde’)
:)
cheers,
martin
david said,
November 3, 2007 at 10:23 pm
Hi, i have configured it so qmail handles logins, everything should be ok,in configureation — BUT — firstly the left from just dosen’t show anything - it used to show AUTH_IMP NOT INSTALLED, but now nothing, and also noone gets anything under the the top frame - just options, no mailbox no nothing - im stumped…
thanks
ben said,
November 7, 2007 at 7:29 am
Thanks for all your howto and comments. It’s richfull of information.
Reynier Matos Padilla said,
March 28, 2008 at 6:19 am
Good tutorial!!! I can setup horde3 now.
Thanks!!!!
;)
bastion said,
June 25, 2008 at 11:54 am
A note to others under debian.
uw-imapd doesn’t seem to work well with horde3/imp4. (or so the pkg. main. say)
A quick change over to dovecot fixed the problem with authentication for mail and everything works perfect now!