Debian Etch
From ISPMan
- This page is currently under development by
- PedroAlgarvio
- This information maybe incomplete or wrong so please use this information at your own risk. Thank you.
- Feel free to make suggestions or edit this page.
Contents |
[edit] Introduction
First of all, setup the system as you like, ie, initial packages. However, this howto assumes you have a brand new Etch setup, not an already running and everything else configured system.
This howto is based on this howto.
[edit] Setup Sources
First we add derjohn's debian ispman repo to our `sources.list`:
vi /etc/apt/sources.list
And we add:
deb http://ispman.derjohn.de/ binary/ deb-src http://ispman.derjohn.de/ source/
Now update packages cache:
apt-get update
[edit] Install dependencies
Install ispman dependencies.
apt-get install slapd ldap-server ldap-utils bind9 webalizer monit cyrus-imapd-2.2 \ cyrus-clients-2.2 cyrus-admin-2.2 sasl2-bin libsasl2-modules postfix-ldap pop-before-smtp \ libpam-ldap libnss-ldap nscd patch pwgen rpl libapache2-mod-php4 libapache2-mod-suphp
[edit] Configure slapd
To the question asked about the admin password, set the password and don't forget it, you'll need it on `ispman.conf`.
[edit] Configure Postfix
When asked choose Internet Site.
When asked about Mail name, set it to your domain.tld.
You can later do the configuration with the command:
dpkg-reconfigure postfix
[edit] Configure libnss-ldap and libpam-ldap
When asked about the LDAP server Uniform Resource Identifier a good answer is:
ldap://127.0.0.1:389/
When asked about Distinguished name of the search base answer:
o=ispman
When asked about the LDAP version answer 3.
When asked about LDAP account for root answer:
uid=ispman,ou=admins,o=ispman
When asked about LDAP root account password answer the same one you did when setting up slapd.
When asked about Make local root Database admin, answer yes.
When asked about Does the LDAP database require login answer no.
Some questions will be doubled, answer the same values like above.
[edit] Install ISPMan Packages
Now we install the ispman debian packages and the pulled dependencies.
apt-get install ispman-agent ispman-doc ispman-lib ispman-web
When asked about authentication, answer yes.
[edit] Configuration
The ispman debian packages provide some scripts for configuration, so, let's run some of them(not all because we didn't install all dependencies).
cd /usr/share/doc/ispman-doc/config-services/ sh config-services.sh
Read what you're told and hit CTRL-C.
First setup the cyrus password:
passwd cyrus
The password you enter here will be used on ispman.conf
Now we setup ispman.conf:
vi /etc/ispman/ispman.conf
You specially need to configure:
$Config->{'ldapRootPass'} = 'secret';
Which is the pass you entered when setting up slapd.
$Config->{'imapAdminPass'} = 'secret';
Which is the pass you entered with the command passwd cyrus
[edit] Configure Apache
sh scripts/configure-apache2.sh
[edit] Configure Cyrus
sh scripts/configure-cyrus.sh
[edit] Configure Monit
sh scripts/configure-monit.sh
[edit] Configure Postfix
sh scripts/configure-postfix.sh
[edit] Configure Saslauthd
sh scripts/configure-saslauthd.sh
[edit] Configure Slapd
sh scripts/configure-slapd.sh
[edit] Configure libnss-ldap
sh scripts/configure-nsswitch.sh chmod +r /etc/libnss-ldap.conf
[edit] Configure Bind9
sh scripts/configure-bind9.sh
[edit] Configure libpam-ldap and libnss-ldap
sh scripts/configure-libnss-and-pam.sh
