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.