1

Topic: iRedMail in freebsd not working

FreeBSD v.12.2
FreeBSD mx.example.com 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC  amd64
IredMail v.1.3.2
Error on installation first time:

install  -m 0644 /usr/ports/databases/memcached/work/memcached-1.6.9/doc/threads.txt /usr/ports/databases/memcached/work/stage/usr/local/share/doc/memcached
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
===>  Installing for memcached-1.6.9_1
===>  Checking if memcached is already installed
===>   Registering installation for memcached-1.6.9_1 as automatic
pkg-static: Cannot get an exclusive lock on a database, it is locked by another process
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/databases/memcached
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/sope4
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.


On the second time:

===>   py38-setuptools-44.0.0 depends on file: /usr/local/bin/python3.8 - not found
===>   python38-3.8.8 depends on package: pkgconf>=1.3.0_1 - found
===>   python38-3.8.8 depends on file: /usr/local/lib/libcrypto.so.46 - not found
===>  Installing for libressl-3.2.4
===>  Checking if libressl is already installed
===>   Registering installation for libressl-3.2.4 as automatic
Installing libressl-3.2.4...
pkg-static: libressl-3.2.4 conflicts with openssl-1.1.1j,1 (installs files into the same place).  Problematic file: /usr/local/bin/openssl
*** Error code 1
Stop.
make[3]: stopped in /usr/ports/security/libressl
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/lang/python38
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/devel/py-setuptools
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/py-Jinja2
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.

----

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

2

Re: iRedMail in freebsd not working

alekperov11 wrote:

pkg-static: libressl-3.2.4 conflicts with openssl-1.1.1j,1 (installs files into the same place).  Problematic file: /usr/local/bin/openssl

libressl conflicts with openssl.
Please open file "functions/packages_freebsd.sh", remove "ssl=libressl" and re-run iRedMail installer. You may want to remove it from /etc/make.conf too.

3 (edited by alekperov11 2021-03-22 05:23:40)

Re: iRedMail in freebsd not working

iRedMail Developers for you.

Before install
/root/iRedMail/functions/packages_freebsd.sh
Change but not remove "ssl=libressl"
freebsd_make_conf_add 'DEFAULT_VERSIONS' "ssl=libressl python=${PREFERRED_PY3_VER} python3=${PREFERRED_PY3_VER} pgsql=${PGSQL_VERSION} php=7.4 mysql=10.5m perl5=5.32"
with
freebsd_make_conf_add 'DEFAULT_VERSIONS' "ssl=openssl python=${PREFERRED_PY3_VER} python3=${PREFERRED_PY3_VER} pgsql=${PGSQL_VERSION} php=7.4 mysql=10.5m perl5=5.32"

In install
Not check Sogo4 (in freebsd 12.2 port Sogo4 not installed)

After install
/usr/local/etc/dovecot/dovecot.conf
Change
metric imap_command_finished {
  event_name = imap_command_finished
}
with
metric imap_command_finished {
  filter = event=imap_command_finished
}

[etc/rc.conf]
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

4

Re: iRedMail in freebsd not working

So, is everything working fine now?

5

Re: iRedMail in freebsd not working

Yes. Everything ok