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/ |
system-config-network-tui
NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=yourhostname.yourdomain.com
nameserver 208.67.222.222 nameserver 208.67.220.220
# 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
service network restart
init 6
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
service sendmail stop chkconfig sendmail off system-switch-mail (select postfix)
postconf -e 'home_mailbox = Maildir/'
# to allow the creation of mail subfolders mail_location = maildir:~/Maildir namespace private { separator = / prefix = "" inbox = yes } # Enable IMAP protocol protocols = imap
http://fedorasolved.org/server-solutions/postfix-mail-server |
service httpd restart chkconfig httpd on service postfix restart chkconfig postfix on service dovecot restart chkconfig dovecot on service mysqld restart chkconfig mysqld on
/usr/bin/mysqladmin -u root password 'new-password'
http://www.horde.org/download/app/?app=webmail |
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/scripts/ ./setup.php
If asked, choose /horde.
Press 1; choose mysql; Persistent connection 0; Username horde; Choose a password for mysql-user horde; Unix sockets; Locatio null; DB name horde;
Press 3; specify an existing IMAP user to have horde administration permissions (i.e. your current linux user)
Do not execute option 2 (database creation). It's best to create the databases by the groupware script, because it sets up db permissions and horde user (while step 2 doesn't).
-- IMPORTANT: Change this password! PASSWORD('passwordformysql-userhorde')
Save the file and exit.
Run the script into mysql:
cd /var/www/html/horde/scripts/sql mysql --user=root --password=mysqlrootpassword < groupware.mysql.sql
# # Horde # Alias /horde /var/www/html/horde <Directory /var/www/html/horde> # Uncomment the following 3 lines to make Horde locally accessible only #Order Deny,Allow #Deny from all #Allow from 127.0.0.1 Options +FollowSymLinks # horde.org's recommended PHP settings: php_admin_flag safe_mode off php_admin_flag magic_quotes_runtime off php_flag session.use_trans_sid off php_flag session.auto_start off php_admin_flag file_uploads on # Optional - required for weather block in Horde to function php_admin_flag allow_url_fopen on # If horde dies while trying to handle large email file attachments, # you are probably hitting PHP's memory limit. Raise that limit here, # but use caution # Set to your preference - memory_limit should be at least 32M # and be greater than the value set for post_max_size php_value memory_limit 32M php_value post_max_size 20M php_value upload_max_filesize 10M # /usr/share/pear is needed for PEAR. /var/www/html/horde is needed for Horde itself # TODO: Set an appropriate include_path, too. Might even increase speed a bit. php_admin_value open_basedir "/var/www/html/horde:/var/www/html/horde/config:/usr/share/pear:/tmp" php_admin_flag register_globals off </Directory> <Directory /var/www/html/horde/config> Order Deny,Allow Deny from all </Directory> # Deny access to files that are not served directly by the webserver <DirectoryMatch "^/var/www/html/horde/(.*/)?(config|lib|locale|po|scripts|templates)/(.*)?"> Order Deny,Allow Deny from all </DirectoryMatch> # Deny access to the test.php files except from localhost <LocationMatch "^/horde/(.*/)?test.php"> Order Deny,Allow Deny from all Allow from 127.0.0.1 </LocationMatch>
chmod 0644 -v /etc/httpd/conf.d/horde.conf
memory_limit = 32M
service httpd restart
http://localhost.localdomain/horde/test.php
chown apache:root -R /var/www/html/horde/config chown apache:root -R /var/www/html/horde/*/config chmod -R go-rwx /var/www/html/horde/config chmod -R go-rwx /var/www/html/horde/*/config
chown -R root:root /var/www/html/horde/scripts chown -R root:root /var/www/html/horde/*/scripts chmod -R go-rwx /var/www/html/horde/scripts chmod -R go-rwx /var/www/html/horde/*/scripts
chmod a-rwx /var/www/html/horde/test.php chmod a-rwx /var/www/html/horde/*/test.php
http://localhost.localdomain/horde
(PS: use full URL address, with host and domain name)
Fell free to change other options, as you like. The good thing about H G W E is it comes pretty much configured and ready for use!
service httpd restart