1

Topic: Fresh install in a FreeBSD 14.4-RELEASE jail (My notes)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.4
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: FreeBSD 14.4-RELEASE
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? N/A
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

So just did a fresh install of iRedMail in a FreeBSD jail using the master repo as the source. Before running the install script, here's a few things I did to make the install go smoothly:

## Pre Install
1. upgrade `pkg` to the latest 2.6.2
2. In the master repo, edit the script 'functions/packages_freebsd.sh' and change
export MYSQL_VER='80' to export MYSQL_VER='84'.

The reason is `pkg` will install 'mysql80-client' and then half way through the install, it will try to install 'mysql84-client' and fail due to conflict. If you select 'Y' to continue, pkg will start uninstalling other packages.

## Post Install
1. Install the following 2 packages:
- py311-passlib
- py311-cheroot

Without this, doing 'python3 iredadmin.py' will throw errors.

2. Edit /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini and change:
'wsgi-file = iredadmin.py' to 'uwsgi-file = iredadmin.py'

Without this change, going to '/iredadmin/' throws an Internal server error.

So other than those changes, everything works :>

----

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

2

Re: Fresh install in a FreeBSD 14.4-RELEASE jail (My notes)

Another thing, with 'postfix-mysql-3.11.1_1,1' installed, the main.cf has 2 deprecated options that need changing..

'postscreen_blacklist_action' to 'postscreen_denylist_action'
'postscreen_dnsbl_whitelist_threshold' to 'postscreen_dnsbl_allowlist_threshold'

And a 'postconf compatibility_level=3.11'.. then restart Postfix.

3

Re: Fresh install in a FreeBSD 14.4-RELEASE jail (My notes)

A friend installed iRedMail 1.7.4 PostgreSQL edition on FreeBSD 15.0-RELEASE VM.

The steps are similar to FreeBSD 14.4 above but with minor changes for PostgreSQL.

## PRE
Edit 'conf/postgresql' and change PGSQL_VERSION='17' to '18'. It exhibits the same pkg conflict problem half way through the installation.

## POST
pkg install py311-passlib py311-cheroot

## UWSGI file
Edit /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini and change:
'wsgi-file = iredadmin.py'
to
'uwsgi-file = iredadmin.py'

## Postfix main.cf
Change:
- 'postscreen_blacklist_action' to 'postscreen_denylist_action'
- 'postscreen_dnsbl_whitelist_threshold' to 'postscreen_dnsbl_allowlist_threshold'
- postconf compatibility_level=3.11'

Restart the VM or restart the jail if installed in a jail.

4

Re: Fresh install in a FreeBSD 14.4-RELEASE jail (My notes)

it's very cool smile

5 (edited by JohnR Today 17:48:58)

Re: Fresh install in a FreeBSD 14.4-RELEASE jail (My notes)

I'm interested to see how it'll go with the the latest pkgbase in FreeBSD as it's the new standard moving forward, but very nice that the install is using pkg now. Curious to know how this will interact with custom pkg's from poudriere.

As an aside, I've made a custom en_GB language pack that I'm happy to add here.

Post's attachments

en_GB.zip 12.7 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

6

Re: Fresh install in a FreeBSD 14.4-RELEASE jail (My notes)

JohnR wrote:

As an aside, I've made a custom en_GB language pack that I'm happy to add here.

The "po" file is "empty": no translated items at all.

7 (edited by JohnR Today 17:44:11)

Re: Fresh install in a FreeBSD 14.4-RELEASE jail (My notes)

Attached

Post's attachments

iredadmin.po 45.63 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.