1

Topic: Installing on FreeBSD

==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: FreeBSD 9
- Related log if you're reporting an issue:
< INFO > Installing port: net/py-ldap2 ...
===>  Cleaning for py27-ldap2-2.4.10
===>  py27-ldap2-2.4.10 cannot install: SASL support requested and openldap-client-2.4.32_1 is installed.
*** Error code 1

Stop in /usr/ports/net/py-ldap2.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.
====

Hello forum,
I am experiencing problem while installing iRedmail on a FreeBSD box.
The problem is with Python-LDAP, error shown above.
Could you please give me an advice how to solve this? Do I need Python-LDAP when my data will be stored in a mysql database?

Thanks a lot.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Installing on FreeBSD

You shouldn't need python-ldap if you're using MySQL.

It looks like the installer is requiring that package because iredapd is going to be installed.

You could probably get away with removing it as a dependency in iRedMail's installer config -> functions/packages_freebsd.sh seeing as you're not going to need it.

3

Re: Installing on FreeBSD

Hi!
Could you please be more specific?
There are many WITH_LDAP=true lines in packages_freebsd.sh
Although I found line
export ENABLE_BACKEND_OPENLDAP='YES'
in the file conf/global and I changed it to NO. So I will see if it helps.
Thank you.

4

Re: Installing on FreeBSD

Alright, setting
export ENABLE_BACKEND_OPENLDAP='NO'
did not help at all.
I tried to deinstall package openldap-client-2.4.32_1:
pkg_delete -f openldap-client-2.4.32_1
then manually install:
/usr/ports/net/openldap24-sasl-client
and run iRedmail.sh again.
After this "hack" is installation part completed but I really do not know if it is a right way.

5

Re: Installing on FreeBSD

I was able to finish the installation process.
It is still not working, though.

I am getting error:
OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)")
when I try access https://localhost/iredadmin/
User iredadmin with some password do exists in a database.
Have anyone some hint?

6

Re: Installing on FreeBSD

It's caused by improper port config options (make config). Fixed in the latest development version.
You can check out the development version and try again. It's ready for a new release: iRedMail-0.8.2. Just want to sure it will work in FreeBSD Jail.

Source code is available on BitBucket:
https://bitbucket.org/zhb/iredmail/

7

Re: Installing on FreeBSD

ZhangHuangbin wrote:

It's caused by improper port config options (make config). Fixed in the latest development version.
You can check out the development version and try again. It's ready for a new release: iRedMail-0.8.2. Just want to sure it will work in FreeBSD Jail.

Source code is available on BitBucket:
https://bitbucket.org/zhb/iredmail/

Thanks, I'm on it. But I do not install iRedmail into a jail, though.
Could you please explain me what is the problem with openldap sasl I posted before. I was able to use some workaround but I am not really happy..

8

Re: Installing on FreeBSD

ZhangHuangbin wrote:

It's caused by improper port config options (make config). Fixed in the latest development version.
You can check out the development version and try again. It's ready for a new release: iRedMail-0.8.2. Just want to sure it will work in FreeBSD Jail.

Source code is available on BitBucket:
https://bitbucket.org/zhb/iredmail/

No success. Error is still the same:
OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)") and two new with Apache:

httpd: Syntax error on line 65 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_authnz_ldap.so into server: Cannot open "/usr/local/libexec/apache22/mod_authnz_ldap.so"

httpd: Syntax error on line 84 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_ldap.so into server: Cannot open "/usr/local/libexec/apache22/mod_ldap.so"

These two files are missing. Why am I receiving errors from LDAP when I have mysql as a backend?
Thank you.