[fixed in Beta] stable 0.9.9 - clean install on FreeBSD 11.2 jail fails due to mysql port securing connections

Issue #166 resolved
Craig Butler created an issue

Looks like when iRedmail.sh script builds and installs the mysql port at some point it secures it and then later in build other configuration fails (but doesn’t HUP the build!)


  • Start iRedMail Configurations

[ INFO ] Generate self-signed SSL cert (2048 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
[ INFO ] Configure Nginx web server.
[ INFO ] Configure PHP.
[ INFO ] Configure LDAP server: OpenLDAP.
[ INFO ] Setup daily cron job to backup LDAP data with /var/vmail/backup/backup_openldap.sh
[ INFO ] Configure MySQL database server.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[ 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 mlmmj (mailing list manager).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[ INFO ] Configure iRedAdmin (official web-based admin panel).
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[ INFO ] Configure Roundcube webmail.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[ INFO ] Configure SOGo Groupware (Webmail, Calendar, Address Book, ActiveSync).
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Comments (8)

  1. Craig Butler reporter

    used ezjail-admin to create a zfs backed jail with latest ports tree pulled down,

    populated /etc/resolv.conf,

    added LICENSES_ACCEPTED+=DCC to /etc/make.conf,

    installed ca_root_nss port,

    installed bash port,

    fixed altermime port,

    fetched and unpacked iRedMail-0.9.9.tar.bz2 tarball,

    ran bash ./iRedmail.sh

  2. Craig Butler reporter

    I notice that on install mysql57-server created /root/.mysql-secret with a completely different password to the one set via the ncursers menu on iRedmail.sh script.

  3. Craig Butler reporter

    iRedMail-1.0-beta1 worked better… same machine fresh jail -


    • Start iRedMail Configurations

    [ INFO ] Generate self-signed SSL cert (2048 bits, expire in 10 years).
    [ INFO ] Generate Diffie Hellman Group with openssl, please wait.
    [ INFO ] Create required system accounts.
    [ INFO ] Configure Nginx web server.
    [ INFO ] Configure PHP.
    [ 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.
    [ 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 mlmmj (mailing list manager).
    [ INFO ] Configure ClamAV (anti-virus toolkit).
    [ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
    [ INFO ] Configure SpamAssassin (content-based spam filter).
    [ INFO ] Configure iRedAPD (postfix policy daemon).
    [ INFO ] Configure OpenDMARC.
    [ INFO ] Configure iRedAdmin (official web-based admin panel).
    [ INFO ] Configure Roundcube webmail.
    [ INFO ] Configure SOGo Groupware (Webmail, Calendar, Address Book, ActiveSync).
    [ INFO ] Configure netdata.

  4. Zhang Huangbin repo owner

    iRedMail-1.0-beta1 was fully tested on FreeBSD 12.x, so it catches up the changes in FreeBSD, especially changes in ports tree.

  5. Log in to comment