In this post I would like to show, how to install Scalix on Debian. The system is running the latest version of Debian in a minimal installation. In my last post, about this topic I installed Postfix and Scalix on the same host. This time, I will install Scalix on a host and Postfix for mail cleanup on a different host.
To install Scalix on Debian you need the Scalix installer script, either from Github:
or from the Scalix page:
Simply download the script directly from the host, where you would like to install Scalix or upload it from your management station.
You have to make the script executable using this command:
[email protected]:~# chmod +x deb_installer.sh
As Scalix needs some prerequisites like a correct configured host name, you need to edit the hosts file:
[email protected]:~# vi /etc/hosts
Just add a line with the external IP of your host and the host name:
127.0.0.1 localhost 192.168.159.130 mail.flomain.de mail
I added the last line. If there is a line with “127.0.0.1” and the host name, other than localhost, you need to remove this line, as Scalix do not like this.
Afterwards you can run the script with the –update option, as this will download the required packages automatically:
[email protected]:~# ./deb_installer.sh --update
After the script has downloaded the required packages from the Scalix server, the script will install the required Debian packages. During this process, you will be asked to remove Exim. You have to accept this:
Die folgenden Pakete haben verletzte Abhängigkeiten: exim4-config : Kollidiert mit: sendmail-bin aber 8.14.4-4 soll installiert werden. sendmail-bin : Kollidiert mit: mail-transport-agent, welches ein virtuelles Paket ist. exim4-daemon-light : Kollidiert mit: mail-transport-agent, welches ein virtuelles Paket ist. Die folgenden Aktionen werden diese Abhängigkeiten auflösen: Entfernen der folgenden Pakete: 1) exim4 2) exim4-base 3) exim4-config 4) exim4-daemon-light Diese Lösung akzeptieren? [Y/n/q/?] y
You will be asked a second time, before Exim is removed:
Afterwards, Exim will be removed and the latest available packages for Debian will be installed.
During the installation of sendmail I run into some problems with the sendmail configuration. I did not know, if this is an error with my system or with the way Debian replaces Exim with sendmail. The error messages is this one:
Simply move those lines:
dnl # Masquerading options FEATURE(`always_add_domain')dnl MASQUERADE_AS(`mail.flomain.de')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl
before this line:
dnl # Default Mailer setup
Afterwards, you need to compile the new configuration:
[email protected]:~# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
You can now restart the Scalix installer scrip. This time, you do not have to use the “–update” option as the script already downloaded the files in the first time.
[email protected]:~# ./deb_installer.sh
The script will check for updates again and will then start the Scalix installation. You will be asked to set the password for the admin user:
Please enter the admin password for the Scalix admin user (sxadmin)?
You will also be asked for the password for the ldap query user:
Please enter a password for the ldap query user?
You also have to insert the password for the database user:
Please enter a password for the db user?
Afterwards, you need to insert the external IP of your Scalix system:
Please enter the external ip address of your Scalix box?
The IP is used to bind the Scalix server to this address.
You will also be asked if you would like to use https for the web interface.
Do you whant to use secure connection HTTPS instead HTTP for Scalix Administration console, ( yes / no ) ?
As I will have a proxy server in front of the Scalix box, which will handle https, I chose no. If your box is connected to the internet directly, you should consider using https, to protect management traffic and user traffic.
Afterwards, the installation is finished and you can reach the Scalix admin console using the following url: http://your-ip/sac
Use “sxadmin” for the user and the admin password to login.
If you have any questions, regarding this post or if you would like provide feedback, please use the comment function below.