Scalix 11 Installation on Debian Etch / Testing

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Scalix 11 Installation on Debian Etch / Testing

Postby christoph.lukas » Fri Dec 22, 2006 9:33 am

Hi,

I have successfully setup Scalix 11 on Debian Etch / Testing.

I have documented all the necessary installation steps on:

http://www.scalix.com/wiki/index.php?ti ... ebian_Etch

But before I put our system to production I would like to know if I did things the right way.

1) I had to do a:

Code: Select all

cd /var/opt/scalix/sx/tomcat/conf
ln -sf /opt/scalix-tomcat/conf/{catalina.policy,catalina.properties,context.xml,logging.properties,server-minimal.xml,web.xml} .

and a

Code: Select all

cd /var/opt/scalix/sx
ln -s /etc/opt/scalix/{caa,mobile,platform,res,sis,webmail} .

to get tomcat running. Is it correct to use symlinks or should these directories and files better be copied or would this better be fixed in a completely different way?

2) I also had to do a:

Code: Select all

echo "ProxyPass /caa ajp://$fqdn:8009/scalix-caa" >> /etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-caa.conf
echo "ProxyPass /res ajp://$fqdn:8009/scalix-res" >> /etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-res.conf

to get the webapps running as they seem to have urls like /caa configured somewhere. E.g. the sac login form is posted to the url /caa instead of /scalix-caa. Can this be configured somewhere?

Last question:

3) I tried to set up a server rule for the email address like this:

Code: Select all

sxconfig --set -t orniasys.name_part_1='"C" <l>' -t orniasys.domain_part_1="mydomain.tpl"

to get email addresses with only the lowercase surname. This does not seem so work. Is this an expected behaviour? Using 'l' for the generation rule for authid worked flawlessy.

Thanks for any hints,
Christoph

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Wed Jan 17, 2007 6:04 am

I have setup a Sles10 Vmware Image and installed scalix there to verify the steps above.

Step 1a seems to be correct.

Step 1b shoud be:

Code: Select all

cd /var/opt/scalix/sx
mv /etc/opt/scalix/{caa,mobile,platform,res,sis,webmail} .


Step 2 seems to be correct.

I have update the wiki page to reflect the changes.

Regards,
Christoph

cornernote

Postby cornernote » Sun Jan 21, 2007 3:02 am

Thanks for the great script. It made it pretty easy for me to get going, apart from a few hickups. I will post some issues I had and how to solve them.

I used netinst for etch and did not install any packages except SSH prior to running the install script.

Now I can do an install within about 2 hours. And only about 15 minutes of that time is me doing anything. I hope my few days of finding these issues helps some people getting started.

Perhaps these scriplets could be incuded in the Manual_Installation_Debian_Etch, or at least link to this forum post incase anyone is having similar issues.


[b:X]BEFORE INSTALL[/b:X]

1. Ensure you have a non-free source in [b:X]/etc/apt/sources.list[/b:X]. The netinst didnt seem to add any non-free sources for me, so I just added the word "non-free" at the end of the HTTP source. If you don't then you won't be able to download the sun-java5-jre package.
[code:X]deb http://YOURSOURCE/debian/debian/ etch main non-free
^^^^^^^^ - make sure you have this[/code:X]

2. Setup your interface in [b:X]/etc/network/interfaces[/b:X]. Pretty standard. I used a static IP of 192.168.1.100. Your interfaces file may vary, just use this a guide. The main point is to setup your interface before you install.
[code:X]#!/bin/bash

echo -n "Enter your IP Address: "; read address
echo -n "Enter your Gateway: "; read gateway
echo -n "Enter your Netmask: "; read netmask
echo -n "Enter your network: "; read network
echo -n "Enter your broadcast: "; read broadcast

cat << EOF > /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address $address
gateway $gateway
netmask $netmask
network $network
broadcast $broadcast
EOF
/etc/init.d/networking restart[/code:X]

3. If you leave the deafult 127.0.1.1 in [b:X]/etc/hosts[/b:X] then you will not be able to send emails through the webmail client. This is because sendmail does not accept connections on 127.0.1.1 port 25.
[code:X]#!/bin/bash

