1

Topic: FreeBSD 10.0 in ezjail - problem

Hello,

I am using the latest updated FreeBSD 10 with the latest iRedMail-0.8.7, trying to install in into ezjail using the wiki: http://www.iredmail.org/wiki/index.php? … eeBSD.Jail and get the following error. Would you please help?

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: 10.0-RELEASE-p3
- Related log if you're reporting an issue:

< SKIP > Fetching all distfiles for port databases/mysql55-server and dependencies
< SKIP > Fetching all distfiles for port mail/dovecot2 and dependencies
< INFO > Fetching all distfiles for port mail/dovecot2-pigeonhole and dependencies
===> Fetching all distfiles for dovecot-pigeonhole-0.4.2_3 and dependencies
===>   dovecot-pigeonhole-0.4.2_3 depends on file: /usr/local/sbin/pkg - found
=> dovecot-2.2-pigeonhole-0.4.2.tar.gz doesn't seem to exist in /var/ports/distfiles/.
=> Attempting to fetch http://www.rename-it.nl/dovecot/2.2/dov … 4.2.tar.gz
fetch: http://www.rename-it.nl/dovecot/2.2/dov … .2.tar.gz: Not Found
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports … 4.2.tar.gz
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports … .2.tar.gz: File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /var/ports/distfiles/ and try again.
*** Error code 1

Stop.
make[1]: stopped in /basejail/usr/ports/mail/dovecot2-pigeonhole
*** Error code 1

Stop.
make: stopped in /basejail/usr/ports/mail/dovecot2-pigeonhole
< ERROR > Tarballs were not downloaded correctly, please fix it manually and then re-execute iRedMail.sh.

====

2

Re: FreeBSD 10.0 in ezjail - problem

It cannot fetch required file, you can try to find it with Google, then download it manually and copy it to /var/ports/distfiles/ as mentioned.

Search "index of dovecot-2.2-pigeonhole-0.4.2.tar.gz" will give you many result.

3

Re: FreeBSD 10.0 in ezjail - problem

OK, I have managed to install iredmail. I have copied dovecot-2.2-pigeonhole-0.4.2.tar.gz from  http://pigeonhole.dovecot.org/releases/ … 4.2.tar.gz and setup seems to be finished succesfully.

Now there is another problem, iredadmin returns internal server error, roundcube is not able to connect to database. Never had such problems with iredmail in the past..

4

Re: FreeBSD 10.0 in ezjail - problem

teo wrote:

iredadmin returns internal server error ... roundcube is not able to connect to database

What's the related log in Apache log file?

5

Re: FreeBSD 10.0 in ezjail - problem

Hi ZhangHuangbin,

Thank you for your answer! There is a error 500:

[14/May/2014:16:34:16 +0000] "GET /iredadmin/ HTTP/1.1" 500 21

6

Re: FreeBSD 10.0 in ezjail - problem

I suppose that this could have more sense:

root@mx1:/var/log # tail -f /var/log/maillog
May 14 16:48:10 mx1 postfix/pickup[1345]: warning: maildrop/3539C38551C: error writing 39FCF3855A5: queue file write error
May 14 16:49:10 mx1 postfix/pickup[1345]: 404843855A5: uid=0 from=<root>
May 14 16:49:10 mx1 postfix/proxymap[1349]: warning: connect to mysql server 109.206.1.1: Access denied for user 'vmail'@'mx1.domain.com' (using password: YES)
May 14 16:49:10 mx1 postfix/cleanup[1350]: warning: proxy:mysql:/usr/local/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mx1.domain.com"
May 14 16:49:10 mx1 postfix/cleanup[1350]: warning: 404843855A5: sender_bcc_maps map lookup problem -- message not accepted, try again later
May 14 16:49:10 mx1 postfix/pickup[1345]: warning: maildrop/3539C38551C: error writing 404843855A5: queue file write error
May 14 16:50:10 mx1 postfix/pickup[1345]: 49FAA3855A5: uid=0 from=<root>
May 14 16:50:10 mx1 postfix/cleanup[1350]: warning: proxy:mysql:/usr/local/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "root@mx1.domain.com"
May 14 16:50:10 mx1 postfix/cleanup[1350]: warning: 49FAA3855A5: sender_bcc_maps map lookup problem -- message not accepted, try again later
May 14 16:50:10 mx1 postfix/pickup[1345]: warning: maildrop/3539C38551C: error writing 49FAA3855A5: queue file write error

7

Re: FreeBSD 10.0 in ezjail - problem

teo wrote:

May 14 16:49:10 mx1 postfix/proxymap[1349]: warning: connect to mysql server 109.206.1.1: Access denied for user 'vmail'@'mx1.domain.com' (using password: YES)

