1

Topic: installing iredmail on a debian 10 server

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release) : 1.3.1
- Deployed with the downloadable installer
- Linux/BSD distribution name and version : Debian 10 stable
- Store mail accounts in MySQL
- Web server Apache
- Manage mail accounts with iRedAdmin-Pro?

Hi all,

I have been a long time user of Debian for almost all my computer needs.
Running my own web and email servers amongst others. But every year
I have to go through the hassle of reinstalling new ssl certificates and that
is a pain. So I was looking around for some simple solution and hoped I
found it in iredmail.

But I get some apt dependency errors :

root@iemeel:~/iRedMail-1.3.1# bash iRedMail.sh
[ INFO ] Checking configuration file: /root/iRedMail-1.3.1/config ... [FOUND]
< Question > Use it for mail server setting? [y|N]y
[ INFO ] Use config file: /root/iRedMail-1.3.1/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.3.1/runtime/install.status.
[ INFO ] Installing package(s): postfix postfix-pcre libsasl2-modules mariadb-client mariadb-server postf.........
The following packages have unmet dependencies:
libberkeleydb-perl : Depends: perlapi-5.28.1
libconvert-uulib-perl : Depends: perlapi-5.28.0
libcrypt-openssl-rsa-perl : Depends: perlapi-5.28.0
                             Depends: libcrypt-openssl-bignum-perl but it is not going to be installed
                             Depends: libcrypt-openssl-random-perl but it is not going to be installed
libdbd-mysql-perl : Depends: perlapi-5.28.1
libdbi-perl : Depends: perlapi-5.28.1
libdw1 : Depends: libelf1 (= 0.176-1.1) but 0.180-1+b1 is to be installed
libnet-libidn-perl : Depends: perlapi-5.28.0
libnetaddr-ip-perl : Depends: perlapi-5.28.0
libsocket6-perl : Depends: perlapi-5.28.0
libunix-syslog-perl : Depends: perlapi-5.28.0
lz4 : Depends: liblz4-1 (= 1.8.3-1) but 1.9.2-2 is to be installed
python3-distutils : Depends: python3 (< 3.8) but 3.8.2-3 is to be installed
                     Depends: python3-lib2to3 (>= 3.6.4) but it is not going to be installed
python3-setuptools : Depends: python3-pkg-resources (= 40.8.0-1) but 46.1.3-1 is to be installed
E: Unable to correct problems, you have held broken packages.
<< ERROR >> Installation failed, please check the terminal output.
<< ERROR >> If you're not sure what the problem is, try to get help in iRedMail
<< ERROR >> forum: https://forum.iredmail.org/

I have tried solving the dependencies.

My question is what version of debian is needed for an iredmail install ?
I know the website shows debian 10 as a version that can be used.
But I am looking for confirmation (from someone who installed on v10).

Thank you,
Roelof

2

Re: installing iredmail on a debian 10 server

Do you use any third-party apt repository? If yes, please disable them all before installing iRedMail.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: installing iredmail on a debian 10 server

No I do not use anything special :

rth@mail:~$ cat /etc/apt/sources.list
deb http://ftp.nl.debian.org/debian/  buster main contrib non-free
deb http://security.debian.org/ buster/updates main contrib non-free
deb http://ftp.nl.debian.org/debian/ buster-updates main contrib non-free

The package perlapi is just not available in the respitory

Roelof

4

Re: installing iredmail on a debian 10 server

From packages.debian.org :

dep: perlapi-5.30.3
virtual package provided by perl-base

And on my server :

root@mail:~/iRedMail-1.3.1# apt install perlapi-5.30.3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'perl-base' instead of 'perlapi-5.30.3'
perl-base is already the newest version (5.30.3-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Roelof

5

Re: installing iredmail on a debian 10 server

- Make sure your system is a clean / fresh OS.
- Disable all third-party apt repositories.
- Disable the "contrib" and "non-free" repos.

Above steps should make sure iRedMail installation goes well.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

6

Re: installing iredmail on a debian 10 server

Still the same error, it looks like the dependencies in
debian apt are wrong :

root@mail:~/iRedMail-1.3.1# apt install libberkeleydb-perl
....
The following packages have unmet dependencies:
libberkeleydb-perl : Depends: perlapi-5.28.1
E: Unable to correct problems, you have held broken packages.

perlapi-5.28 does not exist in the repository.

And that leads me back to my original question :
Who has iredmail installed on a debian 10 from scratch ?
(without the problems I am facing)
A simple yes or no answer is good.

Roelof

7

Re: installing iredmail on a debian 10 server

We have a lot Debian 10 users.
It looks like a package issue on your own server, try to remove this package and re-run iRedMail installer.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

8 (edited by LaurentM Yesterday 00:07:58)

Re: installing iredmail on a debian 10 server

Hi Roelof,

I am all new to this forum, but the thing I can tell you is that I have VERY recently (begining of October) installed an iRedMail server on a fresh debian 10 server.

At first I have made the mistake to install the apache2 web server, but the installation issued a problem, so I did a new installation of the debian 10 server with only the Mate desktop on it and left all the other choices by default.
The iRedMail installation went smoothly and I just had to find tricks to avoid use of Nginx and use Apache2 instead for the Sogo webmail page display and the iRedAdmin page aswell.

I am even using the ActiveSync functionality from Sogo.

Regards

9

Re: installing iredmail on a debian 10 server

Thank you for your answer. I will setup a new debian 10
install and try again when I am back at home, I am
in ras al kaimah at the moment for a month long job.

Roelof

10

Re: installing iredmail on a debian 10 server

Roelof,

I used Apache2 as a web server for personnal conviniences as I am hosting several web sites, but the Nginx web server was doing the trick too.

The installation of the Apache2 Web server must be done after the iRedMail installation.

And I used the downloadable package.

Laurent