echo -n "Enter your IP Address: "; read address
ldomain=$(hostname -d)
host=$(hostname)
fqdn=$(hostname -f)

cat << EOF > /etc/hosts
127.0.0.1 localhost
$ip $fqdn $host
EOF[/code:X]


[b:X]AFTER INSTALL[/b:X]

4. If you do not change [b:X]/etc/opt/scalix-tomcat/connector/ajp/instance-{$host}.conf[/b:X] then you cannot see webmail or scalix-admin from a browser. Apparently it has something to do with the way the VirtualHost is setup. All this does is changes <VirtualHost {$fqdn}:80> to <VirtualHost *>. Also if your host name is not scalix then the include line would be wrong. This should fix it.
[code:X]#!/bin/bash

host=$(hostname)
cat << EOF > /etc/opt/scalix-tomcat/connector/ajp/instance-{$host}.conf
<VirtualHost *>
Include /etc/opt/scalix-tomcat/connector/ajp/app-{$host}.*.conf
</VirtualHost>
EOF[/code:X]

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Sun Jan 21, 2007 8:34 am

Hi,

thanks for your comments. I have incorporated your suggestions 1 and 3 into the wiki page.

The file /etc/opt/scalix-tomcat/connector/ajp/instance-{$host}.conf has been working out of the box on all my installations.

Regards,
Christoph

cornernote

Postby cornernote » Sun Jan 21, 2007 9:03 am

Hi Christoph,

Regarding step 4, I noticed when i called my mail node "mail" instead of "scalix" that the include line would read this:

Include /etc/opt/scalix-tomcat/connector/ajp/app-scalix.*.conf

But the files in /etc/opt/scalix-tomcat/connector/ajp/ would be named app-mail.*.conf.

So if you name your mail node scalix it works, otherwise it will break.

Not sure why changing the VirtualHost address from fqdn to * helped, but it made it work for me. It wouldn't even work when i accessed the site through the fqdn. In any case the info is here so if people have the issue they can search and find. :)

Thanks again for the initial script.


Best regards,
Brett

cornernote

Postby cornernote » Sun Jan 21, 2007 9:07 am

Oh, and while I remember...

When I was asked to enter a name for the primary mail node, I entered the FQDN. If you do this then it will break.

Perhaps the line could be changed to read:

Code: Select all

echo -n "What should the name of your primary mailnode be (no dots allowed - eg: mail or scalix)? "; read mnode


I know that looks dicky, but just something to hint to the user that they have to enter something like a hostname not a FQDN.


Brett

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Jan 22, 2007 4:24 am

Thanks for all your good work.:-)

I've done some more research and testing over the weekend and added some upgrades to my Debian/Manual Installation official Wiki page; this can be found at http://www.scalix.com/wiki/index.php?ti ... stallation

However, while doing so I found a couple of problems with our debian packages (Bugs 13840, 14491, 14495, 14500, 14504, 14505, 14524); all these can be worked around, however, the packages will need to be updated for a "clean" solution.

I hope that we'll be able to provide those packages soon, possibly with the Scalix 11.0.1 maintenance update scheduled for early February.

Until then, stay tuned - if you find any more issues with this, please feel free to ping me or log bugs in our bugtracking system at bugzilla.scalix.com

Florian.
Florian von Kurnatowski, Die Harder!

nenad
Posts: 36
Joined: Wed Feb 28, 2007 8:21 pm

Postby nenad » Tue Mar 27, 2007 6:00 pm

Hi,

I have problems installing SCALIX with this script.
Please help.

Code: Select all

Service Internet Mail Gateway set up

Updating conversion and language specific configuration files.
This may take some time, Please Wait ...

omrc : Scalix appears to be running.
If you wish to restart Scalix cleanly, run "omshut" or
kill the following processes, then run "omrc".

[OM 28655] Configuration record added

Fetching all entries from Directory  ... Please wait
Sorting Directory entries            ... Please wait
Building Directory Access Tables     ... Please wait
FREEBUSY directory created
Extracting local user information...
[OM 16954] Entry not in the Directory

FREEBUSY directory created and local user entries added

omconfux : Scalix config file was updated successfully.
omconfux : Scalix config file was updated successfully.
omadmidp: Unix IDs pool 60534..65533 successfully added

