|
Fri Nov 21 10:45:53 GMT 2008 | home | dvd_avi | exim | links | mac | other | proxy | running | services | webmail | |
| RHEL4_custom_dvd basic_commands encryption error imp_webmail_install ipcop kickstart lazy_website linux_config network_logins organisations password_generator smbpasswd_html |
IMP Installation and Configuration
1. Introduction
2. Prerequisites 3. Configuring Apache 3.1 Configure PHP
4. Configuring Horde3.2 Configure the VirtualHost 3.3 Create the directories 4.1 Download and Install Horde
5. Configuring IMP4.2 Download and Install Pear 4.3 Configure mysql 4.4 Configure Horder config files 4.5 Test Horde 5.1 Download and Install IMP
6. Configuring Turba5.2 Configure Horde for IMP 5.3 Configure IMP config files 5.4 Test IMP 6.1 Download and Install Turba
7. Configuring Passwd6.2 Configure Horde for Turba 6.3 Configure MySQL for
Turba 7.1 Download and Install poppassd-ceti
8. Troubleshooting/Notes7.2 Download and Install Passwd 7.3 Configure Horde for Passwd 7.4 Configure IMP for Passwd 7.5 Test Passwd 9. Links 10. About In this document we describe step by step
instructions on how to configure IMP 3.1 from www.horde.org in a Linux
box running RedHat
Linux 7.3
This guide may help you configure a basic installation of IMP so you can later tweak IMP to your specific requirement. We use the .tar.gz instalation method. After reading this guide you should be able to have up and running: Horde, IMP, Turba, poppassd and the Passwd module for Horde. We will use a sample Linux server with this caracteristics:
Servers used:
Modules Used:
Many file will have to be edited in Horde, and to indicate which file should be edited, we will use a table like this: File: here will be the path of the
file
Content:
here will be the lines that you should edit/add in this file 2. Prerequisites In order to follow this instructions, you
need to
have RedHat
Linux 7.3 and this RPM installed:
3. Configuring Apache The installation directory will be:
4.
Configuring Horde/var/www/html/mail/ 3.1 Configure PHP First, configure php in /etc/php.ini. This lines should be
configured: /etc/php.ini
file_uploads = On
short_open_tag = On extension=imap.so extension=ldap.so extension=mysql.so 3.2 Configure the VirtualHost /etc/httpd/conf/httpd.conf
# add this lines
NameVirtualHost 192.168.1.1:80 NameVirtualHost 192.168.1.2:80 ServerAdmin
webmaster@example.com
3.3 Create the directories Create all the necesary directories: # mkdir -p /var/www/html/mail/horde/imp/ # mkdir -p /var/log/httpd/mail/ http://mail.example.com/ Once Apache is setup, we need to configure
Horde.
4.1 Download and Install Horde: # cd /tmp # wget -c --passive-ftp ftp://ftp.horde.org/pub/horde/tarballs/horde-2.1.tar.gz # tar xzf horde-2.1.tar.gz -C /var/www/html/mail # mv pear pear.4.1.2.redhat
Test to see if you can connect to the database: # for foo in *.dist; do cp -v $foo `basename $foo .dist`; done horde/config/horde.php
// Optional. RedHat's
7.3 PHP does have
zlib support
$conf['compress_pages'] = true; // use IMAP to authenticate users $conf['auth']['driver'] = 'imap'; $conf['auth']['params']['dsn'] = '{localhost/imap:143}INBOX'; $conf['prefs']['params']['database'] = 'horde'; 4.4.2 /etc/mail/trusted-users Add the user 'apache' to the list of trusted users to sendmail. This will allow the local user apache to send emails as other users: /etc/mail/trusted-users
apache
4.4.3 /horde/config/lang.php Configure the default language for Horde horde/config/lang.php
// look down for the list of aliases
$nls['defaults']['language'] = 'en_US'; //$nls['defaults']['language'] = 'es_ES'; 4.5 Test Horde Test the initial configuration of horde by browsing: 5.1 Download and
Install IMP:
6.
Configuring Turba# cd /tmp # wget -c --passive-ftp ftp://ftp.horde.org/pub/imp/tarballs/imp-3.1.tar.gz # tar xzf imp-3.1.tar.gz -C /var/www/html/mail/horde # cd /var/www/html/mail/horde # mv imp-3.1/* imp/ # rmdir imp-3.1
horde/config/registry.php
// uncoment the folowing
$this->registry['auth']['login'] = 'imp'; $this->registry['auth']['logout'] = 'imp'; $this->applications['horde']['webroot'] . '/imp', 'show' => true 5.3 Configure IMP config files Go to: # cd horde/imp/config and make a copy of all the default config files: # for foo in *.dist; do cp -v $foo `basename $foo .dist`; done horde/imp/config/servers.php
// edit this lines
$servers['imap'] = array( 'name' => 'IMAP Server', 'server' => 'localhost', 'namespace' => '', 'preferred' => 'true' 5.3.2 /horde/imp/config/pref.php Optional, edit this file for better customization horde/imp/config/prefs.php
// user language
// look at /horde/config/lang.php for language aliases $_prefs['language'] = array( 'type' => 'select', $_prefs['mailbox'] = array( 'type' => 'implicit' 'locked' => true, ); 'shared' => true, $_prefs['trash_folder'] = array( 'type' => 'implicit' 5.4 Test IMP Now is time to test IMP, browse to: http://mail.example.com/horde/imp/test.php and login with a valid username/passwd. Try sending and email to another server and to yourself. If you have any troubles, look at the troubleshooting guide
before
continuing. Now we have up and running Horde and IMP and
we
need a contact manager, alias, Address Book.
7.
Configuring Passwd6.1 Download and Install Turba # cd /tmp # for foo in *.dist; do cp -v $foo `basename $foo .dist`; done horde/config/registry.php
// uncoment this
$this->applications['turba'] = array( 'fileroot' => dirname(__FILE__) . '/../turba', 'name' => _("Addressbook"), 6.2.2 /horde/imp/config/conf.php Configure in IMP an icon for Turba horde/imp/config/conf.php
$conf['menu']['apps'] =
array('turba');
6.2.3 /horde/turba/config/conf.php Configure in Turba an icon for IMP horde/turba/config/conf.php
$conf['menu']['apps'] =
array('imp');
6.2.4 /horde/turba/config/prefs.php horde/turba/config/prefs.php
// user language
// set the same default language as Horde and IMP $_prefs['language'] = array( 'value' => 'en_US', 'locked' => false, ); 6.2.5 /horde/turba/config/sources.php Configure Turba to use MySQL to store all the contact data horde/turba/config/sources.php
// complete this part of the config
with
the data
// of the database as in /horde/config/horde.php // Also config the title to a know name in your locale $cfgSources['localsql'] = array( 'title' => 'My Addressbook', 'hostspec' => 'localhost', 'table' => 'turba_objects' 6.3 Configure MySQL for Turba Now create the table in MySQL that Turba will use: # cd /horde/turba/scripts/drivers/ http://mail.example.com/horde/ Now that we have configured Horde with IMP
and
Turba, we need to provide our users with a method to change their
password via Horde. We will use the Passwd module from the Sork Project
for this.
8.
Troubleshooting/Notes7.1 Download and Install poppassd-ceti you can also install it after manually compiling the source
code: /etc/xinetd.d/poppassd
# default: off
# description: The POPPASSD service allows remote users
to change their socket_type = stream wait
= no user
= root server = /usr/sbin/poppassd #only_from = localhost log_on_success += USERID log_on_failure += USERID } 7.1.3 Enable the poppassd service After installation(via rpm or .tar.gz), enable the poppassd service: # ntsysv # service xinetd restart 7.2 Download and Install Passwd Now, we need to install the Passwd module from the Sork project: # cd /tmp # wget -c
--passive-ftp ftp://ftp.horde.org/pubb/passwd/tarballs/passwd-2.1.tar.gz # for foo in *.dist; do cp -v $foo `basename $foo .dist`; done horde/passwd/config/conf.php
$conf['server']['driver'] =
'poppassd';
$conf['server']['params']['default'] = array( 'host' => 'localhost', 'port' => 106 7.3 Configure Horde for Passwd Edit Horde config files to support the Passwd module: horde/config/registry.php
$this->applications['passwd'] =
array(
'fileroot' => dirname(__FILE__) . '/../passwd', 'webroot' => $this->applications['horde']['webroot'] . '/passwd', 'icon' => $this->applications['horde']['webroot'] .
'/passwd/graphics/lock.gif', ); 7.4 Configure IMP for Passwd Configure an icon for Passwd in IMP horde/imp/config/conf.php
$conf['menu']['apps'] =
array('turba',
'passwd');
7.5 Test Passwd Login into Passwd from Horde: http://mail.example.com/horde/passwd/ and change your password. Here you can find solutions to common
problems
9. Links[Still to come, keep those feedback comming]
Here are the links to all software used in
this
document
10. About This is my 0.02$ to the IMP project. Thanks
to the
Horde Team for this excelent Work!
Please feel free to send me comments and corrections. Thanks to all the people who contributed or visited this page:
15-feb-2003 |
| home | file_sharing | files | unix_web_gui |