paul@0 | 1 | == Setup web administration frontend == |
paul@0 | 2 | |
paul@0 | 3 | First, set up /etc/kolab/session_vars.php. On a new installation, with kolabd |
paul@0 | 4 | bootstrapped the following commands should do it: |
paul@0 | 5 | |
paul@0 | 6 | sed -i -e "s@kolabserver.example.com@`grep '^fqdnhostname : ' \ |
paul@0 | 7 | /etc/kolab/kolab.conf | gawk '{ print $3 }'`@" /etc/kolab/session_vars.php |
paul@0 | 8 | sed -i -e "s@dc=example,dc=com@`grep '^base_dn : ' \ |
paul@0 | 9 | /etc/kolab/kolab.conf | gawk '{ print $3 }'`@" /etc/kolab/session_vars.php |
paul@0 | 10 | sed -i -e "s@PASSWORD@`grep '^php_pw : ' \ |
paul@0 | 11 | /etc/kolab/kolab.conf | gawk '{ print $3 }'`@" /etc/kolab/session_vars.php |
paul@0 | 12 | sed -i -e "s@cn=nobody,cn=internal,dc=example,dc=com@`grep '^php_dn : ' \ |
paul@0 | 13 | /etc/kolab/kolab.conf | gawk '{ print $3 }'`@" /etc/kolab/session_vars.php |
paul@0 | 14 | |
paul@0 | 15 | Then, to activate the web site, in order of preference, |
paul@0 | 16 | |
paul@0 | 17 | (a) If you have kolabd installed, that package's (SSL-enabled) |
paul@0 | 18 | Apache configuration includes |
paul@0 | 19 | /etc/kolab/kolab-webadmin-apache.conf by default. |
paul@0 | 20 | |
paul@0 | 21 | - or - |
paul@0 | 22 | |
paul@0 | 23 | (b) Set up an SSL virtual host and include |
paul@0 | 24 | /etc/kolab/kolab-webadmin-apache.conf there. |
paul@0 | 25 | |
paul@0 | 26 | - or - |
paul@0 | 27 | |
paul@0 | 28 | (c) Symlink /etc/kolab/kolab-webadmin-apache.conf to |
paul@0 | 29 | /etc/apache2/conf.d/kolab-webadmin. (This is obviously insecure, |
paul@0 | 30 | but good enough for testing.) |
paul@0 | 31 | |
paul@0 | 32 | Reload Apache afterwards in any case. |
paul@0 | 33 | |
paul@0 | 34 | /etc/init.d/apache2 reload |
paul@0 | 35 | |
paul@0 | 36 | == Configuration == |
paul@0 | 37 | |
paul@0 | 38 | * go to https://example.net/admin/ |
paul@0 | 39 | ** create an account |
paul@0 | 40 | ** create the mailing lists |
paul@0 | 41 | ** If you have an internet domain: |
paul@0 | 42 | *** set smarthost/relayhost |
paul@0 | 43 | *** [x] Accept Internet Mail |