###########################################################################
#
# ompatchom: Scalix Initialization Complete
#
###########################################################################

ompatchom: Running patch-postinstall scripts ...
NOTE: The above output is also contained in the
      file /var/opt/scalix/sx/s/sys/install/log
The specified tag and value has been added or modified if present.

The specified tag and value has been added or modified if present.

sxconfig : [OM 7501] Usage:
    sxconfig --get [-n name] [-m mailnode] -t tag [-t tag ...]
    sxconfig --set [-n name] [-m mailnode] -t tag [-t tag ...]
    sxconfig --remove [-n name] [-m mailnode] -t tag [-t tag ...]
    sxconfig --help -t tag [-t tag ...]

[b]./installation: line 49: orniasys.domain_part_1=web-hosting.co.yu: command not found
omaddmn : [OM 5627] WARNING!!! Automatic internet address configuration
for users and pdls on this mailnode will not be possible, as a domain
has not been supplied.[/b]

omaddmn : Mailnode added as primary mailnode on machine
Scalix 11.0.2.17

Copyright (C) 2002-2007 Scalix Corporation.  All rights reserved.
Copyright (C) 2002 Hewlett-Packard Development Company, L.P. All rights reserved.
(c) Copyright Hewlett-Packard Company 1989-2001.  All rights reserved.
Portions (c) Copyright Raima(TM) Corporation 1984,1990.  All rights reserved.
Portions (c) Copyright 1991-1995 Regents of the University of Michigan.
             All rights reserved.
Portions (c) Copyright 1989-1994 Regents of the University of California.
             All rights reserved.
Portions (c) Copyright 1999 The MITRE Corporation, Keith Visco.
             All rights reserved.
Portions (c) Copyright 1998-1999 James Clark. All rights reserved.
Portions (c) Copyright 1998-1999 Zveno Pty Ltd, Steve Ball. All rights reserved.
Portions (c) Copyright 1994-1999 Australian National University, CSIRO.
             All rights reserved.
Portions (c) Copyright 1996-1999 Andrew G. Morgan. All rights reserved.
Portions (c) Copyright 1996,1998 Cristian Gafton, CRYPTOCard Inc.
Portions (c) Copyright 1994-1999 Sun Microsystems Inc, Scriptics Corporation.

The Logictran R2Net Converter is copyright (C) 2000, Logictran, Inc.  Portions
of the R2Net Converter are based in part on the work of the University of
Toronto.

                         RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.

                        Scalix Corporation
                        1400 Fashion Island Blvd.
                        Suite 602
                        San Mateo, CA 94404-2061
                        USA

Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).

Enabling 8 subsystem(s).
Directory Relay Server      Started
Notification Server         Started
Database Monitor            Started
SMTP Relay                  Started
Mime Browser Controller     Started
LDAP Daemon                 Started
IMAP Server Daemon          Started
Event Server                Started
[OM 10440] omrc : Service startup has been disabled.
Scalix services NOT started.

