6.0.0-git
2019-11-11
Last Modified 2007-11-03 by Guest

Installing Horde Groupware Webmail Edition on CentOS 5

------- NOT READY YET!! DO NOT USE UNTIL IT'S COMPLETED!! -------

Horde Groupware Webmail Edition is a free, enterprise ready, browser based communication suite. Users can read, send and organize email messages and manage and share calendars, contacts, tasks and notes with the standards compliant components from the Horde Project. Horde Groupware Webmail Edition bundles the separately available applications IMP, Ingo, Kronolith, Turba, Nag and Mnemo.

http://www.horde.org/webmail/

Versions

  • CentOS 5.0 i386 (OS)
    • Horde Groupware Webmail Edition 1.0.3 (October 2 2007)
    • Apache (http server)
    • MySQL 5.0.22 (db server)
    • Postfix (mail server)
    • Dovecot (IMAP)

Installing prerequisites


yum install -y gettext httpd mysql mysql-server dovecot postfix system-switch-mail perl 

yum install -y php php-mysql php-xml php-imap php-mbstring php-mcrypt php-pecl-Fileinfo php-pecl-memcache php-pear-DB php-pear-File php-pear-Log php-pear-Mail-Mime php-pear-Auth-SASL php-pear-Date php-pear-HTTP-Request php-pear-Mail php-pear-Net-Sieve php-pear-Net-Socket php-pear-Net-SMTP

Set up your host name and address

  • Edit /etc/hosts to something like this, according to your system settings:


# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1         localhost.localdomain        localhost

192.168.0.100     yourhostname.yourdomain.com  yourhostname

::1               localhost6.localdomain6      localhost6

Configuring Postfix and Dovecot

  • Turn off sendmail


service sendmail stop

chkconfig sendmail off

system-switch-mail

(select postfix)

  • Configure postfix and dovecot to allow the creation of mail subfolders


postconf -e 'home_mailbox = Maildir/'

  • Edit /etc/dovecot.conf and add the following to the end of the file:


mail_location = maildir:~/Maildir

namespace private {

separator = /

prefix = ""

inbox = yes

}

  • Add the following to /etc/dovecot.conf to enable the IMAP protocol:


protocols = imap

  • To configure the rest of postfix, take a look at this nice tutorial:
http://fedorasolved.org/server-solutions/postfix-mail-server

Start services:


service httpd start

chkconfig httpd on

service postfix start

chkconfig postfix on

service dovecot start

chkconfig dovecot on

service mysqld start

chkconfig mysqld on

  • Configure mysqld root password:


/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h yourhostname.yordomain.com password 'new-password'

Download Horde G. W. Edition and extract

  • Get the latest stable version of Horde Groupware Webmail Edition:
http://www.horde.org/download/app/?app=webmail
  • Extract and rename files


tar zxf horde-webmail-1.0.3.tar.gz -C /var/www/html/

mv /var/www/html/horde-*/ /var/www/html/horde/

cd /var/www/html/horde/config

rm -rf hooks.php.dist

for d in *.dist; do d0=`basename $d .dist`; if [ ! -f "$d0" ]; then cp -p $d $d0; fi; done

Security configuration

  • For horde framework


chown root:apache -Rv /var/www/html/horde/

chmod 0770 -Rv /var/www/html/horde

chmod 0640 -v /var/www/html/horde/config/*.dist

chmod 0640 -v /var/www/html/horde/config/.htaccess

chmod go-rwx /var/www/html/horde/test.php

chown -R root:apache /var/www/html/horde/config

chmod -R 750 /var/www/html/horde/config

chown -R root:apache /var/www/html/horde/config/.htaccess

chmod -R 640 /var/www/html/horde/config/.htaccess

chown -R root:apache /var/www/html/horde/config/*.dist

chmod -R 640 /var/www/html/horde/config/*.dist

  • For IMP

...

Creating database

cd /var/www/html/horde/scripts/

./setup.php

Press 1; choose mysql; Persistent connection 0; Username horde; Choose a password for mysql user horde; Unix sockets; Locatio null; DB name horde;

Press 2; yes; root; root mysql password;

Press 3; specify an existing IMAP user to have horde administration permissions

... (Later I'll continue this howto)