1

Topic: Installation/configuration broken on FreeBSD 11 jail

============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: FreeBSD 11 (jail)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- Related log if you're reporting an issue:
==============================

Hi,

i've started the installation on the bash prompt with:

LOCAL_ADDRESS='10.0.0.2' bash iRedMail.sh

After installation of ports (successful) the following message appears:

********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
[ INFO ] Configure Nginx web server and uWSGI.
[ INFO ] Configure PHP.
[ INFO ] Configure MariaDB database server.
tail: /root/.mysql_secret: No such file or directory
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).

Any help is highly appreciated.

regards pylox

----

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

2

Re: Installation/configuration broken on FreeBSD 11 jail

pylox wrote:

[ INFO ] Configure MariaDB database server.
tail: /root/.mysql_secret: No such file or directory

BUG.
I will try to reproduce this error later today and come back with a fix.

3

Re: Installation/configuration broken on FreeBSD 11 jail

Fixed. Please re-download iRedMail-0.9.6 and try it with a fresh FreeBSD OS:
http://www.iredmail.org/download.html

4

Re: Installation/configuration broken on FreeBSD 11 jail

Hi Zhang,
thx for your quick fix. But (arrghh..) the problem ist still not solved.

the error

INFO ] Configure MariaDB database server.
tail: /root/.mysql_secret: No such file or directory

is gone.
But this error is still not resolved

ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mail.xxxxx.yy' (using password: YES)

It looks like the configuration LOCAL_ADDRESS='10.0.0.2 is not used ? So there is no authentication on mariaDB possible...
Greetings pylox

5

Re: Installation/configuration broken on FreeBSD 11 jail

I don't have a FreeBSD Jail right now, is it possible to give me access to your server for troubleshooting?

6

Re: Installation/configuration broken on FreeBSD 11 jail

Hi Zhang,

yeah will do so - sounds like a good plan...;-)
Do you need a clean FreeBSD Jail or one with broken installation ? I did already a zfs rollback on this jail but no problem i can do a new install...

Send you the access data tomorrow per Telegram.

regards pylox

7

Re: Installation/configuration broken on FreeBSD 11 jail

Didn't get your message on Telegram yet. Did i miss something?

8

Re: Installation/configuration broken on FreeBSD 11 jail

Hi Zwang,
No,  there is nothing to miss...:-)
There was a question regarding the installation from my previos post...
Now i'am the hole day at workshop so i can send you the credentials earliest today in the evening.

Greetings pylox

9

Re: Installation/configuration broken on FreeBSD 11 jail

Hi Zhang,

because telegram doesnt work for me i sent a mail to support@iredmail.org

Regards pylox

10

Re: Installation/configuration broken on FreeBSD 11 jail

Hi Zhang,

thanks for your good work. I did a new fresh install in the FreeBSD Jail and from my point of view everything went smooth as well. Excellent !!

Greetings
pylox