omaddu : The user was added successfully
omconfenu : Error Notification user correctly configured
The user's limits were modified successfully
omaddu : The user was added successfully
./installation: line 56: sxqueryadmin@scalix.web-hosting.co.yu: command not found
The public distribution list was added successfully
The public distribution list was added successfully
The public distribution list was added successfully
The public distribution list was added successfully
Enabling 14 subsystem(s).
[b]psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/opt/scalix/sx/postgres/data/.s.PGSQL.5733"?
./installation: line 77: /etc/opt/scalix/webmail/swa.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/webmail/swa.properties.neu': No such file or directory
sed: can't read #: No such file or directory
./installation: line 77: /etc/opt/scalix/caa/scalix.res/config/ubermanager.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/caa/scalix.res/config/ubermanager.properties.neu': No such file or directory
./installation: line 77: /etc/opt/scalix/res/config/res.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/res/config/res.properties.neu': No such file or directory
./installation: line 77: //etc/opt/scalix/platform/platform.properties.neu: No such file or directory
mv: cannot stat `//etc/opt/scalix/platform/platform.properties.neu': No such file or directory
./installation: line 77: /etc/opt/scalix/mobile/mobile.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/mobile/mobile.properties.neu': No such file or directory
./installation: line 77: //etc/opt/scalix/sis/sis.properties.neu: No such file or directory
mv: cannot stat `//etc/opt/scalix/sis/sis.properties.neu': No such file or directory
./installation: line 102: cd: /etc/opt/scalix/caa/scalix.res/config: No such file or directory
./installation: line 110: cd: /var/opt/scalix/su/tomcat/conf: No such file or directory
ln: missing file operand
Try `ln --help' for more information.
./installation: line 112: /opt/scalix-tomcat/conf/catalina.policy: Permission denied
./installation: line 113: .: filename argument required
.: usage: . filename [arguments]
./installation: line 114: cd: /var/opt/scalix/su: No such file or directory
mv: cannot stat `/etc/opt/scalix/caa': No such file or directory
mv: cannot stat `/etc/opt/scalix/mobile': No such file or directory
mv: cannot stat `/etc/opt/scalix/platform': No such file or directory
mv: cannot stat `/etc/opt/scalix/res': No such file or directory
mv: cannot stat `/etc/opt/scalix/sis': No such file or directory
mv: cannot stat `/etc/opt/scalix/webmail': No such file or directory
Instance (scalix) is running
Stopping Tomcat service (scalix)Using CATALINA_BASE:   /var/opt/scalix/sx/tomcat
Using CATALINA_HOME:   /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/sx/tomcat/temp
Using JRE_HOME:
Using CATALINA_BASE:   /var/opt/scalix/sx/tomcat
Using CATALINA_HOME:   /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/sx/tomcat/temp
Using JRE_HOME:
Mar 27, 2007 11:39:24 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:179)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
Killing: 9768
Starting Tomcat service (scalix)Using CATALINA_BASE:   /var/opt/scalix/sx/tomcat
Using CATALINA_HOME:   /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/sx/tomcat/temp
Using JRE_HOME:
ln: creating symbolic link `/etc/apache2/conf.d/scalix-web-client.conf' to `/opt/scalix/global/httpd/scalix-web-client.conf': File exists
./installation: line 125: syntax error near unexpected token `newline'
./installation: line 125: `echo "ProxyPass /caa ajp://$fqdn:8009/scalix-caa" >>'
scalix:~#[/b]

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Wed Mar 28, 2007 1:55 am

Hi,

my script only worked with scalix 11.0.0. I have not adapted it to the 11.0.2 packages.

If you could copy & paste the script instructions one by one and post which errors occur we can probably fix the script together.

Regards,
Christoph

nenad
Posts: 36
Joined: Wed Feb 28, 2007 8:21 pm

Postby nenad » Wed Mar 28, 2007 1:16 pm

OK, I will.
I am using clean install of Debian Etch net install RC2, on server with static IP.
I can install and reinstall complete OS and everything as many times as necessary as this server is not production server.

This is omstat -s (after omon -s all)

root@scalix:~# omstat -s
Service Router Started 19:48:29 0
Local Delivery Started 19:48:29 0
Internet Mail Gateway Started 19:48:30 0
Local Client Interface Enabled 19:48:30 0
Remote Client Interface Enabled 19:48:30 0
Test Server Started 19:48:32 0
Request Server Started 19:48:32 0
Print Server Started 19:48:32 0
Bulletin Board Server Started 19:48:32 0
Background Search Service Started 19:48:35 0
CDA Server Started 20:10:02 0
POP3 interface Started 19:48:35 0
Omscan Server Started 19:48:39 0
Archiver Started 19:48:39 0
-----------------------------------------------------------------------------
This is output of omstat -a

root@scalix:~# omstat -a
PC Monitor Started NON-STOP 0
Directory Relay Server Started 19:48:22
Notification Server Started 19:48:22 0
Shared memory daemon Started NON-STOP
Notification Monitor Started NON-STOP
Session Monitor Started NON-STOP
Indexer Started NON-STOP
Stats Daemon Started NON-STOP
Container Access Monitor Started NON-STOP
Item Structure Server Stopped
Database Monitor Started 19:48:22
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 19:48:23
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 19:48:23
SMTP Relay Started 19:48:23
Mime Browser Controller Started 19:48:25
Event Server Started 19:48:25
------------------------------------------------------
lsof -i