SQL passwords of "vmail" user in /usr/local/etc/postfix/mysql/*.cf are incorrect. Looks like your iRedMail installation was not successfully completed.

8

Re: FreeBSD 10.0 in ezjail - problem

Here was the end of the installation:

*************************************************************************
* iRedMail-0.8.7 installation and configuration complete.
*************************************************************************

< INFO > Mail sensitive administration info to postmaster@domain.com.
< 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 Wed May 14 15:54:51 2014
Downloading main.cvd [100%]
main.cvd updated (version: 55, sigs: 2424225, f-level: 60, builder: neo)
Downloading daily.cvd [100%]
daily.cvd updated (version: 18980, sigs: 950787, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 236, sigs: 43, f-level: 63, builder: dgoddard)
Database updated (3375055 signatures) from database.clamav.net (IP: 69.12.162.28)
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock: No such file or directory
********************************************************************
* URLs of installed web applications:
*
* - Webmail: httpS://mx1.domain.com/mail/
* - Admin Panel (iRedAdmin): httpS://mx1.domain.com/iredadmin/
*   + Username: postmaster@domain.com, Password: wduUW837BNq187
*

********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /root/iRedMail-0.8.7/iRedMail.tips
*
* And it's sent to your mail account .
*
* Please reboot your system to enable mail services.
*
********************************************************************


What can you suggest?

9

Re: FreeBSD 10.0 in ezjail - problem

Found more a bit upper:

********************************************************************
* Start iRedMail Configurations
********************************************************************
< INFO > Create self-signed SSL certification files.
< INFO > Create required system accounts: vmail, iredapd, iredadmin.
< INFO > Configure Apache web server and PHP.
/root/iRedMail-0.8.7/functions/apache_php.sh: line 102: /boot/loader.conf: Read-only file system
< INFO > Configure MySQL database server.
ERROR 1045 (28000): Access denied for user 'root'@'mx1.domain.com' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mx1. domain.com' (using password: YES)
< INFO > Configure Postfix (Message Transfer Agent).
< INFO > Configure Cluebringer (postfix policy server).
ERROR 1045 (28000): Access denied for user 'root'@'mx1.domain.com' (using password: YES)
< INFO > Configure Dovecot (pop3/imap/managesieve server).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new (interface between MTA and content checkers).
ERROR 1045 (28000): Access denied for user 'root'@'mx1.domain.com' (using password: YES)
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure iRedAPD (postfix policy daemon).
< INFO > Configure iRedAdmin (official web-based admin panel).
ERROR 1045 (28000): Access denied for user 'root'@'mx1.domain.com' (using password: YES)
< INFO > Configure Awstats (logfile analyzer for mail and web server).
< INFO > Configure Roundcube webmail.
ERROR 1045 (28000): Access denied for user 'root'@'mx1.domain.com' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'mx1.domain.com' (using password: YES)
< INFO > Configure phpMyAdmin (web-based MySQL management tool).

10

Re: FreeBSD 10.0 in ezjail - problem

Just to add that it was a clean updated FreeBSD 10 release-p3 with ezjail on board... How to complete the installation?

11

Re: FreeBSD 10.0 in ezjail - problem

And I am able to connect to MySQL:

root@mx1:/usr/local/etc/postfix/mysql # mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 5.5.37 Source distribution

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

12

Re: FreeBSD 10.0 in ezjail - problem

teo wrote:

< INFO > Configure Apache web server and PHP.
/root/iRedMail-0.8.7/functions/apache_php.sh: line 102: /boot/loader.conf: Read-only file system

This is safe to ignore.

teo wrote:

< INFO > Configure MySQL database server.
ERROR 1045 (28000): Access denied for user 'root'@'mx1.domain.com' (using password: YES)

*) Did you have MySQL installed before iRedMail installation?
*) Did you type the correct MySQL root password during iRedMail installation?

13

Re: FreeBSD 10.0 in ezjail - problem

Dear ZhangHuangbin,

Yes, of course! That was a fresh installation of FreeBSD 10 Release, freebsd-update fetch/install (makes it 10-p3), ezjail, and iredmail inside ezjail using this tutorial: http://www.iredmail.org/wiki/index.php? … eeBSD.Jail

Would you please check if this should work on the latest FreeBSD or no? What could you suggest to do next?

14

Re: FreeBSD 10.0 in ezjail - problem

I don't know what happened on your server, can you reproduce it with a new/fresh FreeBSD 10?

15

Re: FreeBSD 10.0 in ezjail - problem

Hi ZhangHuangbin,

OK, thank you, I will try to do this again so.

16

Re: FreeBSD 10.0 in ezjail - problem

Dear ZhangHuangbin,

I have reinstalled everything with default ezjail settings (jails are in /jails and not /var/jails like I changed this before) and all seems to be great! Thank you for your help here!

Cheers