1

Topic: Error installing iredmail on Freebsd 9.2

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySql
- Linux/BSD distribution name and version: Freebsd 9.2
- Related log if you're reporting an issue:
====
===>  Building package for ca_root_nss-3.15.2
Creating package /usr/ports/security/ca_root_nss/work/ca_root_nss-3.15.2.tbz
Registering depends:.
Registering conflicts: ca-roots-[0-9]*.
Creating bzip'd tar ball in '/usr/ports/security/ca_root_nss/work/ca_root_nss-3.15.2.tbz'
tar: etc/ssl/cert.pem: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1

Stop in /usr/ports/security/ca_root_nss.
*** [run-depends] Error code 1

Stop in /usr/ports/ftp/curl.
*** [lib-depends] Error code 1

Stop in /usr/ports/security/gnupg.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.
root@starbuck:/root/iRedMail-0.8.5 # cd /usr/ports/security/ca_root_nss
root@starbuck:/usr/ports/security/ca_root_nss # make install clean
===>  Building package for ca_root_nss-3.15.2
Creating package /usr/ports/security/ca_root_nss/work/ca_root_nss-3.15.2.tbz
Registering depends:.
Registering conflicts: ca-roots-[0-9]*.
Creating bzip'd tar ball in '/usr/ports/security/ca_root_nss/work/ca_root_nss-3.15.2.tbz'
tar: etc/ssl/cert.pem: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1

Stop in /usr/ports/security/ca_root_nss.
*** [install] Error code 1

Stop in /usr/ports/security/ca_root_nss.

2

Re: Error installing iredmail on Freebsd 9.2

Looks like a broken port. Please try to get the latest ports tree and try again.

3

Re: Error installing iredmail on Freebsd 9.2

Other problem with the FreeBSD 9.2
#-name -a
9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013
#portsnap fetch update
in the attache pkg_verion run
After install iRedMail v0.8.5 on start OC errors:

Oct 30 08:48:54 post-... fail2ban.actions.action: ERROR  iptables -N fail2ban-ssh iptables -A fail2ban-ssh -j RETURN iptables -I INPUT -p tcp --dport ssh
Oct 30 08:48:54 post-... fail2ban.actions.action: ERROR  iptables -N fail2ban-roundcube iptables -A fail2ban-roundcube -j RETURN iptables -I INPUT -p tcp
Oct 30 08:48:54 post-... fail2ban.actions.action: ERROR  iptables -N fail2ban-dovecot iptables -A fail2ban-dovecot -j RETURN iptables -I INPUT -p tcp -m
Oct 30 08:48:54 post-... fail2ban.actions.action: ERROR  iptables -N fail2ban-postfix iptables -A fail2ban-postfix -j RETURN iptables -I INPUT -p tcp -m
Oct 30 08:48:54 post-... root: /etc/rc: WARNING: failed to start apache22
Oct 30 09:01:12 post-... sos: /usr/local/etc/rc.d/apache22: WARNING: failed to start apache22

#/usr/local/etc/rc.d/apache start

Performing sanity check on apache22 configuration:
httpd: Syntax error on line 483 of /usr/local/etc/apache22/httpd.conf: Could not open configuration file /usr/local/etc/apache22/extra/httpd-ssl.conf: No such file or directory
Starting apache22.
httpd: Syntax error on line 483 of /usr/local/etc/apache22/httpd.conf: Could not open configuration file /usr/local/etc/apache22/extra/httpd-ssl.conf: No such file or directory

Dir is not exist /usr/local/etc/apache22/extra/...
Copy dir .../extra/ with all files from old server - is good idea, servers START. But is not good for new install.
And what do with fail2ban-ssh&iptables?

Post's attachments

pkg_version.txt 11.23 kb, 1 downloads since 2013-10-30 

You don't have the permssions to download the attachments of this post.

4

Re: Error installing iredmail on Freebsd 9.2

*) Fail2ban, it's a bug in iRedMail. We should configure Fail2ban to use ipfw instead of iptables. Contributions are always welcome.
*) Apache22, I didn't see this issue before, will try to reproduce this issue later.

Hoper wrote:

Dir is not exist /usr/local/etc/apache22/extra/...

Could you please show me output of below command?

# ls -l /usr/local/etc/apache22/

According to port file '/usr/ports/www/apache2/pkg-plist', seems /usr/local/etc/apache22/extra/ will be removed.

5 (edited by Hoper 2013-10-31 14:36:37)

Re: Error installing iredmail on Freebsd 9.2

list
# ls -l /usr/local/etc/apache22/
total 116
drwxr-xr-x  2 root  wheel    512 Oct 29 16:15 Includes
drwxr-xr-x  2 root  wheel    512 Oct 30 09:43 extra  it's copy from other server
-rw-r--r--  1 root  wheel  18564 Oct 29 16:14 httpd.conf
-rw-r--r--  1 root  wheel  18463 Oct 29 16:14 httpd.conf.2013.10.29.14.43.10
-rw-r--r--  1 root  wheel  12958 Oct 29 15:50 magic
-rw-r--r--  1 root  wheel  53011 Oct 29 15:50 mime.types

6

Re: Error installing iredmail on Freebsd 9.2

Some issue I add smile
I have 2 servers iRedMail on LDAP (ubuntu 12.04 and Freebsd 9.2).
Base of users /var/vmail/... mounted with NFS on other server.
1. I installed iRedMail on Ubuntu - OK. All it's work OK.

#mounted.nfs 1.1.1.1:/var/vmail-str /var/vmail 
#df -h
...
1.1.1.1:/var/vmail-str   17T  200G   16T   2% /var/vmail
#ls -l /var/vmail
drwxr-xr-x 4 root  vmail 4096 May 18 03:30 backup
drwx------ 2 vmail vmail 4096 May 17 16:07 sieve
drwx------ 5 vmail vmail 4096 May 29 15:11 vmail1

change /etc/rc.local (not to /etc/fstab - have bag, not mount with load OC)
It's good.
2. I installed iRedMail on FreeBSD - OK (if don't think about apache bag smile ) All it's work OK.
After this:

#mount -t nfs 1.1.1.1:/var/vmail-str /var/vmail 
#df -h 
1.1.1.1:/var/vmail-str     16T    199G     15T     1%    /var/vmail 
#ls -l /var/vmail
drwxr-xr-x  4 root   vmail  4096 May 18 03:30 backup
drwx------  2 vmail  vmail  4096 May 17 16:07 sieve
drwx------  5 vmail  vmail  4096 May 29 15:11 vmail1

I have a trubles with post thrught FreeBSD. Roundcube show errros.

Ошибка сервера: STATUS: Internal error occurred. Refer to server log for more information. [2013-10-31 10:05:44]

But if I copy this dirs to local filesystem (umount  /var/vmail) all OK.
I don't know what think about it. sad
P.S. If it will be Ubuntu - all OK

7

Re: Error installing iredmail on Freebsd 9.2

Hoper wrote:

Ошибка сервера: STATUS: Internal error occurred. Refer to server log for more information. [2013-10-31 10:05:44]

Then any related log in Roundcube log file (it's same as Postfix log file, /var/log/maillog)?
if no detailed log, please try to turn on debug mode for special protocol (IMAP, POP3, SMTP, etc).