root@scalix:~# lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
postmaste 2056 postgres 4u IPv4 5372 UDP localhost:1024->localhost:1024
postmaste 2059 postgres 4u IPv4 5372 UDP localhost:1024->localhost:1024
java 2256 root 29u IPv6 6382 TCP localhost:8005 (LISTEN)
sshd 2262 root 3u IPv6 5766 TCP *:ssh (LISTEN)
ldapmappe 2283 root 3u IPv4 5792 TCP localhost:5757 (LISTEN)
ldapmappe 2283 root 4u IPv4 6988 TCP localhost:5757->localhost:1718 (ESTABLISHED)
ldapmappe 2283 root 5u IPv4 7168 TCP localhost:5757->localhost:1154 (ESTABLISHED)
ldapmappe 2283 root 7u IPv4 7169 TCP 192.168.123.201:2861->scalix.web-hosting.co.yu:ldap (SYN_SENT)
sendmail- 2303 root 3u IPv4 5829 TCP localhost:smtp (LISTEN)
sendmail- 2303 root 5u IPv4 5830 TCP localhost:submission (LISTEN)
sendmail- 2304 root 6u IPv4 6912 TCP localhost:1718->localhost:5757 (ESTABLISHED)
advmail.s 2423 root 4u IPv4 6058 TCP *:scalixual (LISTEN)
omdrs 2439 scalix 4u IPv4 6096 UDP *:x500ms
omnssck 2441 scalix 3u IPv4 6098 UDP localhost:scalixns
omnssck 2441 scalix 4u IPv4 6099 UDP 192.168.123.201:scalixns
omslapd 2449 root 8u IPv4 6113 TCP *:ldap (LISTEN)
sxeventse 2452 scalix 4u IPv4 6110 TCP *:5768 (LISTEN)
omsmtpd 2453 root 4u IPv4 6133 TCP 192.168.123.201:smtp (LISTEN)
in.imap41 2460 root 4u IPv4 6138 TCP *:imap2 (LISTEN)
pop3.serv 2487 root 3u IPv4 6207 TCP *:pop3 (LISTEN)
apache2 2527 root 3u IPv6 6428 TCP *:www (LISTEN)
apache2 2536 www-data 3u IPv6 6428 TCP *:www (LISTEN)
apache2 2538 www-data 3u IPv6 6428 TCP *:www (LISTEN)
sendmail- 2646 root 1u IPv4 6898 TCP localhost:submission->localhost:2442 (CLOSE_WAIT)
sendmail- 2646 root 3u IPv4 6898 TCP localhost:submission->localhost:2442 (CLOSE_WAIT)
sendmail- 2646 root 5u IPv4 7035 TCP localhost:1154->localhost:5757 (ESTABLISHED)
sendmail- 2646 root 8u IPv4 6898 TCP localhost:submission->localhost:2442 (CLOSE_WAIT)
sendmail- 2657 root 5u IPv4 7049 TCP localhost:3595->localhost:5757 (ESTABLISHED)
sshd 2659 root 3u IPv6 7067 TCP 192.168.123.201:ssh->192.168.123.100:1381 (ESTABLISHED)
sshd 2664 root 3u IPv6 7107 TCP 192.168.123.201:ssh->192.168.123.100:1382 (ESTABLISHED)
------------------------------------------------------------------------------------------------
output of lsof -i | grep smtp

root@scalix:~# lsof -i | grep smtp
sendmail- 2303 root 3u IPv4 5829 TCP localhost:smtp (LISTEN)
omsmtpd 2453 root 4u IPv4 6133 TCP 192.168.123.201:smtp (LISTEN)
root@scalix:~#
-----------------------------------------------------------------------------------------------
/etc/hosts

127.0.0.1 localhost
87.116.136.92 scalix.web-hosting.co.yu scalix
------------------------------------------------------------------------------------------------
output of hostname

root@scalix:~# hostname
scalix
root@scalix:~# hostname -d
web-hosting.co.yu
root@scalix:~# hostname -f
scalix.web-hosting.co.yu
root@scalix:~#

