1 (edited by marian78 2016-02-15 02:40:23)

Topic: install help - Freenas + iRedmail v0.9.4

hi,

i try install iRedmail v0.9.4 (downloaded 10.2.2016) in Freenas standard jail (FreeBSD 9.3).

now im stop et error:
===>  spdylay-1.3.2 spdylay requires OpenSSL 1.0.1+.
*** [fetch] Error code 1

Stop in /usr/ports/www/spdylay.
*** [fetch-recursive] Error code 1


I try install openssl from ports - openssl 1.0.2_8. But base system openssl is still 0.9.8. How can i force install 1.0.1+ ?

EDIT> edit question, it was dummy....





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

----

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

2

Re: install help - Freenas + iRedmail v0.9.4

It might be better to post in FreeBSD mailing list for port special question. sad

3 (edited by marian78 2016-02-15 00:54:57)

Re: install help - Freenas + iRedmail v0.9.4

Hi,

i installed without errors after solving problem with openssl. Now i cant start apache24:

AH00526: Syntax error on line 1 of /usr/local/etc/apache24/Includes/awstats.conf:
Can't load driver file apr_dbd_pgsql.so

awstats.conf:

DBDriver pgsql
# Important note: use 'password=' for MySQL, 'password=' for PostgreSQL.
DBDParams "host=127.0.0.1 port=5432 dbname=vmail user=vmail password=xxxxxxxx"

<Directory /usr/local/www/awstats/cgi-bin>
    DirectoryIndex awstats.pl
    Options ExecCGI

    AuthType Basic
    AuthName "Authentication required"
    AuthBasicProvider dbd
    AuthDBDUserPWQuery "SELECT password FROM mailbox WHERE username = %s AND isglobaladmin=1 LIMIT 1"

    Require valid-user
</Directory>

In install i select: sogo, apache, PostgreSQL


How to solve? Thx.

4

Re: install help - Freenas + iRedmail v0.9.4

You need to rebuild port devel/apr1 with pgsql support. Or, disable/remove awstats config file /usr/local/etc/apache24/Includes/awstats.conf, so that it doesn't require pgsql connection.

5

Re: install help - Freenas + iRedmail v0.9.4

Hi, thx for your reply. I again compile apr1 with pgsql support and it help to start apache24 without problem. But, i cant open any page (iredadmin, sogo,...) - internal error or misconfiguration. I decide to install all again in new jail. smile

6

Re: install help - Freenas + iRedmail v0.9.4

Any related error in their log files? For iredadmin, it logs to Apache (or uwsgi log file if you're running Nginx). SOGo has its own log file /var/log/sogo/sogo.log.

7 (edited by marian78 2016-02-16 21:42:14)

Re: install help - Freenas + iRedmail v0.9.4

After new installation i have iRedmail (change install configuration to: mysql, roundcube, sogo, nginx).

Can access roundcube (include admin console), sogo.

But i cant access:

1. Awstats (404 Not Found) - output from ./var/log/nginx/error.log:
"/usr/local/www/apache24/data/awstats/awstats.pl" failed (2: No such file or directory), client: 192.168.xx.xxx, server: _, request: "GET /awstats/awstats.pl?config=smtp HTTP/1.1", host: "192.168.xx.xxx"

i chcecked /usr/local/www/apache24/data/awstats, but no awstats folder exist


2.preferences in sogo (502 Bad Gateway) - no error in sogo logs

8

Re: install help - Freenas + iRedmail v0.9.4

marian78 wrote:

i chcecked /usr/local/www/apache24/data/awstats, but no awstats folder exist

Was awstats package installed by iRedMail?

marian78 wrote:

2.preferences in sogo (502 Bad Gateway) - no error in sogo logs

Any error in Nginx log file? Also, keep monitoring SOGo log file.

9 (edited by marian78 2016-02-17 03:11:50)

Re: install help - Freenas + iRedmail v0.9.4

1. I run pkg list | grep 'awstats' but nothing found. awstats is not installed?

2. nginx log:

upstream prematurely closed connection while reading response header from upstream, client: 192.168.xxx.xxx, server: _, request: "GET /SOGo/so/xxx@example.com/preferences HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo/so/xxx@exam … references", host: "192.168.xxx.xxx", referrer: "https://192.168.xxx.xxx/SOGo/so/xxx@exa … /Mail/view"


3. i mean that fail2ban is also not installed, strange....

Post's attachments

Snímka.PNG
Snímka.PNG 7.71 kb, file has never been downloaded. 

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

10

Re: install help - Freenas + iRedmail v0.9.4

*) Awstats is available when you use Apache. Because Nginx doesn't have module for sql/ldap authentication.
*) Fail2ban is not installed by iRedMail. This is expected.

*) About the Nginx error, seems sogo has something wrong. but if there's no related log in SOGo log file, it's hard to say what the problem is.

11 (edited by marian78 2016-02-17 18:14:35)

Re: install help - Freenas + iRedmail v0.9.4

Thx for all your answers and time, I learned something new.

If is wrong something with SOGo, is there any way how to reinstall only SOGo?

Now i will try install fail2ban.... Ok, i install fail2ban, i use this post: http://www.iredmail.org/forum/post44266.html#p44266

12

Re: install help - Freenas + iRedmail v0.9.4

Are you sure there's no any log in SOGo log file?

13 (edited by marian78 2016-02-17 18:11:57)

Re: install help - Freenas + iRedmail v0.9.4

Here is my sogo.log. It's great (big), I do not bother you.... smile

Post's attachments

sogo.log 47.7 kb, 3 downloads since 2016-02-17 

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

14

Re: install help - Freenas + iRedmail v0.9.4

There's one error in sogo.log:

EXCEPTION: <NSException: 0x813038c80> NAME:NSRangeException REASON:Index 21 is out of range 21 (in 'objectAtIndex:') INFO:{Array = ("V\U00FDro\U010Dia", Narodeniny, Obchod, Hovory, "Z\U00E1kazn\U00EDci", Konkurencia, "Ob\U013E\U00FAbene", "Sledova\U0165", "Dar\U010Deky", "Pr\U00E1zdniny", "N\U00E1pady", Stretnutia, "Probl\U00E9ma", "R\U00F4zne", "Osobn\U00E9", Projekty, "\U0160t\U00E1tne sviatky", Stav, "Dod\U00E1vatelia", Cestovanie, Dovolenka); Count = 21; Index = 21; }

The error message is not clear, i cannot figure out what the problem is. Could you help verify whether it happens each time when you got "502 bad gateway" error in Nginx? If yes, i suggest posting to SOGo mailing list to get support from SOGo developers.

15

Re: install help - Freenas + iRedmail v0.9.4

Hi, again i decided to install iredmail, but for now in real HW on ubuntu 14.04 server...... Maybe all will be working out of the box. smile