==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: FreeBSD 12.1-RELEASE-p6 GENERIC amd64 in eazyJail, clean install
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? ( Want to but chose not to install on last attempt ) No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have been trying for days to install iRedMail in a new jail ( recreated at each attempt) on FreeBSD 12.1.
The success banner has usually appeared but errors are shown during the IredMail Configuration to the database.
I have found differences in the outcome dependent on if MariaDb104 is built from ports or installed from pkg.
When built from ports, my first try, the mysql user and group were not created when installing mariadDb104-Server. This caused problems further on down the line. This last time I created the mysql user, group and home dir manually before the iRedMail install but still landed up with problems. Also archivers/arj does not build but can be installed with pkg. When arj fails it interrupts the amavid install. I resumed the install after the arj pkg install. The non-functioning arj build goes back to 2017 as far as I can see and is obviously not an iRedMail problem but iI think I'll have to wait for iRedMail/FreeBsd to be sorted out while this persists. This is a test server before updating a live server.
The Release announcement for 1.3 is also confusing in relation to FreeBsd and iredadmin:
=================
BROKEN distribution
iRedAdmin(-Pro) is currently broken on FreeBSD, please wait for some more days. But if you install iRedMail on FreeBSD without iRedAdmin, the installation will finish without any issue.
We ported iRedAPD and mlmmjadmin from Python 2 to 3, but still need some time to port iRedAdmin(-Pro) to Python 3.
mlmmjadmin requires uwsgi for Python 3, but iRedAdmin(-Pro) requires uwsgi for Python 2. They both create file /usr/local/bin/uwsgi, hence we can not install uwsgi for both Python versions right now. We will replace uwsgi by other WSGI server like "gunicorn" shortly, please be patient.
=================
With my last install attempt I opted not to install iredadmin, not sure from the announcement if iredadmin is technically different to iredAdminPro in terms of build (I have a licence for iRedAdmin Pro LDAP.). I do understand the Python 2 to 3 issue but the announcement is a little confusing. Even if I had managed to install a functional iRedMail, how would I configure domains and users without iredadmin?
The success banner:
********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Generate self-signed SSL cert (4096 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
[ INFO ] Configure LDAP server: OpenLDAP.
[ INFO ] Setup daily cron job to backup LDAP data with /var/vmail/backup/backup_openldap.sh
[ INFO ] Configure MariaDB database server.
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
[ INFO ] Configure Nginx web server.
[ INFO ] Configure PHP.
[ INFO ] Configure mlmmj (mailing list manager).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
[ INFO ] Configure Roundcube webmail.
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
*************************************************************************
* iRedMail-1.3 installation and configuration complete.
*************************************************************************
[ INFO ] Updating SpamAssassin rules (sa-update), please wait ...
[ INFO ] Compiling SpamAssassin rulesets (sa-compile), please wait ...
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ClamAV update process started at Tue Jul 7 14:58:37 2020
daily database available for download (remote version: 25866)
Time: 100.8s, ETA: 0.0s [=============================>] 80.11MiB/80.11MiB
Testing database: '/var/db/clamav/tmp.21cff/clamav-2d19b4dee0658fc16819662d27861961.tmp-daily.cvd' ...
Database test passed.
daily.cvd updated (version: 25865, sigs: 3173449, f-level: 63, builder: raynman)
main database available for download (remote version: 59)
Time: 137.3s, ETA: 0.0s [=============================>] 112.40MiB/112.40MiB
Testing database: '/var/db/clamav/tmp.21cff/clamav-2cc19c22bbd3d2aae473a4bb52ffbd9c.tmp-main.cvd' ...
Database test passed.
main.cvd updated (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode database available for download (remote version: 331)
Time: 0.1s, ETA: 0.0s [=============================>] 289.44KiB/289.44KiB
Testing database: '/var/db/clamav/tmp.21cff/clamav-d83e14aa9a6cbb8170a4471c905edc19.tmp-bytecode.cvd' ...
Database test passed.
bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
********************************************************************
* URLs of installed web applications:
*
* - Roundcube webmail: https://mailx.mydomain.co.uk/mail/
*
* - Web admin panel (iRedAdmin): https://mailx.mydomain.co.uk/iredadmin/
*
* You can login to above links with below credential:
*
* - Username: postmaster@mydomain.co.uk
* - Password: secret
*
*
********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
* - /root/iRedMail-1.3/iRedMail.tips
*
* And it's sent to your mail account postmaster@museit.co.uk.
*
********************* WARNING **************************************
*
* Please reboot your system to enable all mail services.
*
********************************************************************
Install Log:
[ INFO ] Checking new version of iRedMail ...
+ < DEBUG > Creating necessary directories ...
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 3: https://dl.iredmail.org/yum/misc/iRedAdmin-1.0.tar.bz2
[ INFO ] + 2 of 3: https://dl.iredmail.org/yum/misc/mlmmjadmin-3.0.tar.gz
[ INFO ] + 3 of 3: https://dl.iredmail.org/yum/misc/iRedAPD-4.1.tar.gz
[ INFO ] Validate downloaded source tarballs ...
[ INFO ] Checking configuration file: /root/iRedMail-1.3/config ...
[ INFO ] NOT FOUND. Launching installation wizard.
+ < DEBUG > Update /etc/make.conf: WANT_OPENLDAP_VER=24
+ < DEBUG > Update /etc/make.conf: WANT_OPENLDAP_SASL=YES
+ < DEBUG > Update /etc/make.conf: WANT_PGSQL_VER=12
+ < DEBUG > Update /etc/make.conf: WANT_BDB_VER=5
+ < DEBUG > Update /etc/make.conf: DEFAULT_VERSIONS=ssl=libressl python=3.8 python2=2.7 python3=3.8 pgsql=12 php=7.4 mysql=10.4m ruby=2.7
+ < DEBUG > Update /etc/make.conf: OPTIONS_SET+=SASL
+ < DEBUG > Update /etc/make.conf: OPTIONS_UNSET+=X11
+ < DEBUG > Update /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: net/openldap24-sasl-client
[ INFO ] Fetching all distfiles for port: net/openldap24-server
[ INFO ] Fetching all distfiles for port: databases/mariadb104-server
[ INFO ] Fetching all distfiles for port: mail/dovecot
[ INFO ] Fetching all distfiles for port: mail/dovecot-pigeonhole
[ INFO ] Fetching all distfiles for port: mail/spamassassin
[ INFO ] Fetching all distfiles for port: security/amavisd-new
[ INFO ] Fetching all distfiles for port: mail/postfix
[ INFO ] Fetching all distfiles for port: www/nginx
[ INFO ] Fetching all distfiles for port: www/uwsgi
[ INFO ] Fetching all distfiles for port: lang/php74
[ INFO ] Fetching all distfiles for port: mail/php74-imap
[ INFO ] Fetching all distfiles for port: archivers/php74-zip
[ INFO ] Fetching all distfiles for port: archivers/php74-bz2
[ INFO ] Fetching all distfiles for port: archivers/php74-zlib
[ INFO ] Fetching all distfiles for port: devel/php74-gettext
[ INFO ] Fetching all distfiles for port: security/php74-openssl
[ INFO ] Fetching all distfiles for port: www/php74-session
[ INFO ] Fetching all distfiles for port: converters/php74-iconv
[ INFO ] Fetching all distfiles for port: textproc/php74-pspell
[ INFO ] Fetching all distfiles for port: textproc/php74-dom
[ INFO ] Fetching all distfiles for port: net/php74-ldap
[ INFO ] Fetching all distfiles for port: databases/php74-mysqli
[ INFO ] Fetching all distfiles for port: devel/p5-Exporter-Tiny
[ INFO ] Fetching all distfiles for port: security/clamav
[ INFO ] Fetching all distfiles for port: mail/mlmmj
[ INFO ] Fetching all distfiles for port: www/py-requests
[ INFO ] Fetching all distfiles for port: net/pear-Net_LDAP2
[ INFO ] Fetching all distfiles for port: mail/roundcube
[ INFO ] Fetching all distfiles for port: net/py-ldap
[ INFO ] Fetching all distfiles for port: databases/py-pymysql
[ INFO ] Fetching all distfiles for port: databases/py-sqlalchemy10
[ INFO ] Fetching all distfiles for port: dns/py-dnspython
[ INFO ] Fetching all distfiles for port: www/webpy
[ INFO ] Fetching all distfiles for port: ftp/py-pycurl
[ INFO ] Fetching all distfiles for port: sysutils/logwatch
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
[ INFO ] Fetching all distfiles for port: net/py-netifaces
[ INFO ] Fetching all distfiles for port: security/py-bcrypt
[ INFO ] Fetching all distfiles for port: www/py-requests
[ INFO ] Fetching all distfiles for port: net/py-ldap
[ INFO ] Fetching all distfiles for port: databases/py-pymysql
[ INFO ] Fetching all distfiles for port: www/py-cheroot
[ INFO ] Fetching all distfiles for port: www/webpy
[ INFO ] Fetching all distfiles for port: ftp/py-pycurl
[ INFO ] All ports: net/openldap24-sasl-client net/openldap24-server databases/mariadb104-server mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom net/php74-ldap databases/php74-mysqli devel/p5-Exporter-Tiny security/clamav mail/mlmmj www/py-requests net/pear-Net_LDAP2 mail/roundcube net/py-ldap databases/py-pymysql databases/py-sqlalchemy10 dns/py-dnspython www/webpy ftp/py-pycurl sysutils/logwatch
[ INFO ] All ports for Python 2: devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests net/py-ldap databases/py-pymysql www/py-cheroot www/webpy ftp/py-pycurl
[ INFO ] Install port: net/openldap24-sasl-client
[ INFO ] Installing port: net/openldap24-sasl-client (2020-07-07 10:28:55) ...
[ INFO ] Install port: net/openldap24-server
[ INFO ] Installing port: net/openldap24-server (2020-07-07 10:42:29) ...
[ INFO ] Install port: databases/mariadb104-server
[ INFO ] Installing port: databases/mariadb104-server (2020-07-07 11:09:05) ...
[ INFO ] Install port: mail/dovecot
[ INFO ] Installing port: mail/dovecot (2020-07-07 12:11:10) ...
[ INFO ] Install port: mail/dovecot-pigeonhole
[ INFO ] Installing port: mail/dovecot-pigeonhole (2020-07-07 12:17:22) ...
[ INFO ] Install port: mail/spamassassin
[ INFO ] Installing port: mail/spamassassin (2020-07-07 12:18:35) ...
[ INFO ] Install port: security/amavisd-new
[ INFO ] Installing port: security/amavisd-new (2020-07-07 12:42:10) ...
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.
[ INFO ] Checking configuration file: /root/iRedMail-1.3/config ...
[ INFO ] Use config file: /root/iRedMail-1.3/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.3/runtime/install.status.
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
+ < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=libressl python=3.8 python2=2.7 python3=3.8 pgsql=12 php=7.4 mysql=10.4m ruby=2.7
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
+ < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
< SKIP > Function: fetch_all_src_tarballs.
[ INFO ] All ports: net/openldap24-sasl-client net/openldap24-server databases/mariadb104-server mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom net/php74-ldap databases/php74-mysqli devel/p5-Exporter-Tiny security/clamav mail/mlmmj www/py-requests net/pear-Net_LDAP2 mail/roundcube net/py-ldap databases/py-pymysql databases/py-sqlalchemy10 dns/py-dnspython www/webpy ftp/py-pycurl sysutils/logwatch
[ INFO ] All ports for Python 2: devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests net/py-ldap databases/py-pymysql www/py-cheroot www/webpy ftp/py-pycurl
[ INFO ] Install port: net/openldap24-sasl-client
< SKIP > Installing port: net/openldap24-sasl-client.
[ INFO ] Install port: net/openldap24-server
< SKIP > Installing port: net/openldap24-server.
[ INFO ] Install port: databases/mariadb104-server
< SKIP > Installing port: databases/mariadb104-server.
[ INFO ] Install port: mail/dovecot
< SKIP > Installing port: mail/dovecot.
[ INFO ] Install port: mail/dovecot-pigeonhole
< SKIP > Installing port: mail/dovecot-pigeonhole.
[ INFO ] Install port: mail/spamassassin
< SKIP > Installing port: mail/spamassassin.
[ INFO ] Install port: security/amavisd-new
[ INFO ] Installing port: security/amavisd-new (2020-07-07 14:14:01) ...
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.
[ INFO ] Checking configuration file: /root/iRedMail-1.3/config ...
[ INFO ] Use config file: /root/iRedMail-1.3/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.3/runtime/install.status.
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
+ < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=libressl python=3.8 python2=2.7 python3=3.8 pgsql=12 php=7.4 mysql=10.4m ruby=2.7
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
+ < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
< SKIP > Function: fetch_all_src_tarballs.
[ INFO ] All ports: net/openldap24-sasl-client net/openldap24-server databases/mariadb104-server mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom net/php74-ldap databases/php74-mysqli devel/p5-Exporter-Tiny security/clamav mail/mlmmj www/py-requests net/pear-Net_LDAP2 mail/roundcube net/py-ldap databases/py-pymysql databases/py-sqlalchemy10 dns/py-dnspython www/webpy ftp/py-pycurl sysutils/logwatch
[ INFO ] All ports for Python 2: devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests net/py-ldap databases/py-pymysql www/py-cheroot www/webpy ftp/py-pycurl
[ INFO ] Install port: net/openldap24-sasl-client
< SKIP > Installing port: net/openldap24-sasl-client.
[ INFO ] Install port: net/openldap24-server
< SKIP > Installing port: net/openldap24-server.
[ INFO ] Install port: databases/mariadb104-server
< SKIP > Installing port: databases/mariadb104-server.
[ INFO ] Install port: mail/dovecot
< SKIP > Installing port: mail/dovecot.
[ INFO ] Install port: mail/dovecot-pigeonhole
< SKIP > Installing port: mail/dovecot-pigeonhole.
[ INFO ] Install port: mail/spamassassin
< SKIP > Installing port: mail/spamassassin.
[ INFO ] Install port: security/amavisd-new
[ INFO ] Installing port: security/amavisd-new (2020-07-07 14:14:56) ...
[ INFO ] Install port: mail/postfix
[ INFO ] Installing port: mail/postfix (2020-07-07 14:19:16) ...
[ INFO ] Install port: www/nginx
[ INFO ] Installing port: www/nginx (2020-07-07 14:22:50) ...
[ INFO ] Install port: www/uwsgi
[ INFO ] Installing port: www/uwsgi (2020-07-07 14:28:48) ...
[ INFO ] Install port: lang/php74
[ INFO ] Installing port: lang/php74 (2020-07-07 14:30:29) ...
[ INFO ] Install port: mail/php74-imap
[ INFO ] Installing port: mail/php74-imap (2020-07-07 14:35:50) ...
[ INFO ] Install port: archivers/php74-zip
[ INFO ] Installing port: archivers/php74-zip (2020-07-07 14:39:19) ...
[ INFO ] Install port: archivers/php74-bz2
[ INFO ] Installing port: archivers/php74-bz2 (2020-07-07 14:39:43) ...
[ INFO ] Install port: archivers/php74-zlib
[ INFO ] Installing port: archivers/php74-zlib (2020-07-07 14:39:51) ...
[ INFO ] Install port: devel/php74-gettext
[ INFO ] Installing port: devel/php74-gettext (2020-07-07 14:39:58) ...
[ INFO ] Install port: security/php74-openssl
[ INFO ] Installing port: security/php74-openssl (2020-07-07 14:40:06) ...
[ INFO ] Install port: www/php74-session
[ INFO ] Installing port: www/php74-session (2020-07-07 14:40:15) ...
[ INFO ] Install port: converters/php74-iconv
[ INFO ] Installing port: converters/php74-iconv (2020-07-07 14:40:24) ...
[ INFO ] Install port: textproc/php74-pspell
[ INFO ] Installing port: textproc/php74-pspell (2020-07-07 14:40:32) ...
[ INFO ] Install port: textproc/php74-dom
[ INFO ] Installing port: textproc/php74-dom (2020-07-07 14:42:02) ...
[ INFO ] Install port: net/php74-ldap
[ INFO ] Installing port: net/php74-ldap (2020-07-07 14:42:19) ...
[ INFO ] Install port: databases/php74-mysqli
[ INFO ] Installing port: databases/php74-mysqli (2020-07-07 14:42:27) ...
[ INFO ] Install port: devel/p5-Exporter-Tiny
[ INFO ] Installing port: devel/p5-Exporter-Tiny (2020-07-07 14:42:37) ...
[ INFO ] Install port: security/clamav
[ INFO ] Installing port: security/clamav (2020-07-07 14:42:40) ...
[ INFO ] Install port: mail/mlmmj
[ INFO ] Installing port: mail/mlmmj (2020-07-07 14:44:59) ...
[ INFO ] Install port: www/py-requests
[ INFO ] Installing port: www/py-requests (2020-07-07 14:45:06) ...
[ INFO ] Install port: net/pear-Net_LDAP2
[ INFO ] Installing port: net/pear-Net_LDAP2 (2020-07-07 14:45:45) ...
[ INFO ] Install port: mail/roundcube
[ INFO ] Installing port: mail/roundcube (2020-07-07 14:45:58) ...
[ INFO ] Install port: net/py-ldap
[ INFO ] Installing port: net/py-ldap (2020-07-07 14:48:45) ...
[ INFO ] Install port: databases/py-pymysql
[ INFO ] Installing port: databases/py-pymysql (2020-07-07 14:48:56) ...
[ INFO ] Install port: databases/py-sqlalchemy10
[ INFO ] Installing port: databases/py-sqlalchemy10 (2020-07-07 14:49:03) ...
[ INFO ] Install port: dns/py-dnspython
[ INFO ] Installing port: dns/py-dnspython (2020-07-07 14:49:59) ...
[ INFO ] Install port: www/webpy
[ INFO ] Installing port: www/webpy (2020-07-07 14:51:01) ...
[ INFO ] Install port: ftp/py-pycurl
[ INFO ] Installing port: ftp/py-pycurl (2020-07-07 14:51:05) ...
[ INFO ] Install port: sysutils/logwatch
[ INFO ] Installing port: sysutils/logwatch (2020-07-07 14:51:34) ...
[ INFO ] Install port: devel/py-Jinja2
[ INFO ] Installing port: devel/py-Jinja2 (2020-07-07 14:51:38) ...
[ INFO ] Install port: net/py-netifaces
[ INFO ] Installing port: net/py-netifaces (2020-07-07 14:54:15) ...
[ INFO ] Install port: security/py-bcrypt
[ INFO ] Installing port: security/py-bcrypt (2020-07-07 14:54:19) ...
[ INFO ] Install port: www/py-requests
[ INFO ] Installing port: www/py-requests (2020-07-07 14:54:30) ...
[ INFO ] Install port: net/py-ldap
[ INFO ] Installing port: net/py-ldap (2020-07-07 14:55:02) ...
[ INFO ] Install port: databases/py-pymysql
[ INFO ] Installing port: databases/py-pymysql (2020-07-07 14:55:13) ...
[ INFO ] Install port: www/py-cheroot
[ INFO ] Installing port: www/py-cheroot (2020-07-07 14:55:16) ...
[ INFO ] Install port: www/webpy
[ INFO ] Installing port: www/webpy (2020-07-07 14:55:28) ...
[ INFO ] Install port: ftp/py-pycurl
[ INFO ] Installing port: ftp/py-pycurl (2020-07-07 14:55:31) ...
[ INFO ] Total time of ports compiling: 29 seconds, ~= 0 minute(s)
+ < DEBUG > Post-install cleanup.
+ < DEBUG > Create symbol links for python2/3.
[ INFO ] Generate self-signed SSL cert (4096 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
+ < DEBUG > Create system account: vmail:vmail (2000:2000).
+ < DEBUG > Create system account: vmail:vmail.
+ < DEBUG > Create directory used to store global sieve filters: /var/vmail/sieve.
+ < DEBUG > Create system account: mlmmj:mlmmj.
+ < DEBUG > Create system account: iredadmin:iredadmin.
+ < DEBUG > Create system account: iredapd:iredapd.
+ < DEBUG > Generate LDIF file used to populate LDAP tree.
[ INFO ] Configure LDAP server: OpenLDAP.
+ < DEBUG > Stoping OpenLDAP.
awk: can't open file /etc/rc.conf.local
source line number 1
slapd_enable: -> YES
slapd_flags: -> -h 'ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/ ldaps://0.0.0.0/'
slapd_sockets: -> /var/run/openldap/ldapi
+ < DEBUG > Generate new server configuration file: /usr/local/etc/openldap/slapd.conf.
+ < DEBUG > Generate new client configuration file: /usr/local/etc/openldap/ldap.conf
+ < DEBUG > Create directory used to store OpenLDAP log file: /var/log/openldap
+ < DEBUG > Create empty log file: /var/log/openldap/openldap.log.
+ < DEBUG > Setting up syslog and logrotate config files for OpenLDAP.
+ < DEBUG > Restarting syslog.
+ < DEBUG > Create instance directory for openldap tree: /var/db/openldap-data/mydomain.co.uk.
+ < DEBUG > Starting OpenLDAP.
slapd not running? (check /var/run/openldap/slapd.pid).
+ < DEBUG > Sleep 5 seconds for LDAP daemon initialization ...
+ < DEBUG > Populate LDAP tree.
adding new entry "dc=mydomain,dc=co,dc=uk"
adding new entry "cn=vmail,dc=mydomain,dc=co,dc=uk"
adding new entry "cn=vmailadmin,dc=mydomain,dc=co,dc=uk"
adding new entry "o=domains,dc=mydomain,dc=co,dc=uk"
adding new entry "o=domainAdmins,dc=mydomain,dc=co,dc=uk"
adding new entry "domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"
adding new entry "ou=Users,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"
adding new entry "ou=Groups,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"
adding new entry "ou=Aliases,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"
adding new entry "ou=Externals,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"
adding new entry "mail=postmaster@mydomain.co.uk,ou=Users,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"
[ INFO ] Setup daily cron job to backup LDAP data with /var/vmail/backup/backup_openldap.sh
[ INFO ] Configure MariaDB database server.
+ < DEBUG > Initialize MySQL server.
+ < DEBUG > Stop MySQL service before initializing database or updating my.cnf.
+ < DEBUG > Enable mysql service when system start up.
mysql_enable: -> YES
+ < DEBUG > Disable 'skip-networking' in my.cnf.
+ < DEBUG > Set max_connections to 1024.
+ < DEBUG > Enable 'innodb_file_per_table' in my.cnf.
+ < DEBUG > Enable 'skip_grant_tables' option, so that we can reset password.
+ < DEBUG > Enable 'bind-address = 192.168.14.1' in my.cnf.
+ < DEBUG > Restart service: mysql-server.
mysql not running? (check /var/db/mysql/mailx.mydomain.co.uk.pid).
/usr/local/libexec/mysqld: Can't create file '/var/log/mysql/${hostname}.err' (errno: 13 "Permission denied")
+ < DEBUG > Sleep 10 seconds for MySQL daemon initialization ...
ERROR 1348 (HY000) at line 1: Column 'Password' is not updatable
+ < DEBUG > Remove 'skip_grant_tables'.
+ < DEBUG > Restart service: mysql-server.
+ < DEBUG > Sleep 10 seconds for MySQL daemon initialization ...
+ < DEBUG > Generate defauts file for MySQL client option --defaults-file: /root/.my.cnf.
+ < DEBUG > Delete anonymous database user.
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
+ < DEBUG > Enable chroot.
+ < DEBUG > Enable submission and additional transports required by Amavisd and Dovecot.
+ < DEBUG > Copy: /etc/{hosts,resolv.conf,localtime,services} -> /var/spool/postfix/etc/
postfix_enable: -> YES
sendmail_enable: NO -> NO
sendmail_submit_enable: YES -> NO
sendmail_outbound_enable: YES -> NO
sendmail_msp_queue_enable: YES -> NO
daily_clean_hoststat_enable: -> NO
daily_status_mail_rejects_enable: -> NO
daily_status_include_submit_mailq: -> NO
daily_submit_queuerun: -> NO
+ < DEBUG > Configure Postfix for SQL/LDAP lookup.
+ < DEBUG > Enable postscreen service.
+ < DEBUG > Comment out 'smtp inet ... smtpd' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'smtpd pass ... smtpd' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new smtp inet ... postscreen service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'tlsproxy unix ... tlsproxy' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'dnsblog unix ... dnsblog' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Update /usr/local/etc/postfix/main.cf to enable postscreen.
+ < DEBUG > Create /var/spool/postfix//var/db/postfix/postscreen_cache.db.
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
+ < DEBUG > Copy sample Dovecot config file to /usr/local/etc/dovecot/dovecot.conf.
+ < DEBUG > Configure dovecot: /usr/local/etc/dovecot/dovecot.conf.
+ < DEBUG > Copy global sieve filter rule file: /var/vmail/sieve/dovecot.sieve.
+ < DEBUG > Enable dovecot SASL support in postfix: /usr/local/etc/postfix/main.cf.
+ < DEBUG > Create directory for Dovecot plugin: Expire.
+ < DEBUG > Configure Dovecot logging.
+ < DEBUG > Generate modular syslog and log rotate config files for dovecot log files.
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
ln: /usr/lib/sendmail: Read-only file system
dovecot_enable: -> YES
[ INFO ] Configure Nginx web server.
nginx_enable: -> YES
php_fpm_enable: -> YES
[ INFO ] Configure PHP.
+ < DEBUG > Hide PHP info from remote users requests: /usr/local/etc/php.ini.
+ < DEBUG > Increase 'memory_limit' to 256M: /usr/local/etc/php.ini.
+ < DEBUG > Increase 'upload_max_filesize', 'post_max_size' to 10/12M: /usr/local/etc/php.ini.
+ < DEBUG > Disable php extension: suhosin. /usr/local/etc/php.ini.
[ INFO ] Configure mlmmj (mailing list manager).
+ < DEBUG > Generate script: /usr/local/bin/mlmmj-amime-receive.
+ < DEBUG > Create required directories: /var/vmail/mlmmj, /var/vmail/mlmmj-archive.
+ < DEBUG > Setting cron job for mlmmj maintenance.
+ < DEBUG > Enable mlmmj transport in postfix: /usr/local/etc/postfix/main.cf.
+ < DEBUG > Configure mlmmjadmin (RESTful API server used to manage mlmmj).
+ < DEBUG > Extracting: mlmmjadmin-3.0.tar.gz -> /opt
+ < DEBUG > Generate modular syslog and log rotate config files for mlmmjadmin.
mlmmjadmin_enable: -> YES
+ < DEBUG > Enable mlmmjadmin service.
[ INFO ] Configure ClamAV (anti-virus toolkit).
+ < DEBUG > Configure ClamAV: /usr/local/etc/clamd.conf.
+ < DEBUG > Configure freshclam: /usr/local/etc/freshclam.conf.
+ < DEBUG > Add clamav user to amavid group.
clamav_clamd_enable: -> YES
clamav_freshclam_enable: -> YES
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
+ < DEBUG > Generate DKIM pem files: /var/lib/dkim/mydomain.co.uk.pem.
amavisd_enable: -> YES
amavisd_pidfile: -> /var/amavis/var/amavisd.pid
amavis_milter_enable: -> NO
amavis_p0fanalyzer_enable: -> NO
+ < DEBUG > Setting cron job for vmail user to delete virus mail per month.
+ < DEBUG > Import Amavisd database and grant privileges.
[ INFO ] Configure SpamAssassin (content-based spam filter).
+ < DEBUG > Copy sample SpamAssassin config file: /root/iRedMail-1.3/samples/spamassassin/local.cf -> /usr/local/etc/mail/spamassassin/local.cf.
+ < DEBUG > Enable crontabs for SpamAssassin update.
+ < DEBUG > Compile SpamAssassin ruleset into native code.
config: registryboundaries: no tlds defined, need to run sa-update
Jul 7 14:58:17.282 [33289] info: generic: base extraction starting. this can take a while...
cd /
rm -rf /tmp/.spamassassin3328978NLe1tmp
[ INFO ] Configure iRedAPD (postfix policy daemon).
+ < DEBUG > Extracting: iRedAPD-4.1.tar.gz -> /opt
+ < DEBUG > Configure iRedAPD.
iredapd_enable: -> YES
+ < DEBUG > Make iredapd starting after system startup.
+ < DEBUG > Import iRedAPD database template.
+ < DEBUG > Generate modular syslog and log rotate config files for iRedAPD.
[ INFO ] Configure Roundcube webmail.
+ < DEBUG > Import SQL database and privileges for Roundcubemail.
+ < DEBUG > Configure database for Roundcubemail: /usr/local/www/roundcube/config/*.
+ < DEBUG > Setting global LDAP address book in Roundcube.
+ < DEBUG > Setup daily cron job to keep SQL database clean.
+ < DEBUG > Config plugin: managesieve.
+ < DEBUG > Config plugin: password.
+ < DEBUG > Config plugin: enigma.
+ < DEBUG > Mail sensitive administration info to postmaster@mydomain.co.uk.
+ < DEBUG > Set file permission to 0600: /var/cron/tabs/root.
+ < DEBUG > Set file permission to 0600: /var/cron/tabs/vscan.
[ INFO ] Updating SpamAssassin rules (sa-update), please wait ...
gpg: Warning: using insecure memory!
[ INFO ] Compiling SpamAssassin rulesets (sa-compile), please wait ...
Jul 7 14:58:23.052 [33507] info: generic: base extraction starting. this can take a while...
Jul 7 14:58:23.052 [33507] info: generic: extracting from rules of type body_0
0% [ ] 0.00 rules/sec --m--s LEFT
6% [== ] 79.29 rules/sec 00m06s LEFT
14% [====== ] 82.32 rules/sec 00m06s LEFT
22% [========= ] 88.35 rules/sec 00m05s LEFT
30% [============ ] 86.22 rules/sec 00m04s LEFT
38% [================ ] 90.61 rules/sec 00m04s LEFT
44% [=================== ] 82.56 rules/sec 00m03s LEFT
52% [====================== ] 88.06 rules/sec 00m03s LEFT
61% [========================== ] 89.98 rules/sec 00m02s LEFT
68% [============================= ] 88.60 rules/sec 00m02s LEFT
77% [================================= ] 93.92 rules/sec 00m01s LEFT
84% [==================================== ] 89.74 rules/sec 00m01s LEFT
90% [====================================== ] 78.68 rules/sec 00m00s LEFT
97% [========================================== ] 81.99 rules/sec 00m00s LEFT
100% [===========================================] 85.67 rules/sec 00m06s DONE
0% [ ] 0.00 bases/sec --m--s LEFT
10% [==== ] 502.74 bases/sec 00m04s LEFT
22% [========= ] 561.45 bases/sec 00m03s LEFT
44% [=================== ] 824.49 bases/sec 00m01s LEFT
100% [===========================================] 1375.92 bases/sec 00m01s DONE
Jul 7 14:58:31.681 [33507] info: body_0: 1228 base strings extracted in 8 seconds
cd /tmp/.spamassassin335070768Sotmp
reading bases_body_0.in
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c -i -b -o scanner4.c scanner4.re
re2c -i -b -o scanner5.c scanner5.re
re2c -i -b -o scanner6.c scanner6.re
re2c -i -b -o scanner7.c scanner7.re
/usr/local/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin335070768Sotmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.030/3.004004
Generating a Unix-style Makefile
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
Writing MYMETA.yml and MYMETA.json
make PREFIX=/tmp/.spamassassin335070768Sotmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.030/3.004004
cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
Running Mkbootstrap for body_0 ()
chmod 644 "body_0.bs"
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- body_0.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs 644
"/usr/local/bin/perl" "/usr/local/lib/perl5/5.30/ExtUtils/xsubpp" -typemap '/usr/local/lib/perl5/5.30/ExtUtils/typemap' body_0.xs > body_0.xsc
mv body_0.xsc body_0.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" body_0.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" scanner1.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" scanner2.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" scanner3.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" scanner4.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" scanner5.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" scanner6.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" scanner7.c
rm -f blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
cc -shared -L/usr/local/lib/perl5/5.30/mach/CORE -lperl -L/usr/local/lib -fstack-protector-strong body_0.o scanner1.o scanner2.o scanner3.o scanner4.o scanner5.o scanner6.o scanner7.o -o blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
chmod 755 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
Manifying 1 pod document
make install PREFIX=/tmp/.spamassassin335070768Sotmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.030/3.004004
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- body_0.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs 644
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /var/db/spamassassin/compiled/5.030/3.004004/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
Installing /var/db/spamassassin/compiled/5.030/3.004004/Mail/SpamAssassin/CompiledRegexps/body_0.pm
Installing /tmp/.spamassassin335070768Sotmp/ignored/lib/perl5/site_perl/man/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3
Appending installation info to /tmp/.spamassassin335070768Sotmp/ignored/lib/perl5/5.30/mach/perllocal.pod
cp /tmp/.spamassassin335070768Sotmp/bases_body_0.pl /var/db/spamassassin/compiled/5.030/3.004004/bases_body_0.pl
cd /
rm -rf /tmp/.spamassassin335070768Sotmp
[ INFO ] Updating ClamAV database (freshclam), please wait ...
+ < DEBUG > Send info of chosed packages to iRedMail team to help improve iRedMail:
+ < DEBUG >
+ < DEBUG > OPENLDAP=YES
+ < DEBUG > WEB_SERVER=NGINX
+ < DEBUG > ROUNDCUBE=YES
+ < DEBUG > SOGO=
+ < DEBUG > NETDATA=
+ < DEBUG > FAIL2BAN=
+ < DEBUG > IREDADMIN=
+ < DEBUG >