nenad
Posts: 36
Joined: Wed Feb 28, 2007 8:21 pm

Postby nenad » Wed Mar 28, 2007 1:21 pm

This is installation script (slightly modified to avoid repeated downloading of scalix files). Also download url point to uptodate scalix version.
Also the variable ${short} is exluded and everywhere where it appears it is replaced with "sx". Somehow varible ${short} didn't picked the right value.

Code: Select all

#!/bin/bash

echo -n "What should the name of your primary mailnode be? "; read mnode
echo -n "Please enter the admin password for the Scalix admin user(sxadmin)? "; read admpwd
echo -n "Please enter a password for the ldap query user? "; read ldappwd
echo -n "Please enter a password for the db user? "; read dbpwd
echo -n "Please enter the external ip address of your Scalix box? "; read ip

tomcatport=80
scalix11downloadurl="http://downloads.scalix.com/.community/11.0.2.1/scalix-11.0.2.1-GA-debian-intel.tgz"
scalix11targz="scalix-11.0.2.1-GA-debian-intel.tgz"
scalix11dir="scalix-debian-11.0.2.1-GA/software/scalix_server"
libicaldownloadurl="http://www.scalix.com/ceraw/download/scalix11preview/third_party/libical/libical_0.24.RC4.20050413_i386.deb"
ldomain=$(hostname -d)
host=$(hostname)
fqdn=$(hostname -f)
short=${host:0:1}${host: -1:1}

# Update and install required packages
aptitude update
aptitude upgrade
aptitude install apache2 libapache2-mod-jk gawk krb5-config krb5-doc krb5-user libkadm55 libkrb53 libglib2.0-0 libstdc++2.10-glibc2.2 libxml2 sgml-base xml-core postgresql libsasl2-modules libsasl2-gssapi-mit sendmail elinks w3m sun-java5-jre libssl0.9.7 libstdc++5 wget

# Remove sendmail startup links
# This disables outgoing mail
#/etc/init.d/sendmail stop
#update-rc.d -f sendmail remove

# Download Scalix 11
cd /tmp/
#wget -N $libicaldownloadurl
#wget -N $scalix11downloadurl

# Extract and install packages
dpkg -i libical*.deb
tar xvfz $scalix11targz
cd $scalix11dir
dpkg -i scalix-postgres_*.deb scalix-tomcat-connector_*.deb scalix-tomcat_*.deb
dpkg -i scalix-mobile_*.deb scalix-platform_*.deb scalix-res_*.deb scalix-sac_*.deb scalix-server_*.deb scalix-sis_*.deb scalix-swa_*.deb
cd

# Setup mailnode
export PATH=/opt/scalix/bin:$PATH
ommakeom
sxconfig --set -t general.usrl_cn_rule='G S'
sxconfig --set -t general.usrl_authid_rule='l@'
sxconfig --set -t orniasys.name_part_1='"C" <S>' -t orniasys.domain_part_1="$ldomain"
omaddmn -m $mnode
omrc -n
omaddu -n sxadmin/$mnode --class limited -c admin -p "$admpwd" sxadmin
omconfenu -n "sxadmin/$mnode"
omlimit -u "sxadmin/$mnode" -o -i 0 -m 0
omaddu -n sxqueryadmin/$mnode --class limited -c admin -p $ldappwd sxqueryadmin@$fqdn
omaddpdl -l ScalixUserAdmins/$mnode
omaddpdl -l ScalixUserAttributesAdmins/$mnode
omaddpdl -l ScalixGroupAdmins/$mnode
omaddpdl -l ScalixAdmins/$mnode
omon -s all

# Setup DB
cd /opt/scalix-postgres/bin
./sxpsql-setpwd $dbpwd
./sxpsql-whitelist 127.0.0.1 $ip

# Configure Scalix
files="/etc/opt/scalix/webmail/swa.properties /etc/opt/scalix/caa/scalix.res/config/ubermanager.properties
       /etc/opt/scalix/res/config/res.properties /etc/opt/scalix/platform/platform.properties
       /etc/opt/scalix/mobile/mobile.properties /etc/opt/scalix/sis/sis.properties"

