1

Topic: Package build options on FreeBSD

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

Suggestions:

- Amavis: UNSET DOCS
Turns out `Docs` here is related to the package documentation, and Not some check on `.doc(x)` file. This can be turned OFF as all others.

    # Amavisd-new. REQUIRED.
    cat > /var/db/ports/security_amavisd-new/options <<EOF
. . .
# FROM:
OPTIONS_FILE_SET+=DOCS
# TO:
OPTIONS_FILE_UNSET+=DOCS

- Nginx: UNSET DEBUGLOG
Configure DEBUGLOG the same as DEBUG.

    # Nginx
    cat > /var/db/ports/www_nginx/options <<EOF
. . .
# FROM:
OPTIONS_FILE_SET+=DEBUGLOG
# TO:
OPTIONS_FILE_UNSET+=DEBUGLOG

----

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

2

Re: Package build options on FreeBSD

- I added "OPTIONS_FILE_UNSET+=DOCS" to all ports (listed in functions/packages_freebsd.sh), but not all other dependent ports.
- Nginx "DEBUGLOG" option must be enabled. It's very useful if you need to debug nginx configuration (with the global parameter "error_log /var/log/... debug").