for file in $files; do
sed -e "s;%LOCALDOMAIN%;$ldomain;g"  -e "s;%LOCALHOST%;$fqdn;g" -e "s;%PLATFORMURL%;$fqdn;g" -e "s;__SECURED_MODE__;false;g" -e "s;ubermanager/__FQHN_HOST__@__KERBEROS_REALM__;;g" -e "s;__KERBEROS_REALM__;;g" -e "s;__FQHN_FOR_KDC_HOST__;;g" -e "s;__FQHN_QUERY_SERVER_NAME__;$fqdn;g" -e "s;__UBERMGR_USE_EXTERNAL_AUTH__;false;g" -e "s;__UBERMGR_ALLOW_EXTERNAL_AUTH__;false;g" -e "s;__UBERMGR_MAXLIST_SIZE__;100;g" -e "s;__UBERMGR_MAIL_DOMAINS_LIST__;$ldomain;g"  -e "s;__UBERMGR_EXTERNAL_DOMAIN_AUTH_LIST__;;g" -e "s;__CONFIGURED__;true;g" -e "s;__FQHN_FOR_UBERMANAGER__;$fqdn;g" -e "s;__TOMCAT_PORT__;$tomcatport;g" -e "s;localhost;$fqdn;g" -e "s;%SIS-LANGUAGE%;German;g" -e "s;%INDEX-WHITELIST%;$fqdn;g" -e "s;%SEARCH-WHITELIST%;$fqdn;g" $file > $file.neu
mv $file.neu $file
done

# Write Ldappassword to psdata
cd /etc/opt/scalix/caa/scalix.res/config
echo "$ldappwd" > psdata
chown root:root psdata
chmod 400 psdata
cd

# Setup Tomcat
/opt/scalix-tomcat/bin/sxtomcat-webapps --add scalix ALL
cd /var/opt/scalix/sx/tomcat/conf
ln -sf
/opt/scalix-tomcat/conf/{catalina.policy,catalina.properties,context.xml,logging.properties,server-minimal.xml,web.xml}
.
cd /var/opt/scalix/sx
mv /etc/opt/scalix/{caa,mobile,platform,res,sis,webmail} .
/etc/init.d/scalix-tomcat restart

# Setup Apache
ln -s /opt/scalix/global/httpd/scalix-web-client.conf /etc/apache2/conf.d
cat << EOF > /etc/apache2/conf.d/scalix-access.conf
<Location />
        Allow from all
</Location>
EOF
echo "ProxyPass /caa ajp://$fqdn:8009/scalix-caa" >> /etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-caa.conf
echo "ProxyPass /res ajp://$fqdn:8009/scalix-res" >> //etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-res.conf
echo "ProxyPass /platform ajp://$fqdn:8009/scalix-caa" >> /etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-platform.conf
echo "ProxyPass /sis ajp://$fqdn:8009/scalix-caa" >> //etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-sis.conf
echo "ProxyPass /webmail ajp://$fqdn:8009/scalix-swa" >> /etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-swa.conf
echo "ProxyPass /sac ajp://$fqdn:8009/scalix-admin" >> //etc/opt/scalix-tomcat/connector/ajp/app-scalix.scalix-admin.conf
/etc/init.d/apache2 restart

nenad
Posts: 36
Joined: Wed Feb 28, 2007 8:21 pm

Postby nenad » Wed Mar 28, 2007 1:23 pm

The errors starts here:

Code: Select all

omon : [OM 4823] Subsystem Omscan Server is already on.
omon : [OM 4823] Subsystem Archiver is already on.
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/opt/scalix/sx/postgres/data/.s.PGSQL.5733"?
./installation: line 71: /etc/opt/scalix/webmail/swa.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/webmail/swa.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/caa/scalix.res/config/ubermanager.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/caa/scalix.res/config/ubermanager.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/res/config/res.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/res/config/res.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/platform/platform.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/platform/platform.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/mobile/mobile.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/mobile/mobile.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/sis/sis.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/sis/sis.properties.neu': No such file or directory
./installation: line 76: cd: /etc/opt/scalix/caa/scalix.res/config: No such file or directory
ln: missing file operand
Try `ln --help' for more information.
./installation: line 86: /opt/scalix-tomcat/conf/catalina.policy: Permission denied
./installation: line 87: .: filename argument required
.: usage: . filename [arguments]
mv: cannot stat `/etc/opt/scalix/caa': No such file or directory
mv: cannot stat `/etc/opt/scalix/mobile': No such file or directory
mv: cannot stat `/etc/opt/scalix/platform': No such file or directory
mv: cannot stat `/etc/opt/scalix/res': No such file or directory
mv: cannot stat `/etc/opt/scalix/sis': No such file or directory
mv: cannot stat `/etc/opt/scalix/webmail': No such file or directory
Instance (scalix) is running
Stopping Tomcat service (scalix)Using CATALINA_BASE:   /var/opt/scalix/sx/tomcat
Using CATALINA_HOME:   /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/sx/tomcat/temp

nenad
Posts: 36
Joined: Wed Feb 28, 2007 8:21 pm

Postby nenad » Wed Mar 28, 2007 1:25 pm

Code: Select all

Using CATALINA_BASE:   /var/opt/scalix/sx/tomcat
Using CATALINA_HOME:   /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/sx/tomcat/temp
Using JRE_HOME:
Mar 28, 2007 7:24:32 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:179)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
Killing: 2256
Starting Tomcat service (scalix)Using CATALINA_BASE:   /var/opt/scalix/sx/tomcat
Using CATALINA_HOME:   /opt/scalix-tomcat
Using CATALINA_TMPDIR: /var/opt/scalix/sx/tomcat/temp
Using JRE_HOME:
ln: creating symbolic link `/etc/apache2/conf.d/scalix-web-client.conf' to `/opt/scalix/global/httpd/scalix-web-client.conf': File exists
Forcing reload of web server (apache2)...[Wed Mar 28 20:24:33 2007] [warn] VirtualHost scalix.web-hosting.co.yu:80 overlaps with VirtualHost scalix.web-hosting.co.yu:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Mar 28 20:24:43 2007] [warn] VirtualHost scalix.web-hosting.co.yu:80 overlaps with VirtualHost scalix.web-hosting.co.yu:80, the first has precedence, perhaps you need a NameVirtualHost directive
.
root@scalix:~#

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Wed Mar 28, 2007 2:05 pm

nenad wrote:This is installation script (slightly modified to avoid repeated downloading of scalix files). Also download url point to uptodate scalix version.
Also the variable ${short} is exluded and everywhere where it appears it is replaced with "sx". Somehow varible ${short} didn't picked the right value.


Could you try:

Code: Select all

host=$(hostname)
short=${host:0:1}${host: -1:1}
echo $short


Regards,
Christoph

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Wed Mar 28, 2007 2:23 pm

nenad wrote:The errors starts here:

Code: Select all

omon : [OM 4823] Subsystem Omscan Server is already on.
omon : [OM 4823] Subsystem Archiver is already on.



Ok, Perhaps we have to remove the

Code: Select all

omon -s all


psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/scalix/sx/postgres/data/.s.PGSQL.5733"?


Looks like your postgres is not running. Can you do a:

Code: Select all

ps xa|grep postmaster


You should see at least one postmaster process running with -D /var/opt/scalix/../postgres/data

./installation: line 71: /etc/opt/scalix/webmail/swa.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/webmail/swa.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/caa/scalix.res/config/ubermanager.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/caa/scalix.res/config/ubermanager.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/res/config/res.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/res/config/res.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/platform/platform.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/platform/platform.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/mobile/mobile.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/mobile/mobile.properties.neu': No such file or directory
./installation: line 71: /etc/opt/scalix/sis/sis.properties.neu: No such file or directory
mv: cannot stat `/etc/opt/scalix/sis/sis.properties.neu': No such file or directory


The definition of files has to be changed as the files are moved to a different location. Changed the script accordingly.

./installation: line 76: cd: /etc/opt/scalix/caa/scalix.res/config: No such file or directory


Fixed.

ln: missing file operand
Try `ln --help' for more information.


I do not know what causes this one.

We should probably first fix the database issue and afterwards try again with the fixed script.

Thanks for your time!

Cheers,
Christoph


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 6 guests