1

Topic: iRedMail-0.9.8-beta2 has been released

Dear all,

Second beta release of iRedMail-0.9.8 has been released.

WARNING: This is a beta release, not recommended for production use.

Below are changes since iRedMail-0.9.8-beta1 (release notes):

Fixed issues
  • Nginx: Security fix: not correctly block access to dot files, and Roundcube sensitive data.

  • Postfix: don't block the HELOs used by SendGrid.

  • mlmmjadmin: Use port 7790 (instead of 7779).

  • php: Enable php function 'php_uname', required by Roundcube.

  • Update uwsgi to 2.0.16 on OpenBSD.

  • installer: Use 'sha256sum' instead of 'shasum' on Linux. sha256sum is offered by package 'coreutils', 'shasum' is offered by perl or perl module.

----

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

2

Re: iRedMail-0.9.8-beta2 has been released

I installed beta1 , netdata was working without issues , after beta 2 , i tested the netdata is not working in Centos 7.4 and Debian 9.3 , console give memory errors ..

3

Re: iRedMail-0.9.8-beta2 has been released

borgeois wrote:

after beta 2 , i tested the netdata is not working in Centos 7.4 and Debian 9.3 , console give memory errors ..

Could you please show me the error message?

4

Re: iRedMail-0.9.8-beta2 has been released

borgeois wrote:

after beta 2 , i tested the netdata is not working in Centos 7.4 and Debian 9.3 , console give memory errors ..

Fixed this issue and repacked beta2. Could you please try again?

5

Re: iRedMail-0.9.8-beta2 has been released

after repacking , i tested debian 9.3 :
netdata passing 502 Bad gateway after auth password authentication
roundcube could not connect to the mysql database  after reboot and initial test, pushing out of memory message and mailbox came empty. after a few try , i would connect to the roundcube.
SOGo did not respond , gave 502 bad gateway response.

nothing is like the first beta package , seems something broken .. i will dig into the system later on and i will give more debugging info.

6

Re: iRedMail-0.9.8-beta2 has been released

after another 10 minutes testing , roundcube could not connect storage back end and can not fetch the mail in the mailbox directory ..  this release and previous beta release except initial beta1 , it is far far away from stable release.

7

Re: iRedMail-0.9.8-beta2 has been released

update on testing debian 9.3
if i dont choose SOGo , everything runs as it is supposed to be .. memory is OK , no errors , netdata working like a charm.

testing on centos 7.4 without SOGo
roundcube :ok
memory errors : no
netdata : OK
mailserver : blazing fast

seems that SOGo is breaking something.

8

Re: iRedMail-0.9.8-beta2 has been released

Any related error in log file? It's hard to troubleshoot without log.

9

Re: iRedMail-0.9.8-beta2 has been released

i will simulate the environment on several OSes and i will update you with log files , just let me know which log files you need for troubleshooting.

10

Re: iRedMail-0.9.8-beta2 has been released

Testing feedback :
Platform : Debian 9.3

when you choose SOGo on installation option , after successful installation , firewall settings question is not being asked. it finishes the installation without iptables rules.
if you dont choose SOGo , firewall rules apply question is being asked.

11 (edited by arneboeses 2018-02-26 22:07:22)

Re: iRedMail-0.9.8-beta2 has been released

OS: FreeBSD 11.1 (Jail)
iredmail: Beta2

After a fresh installation nginx is not starting:
#####
nginx: [emerg] open() "/usr/local/etc/nginx/conf-enabled/netdata.conf" failed (2: No such file or directory) in /usr/local/etc/nginx/nginx.conf:10
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
#####
There is no netdata.conf in   .../conf-available/

12

Re: iRedMail-0.9.8-beta2 has been released

borgeois wrote:

when you choose SOGo on installation option , after successful installation , firewall settings question is not being asked. it finishes the installation without iptables rules.
if you dont choose SOGo , firewall rules apply question is being asked.

I cannot reproduce this issue locally. sad

13

Re: iRedMail-0.9.8-beta2 has been released

arneboeses wrote:

OS: FreeBSD 11.1 (Jail)
iredmail: Beta2

After a fresh installation nginx is not starting:
#####
nginx: [emerg] open() "/usr/local/etc/nginx/conf-enabled/netdata.conf" failed (2: No such file or directory) in /usr/local/etc/nginx/nginx.conf:10
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
#####
There is no netdata.conf in   .../conf-available/

Fixed and repacked iRedMail-0.9.8-beta2.

As a quick solution, please remove file /usr/local/etc/nginx/conf-enabled/netdata.conf directly.

14

Re: iRedMail-0.9.8-beta2 has been released

Hi,

In this doc:
https://docs.iredmail.org/integration.mlmmj.mysql.html

In the below text -  there is a missing single-quote after the archive folder.

    Add extra required parameters in /opt/mlmmjadmin/settings.py to use the directory used to store mailing lists:

MLMMJ_SPOOL_DIR = '/var/vmail/mlmmj'
MLMMJ_ARCHIVE_DIR = '/var/vmail/mlmmj-archive
MLMMJ_DEFAULT_PROFILE_SETTINGS.update({'smtp_port': 10027})

15

Re: iRedMail-0.9.8-beta2 has been released

I tried to create ML as per below.
It fails with 'already exists', but then reports the real error when I tried to delete it.

[root@nebula mlmmjadmin]# python tools/maillist_admin.py create test-ml@example.com 
Error while interactive with backend: ALREADY_EXISTS
[root@nebula mlmmjadmin]# python tools/maillist_admin.py delete test-ml@example.com
Error while interactive with backend: OperationalError(1045, "Access denied for user 'vmailadmin'@'localhost' (using password: YES)")
[root@nebula mlmmjadmin]# 

Could the 'create' error report the "access denied" error too?

Rob.

16

Re: iRedMail-0.9.8-beta2 has been released

Once I fixed the 'vmailadmin' password issue, I then got this error.

[root@nebula mlmmjadmin]# python tools/maillist_admin.py create test-ml@example.com
Traceback (most recent call last):
  File "tools/maillist_admin.py", line 123, in <module>
    _json = r.json()
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 802, in json
    return json.loads(self.text, **kwargs)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[root@nebula mlmmjadmin]# 

Can you advise what the cause of this could be.

Thanks, Rob.

17

Re: iRedMail-0.9.8-beta2 has been released

rob.ired wrote:

In the below text -  there is a missing single-quote after the archive folder.

Fixed.

rob.ired wrote:

Once I fixed the 'vmailadmin' password issue, I then got this error.

Is mlmmjadmin service running?

18

Re: iRedMail-0.9.8-beta2 has been released

I thought so.....

but, netstat shows the port is not listening.

The service fails due to "directory doesn't exist: /var/vmail/mlmmj".
And yet the folder does exist.

[root@nebula mlmmjadmin]# systemctl restart mlmmjadmin                                                                                 
[root@nebula mlmmjadmin]# systemctl status mlmmjadmin 
● mlmmjadmin.service - RESTful API server used to manage mlmmj mailing list manager
   Loaded: loaded (/usr/lib/systemd/system/mlmmjadmin.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2018-03-07 01:00:41 AEDT; 2s ago
  Process: 10656 ExecStopPost=/usr/bin/rm -rf /var/run/mlmmjadmin (code=exited, status=0/SUCCESS)
  Process: 10654 ExecStop=/usr/sbin/uwsgi --stop /var/run/mlmmjadmin/mlmmjadmin.pid (code=exited, status=255)
  Process: 10651 ExecStart=/usr/sbin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/rhel.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid (code=exited, status=1/FAILURE)
  Process: 10647 ExecStartPre=/usr/bin/chmod 0755 /var/run/mlmmjadmin (code=exited, status=0/SUCCESS)
  Process: 10645 ExecStartPre=/usr/bin/chown mlmmj:mlmmj /var/run/mlmmjadmin (code=exited, status=0/SUCCESS)
  Process: 10643 ExecStartPre=/usr/bin/mkdir /var/run/mlmmjadmin (code=exited, status=0/SUCCESS)
 Main PID: 10651 (code=exited, status=1/FAILURE)

Mar 07 01:00:41 nebula.snowdrift.com.au mlmmjadmin[10651]: your mercy for graceful operations on workers is 60 seconds
Mar 07 01:00:41 nebula.snowdrift.com.au mlmmjadmin[10651]: mapped 436608 bytes (426 KB) for 5 cores
Mar 07 01:00:41 nebula.snowdrift.com.au mlmmjadmin[10651]: *** Operational MODE: preforking ***
Mar 07 01:00:41 nebula.snowdrift.com.au mlmmjadmin[10651]: ERROR: directory doesn't exist: /var/vmail/mlmmj.
Mar 07 01:00:41 nebula.snowdrift.com.au mlmmjadmin[10651]: 
Mar 07 01:00:41 nebula.snowdrift.com.au systemd[1]: mlmmjadmin.service: main process exited, code=exited, status=1/FAILURE
Mar 07 01:00:41 nebula.snowdrift.com.au uwsgi[10654]: signal_pidfile()/kill(): No such process [core/uwsgi.c line 1659]
Mar 07 01:00:41 nebula.snowdrift.com.au systemd[1]: mlmmjadmin.service: control process exited, code=exited status=255
Mar 07 01:00:41 nebula.snowdrift.com.au systemd[1]: Unit mlmmjadmin.service entered failed state.
Mar 07 01:00:41 nebula.snowdrift.com.au systemd[1]: mlmmjadmin.service failed.

[root@nebula mlmmjadmin]# ls -ld /var/vmail/mlmmj                                                                                     
drwx------ 2 mlmmj mlmmj 62 Feb 28 22:19 /var/vmail/mlmmj

Any ideas?

Thanks, Rob.

19

Re: iRedMail-0.9.8-beta2 has been released

What's the error message if you run command below manually?

/usr/sbin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/rhel.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid

20

Re: iRedMail-0.9.8-beta2 has been released

Here you go.
Doesn’t seem to be an error message.

/usr/sbin/uwsgi --ini /opt/mlmmjadmin/rc_scripts/uwsgi/rhel.ini --pidfile /var/run/mlmmjadmin/mlmmjadmin.pid
[uWSGI] getting INI configuration from /opt/mlmmjadmin/rc_scripts/uwsgi/rhel.ini

Rob

21

Re: iRedMail-0.9.8-beta2 has been released

Weird. Is it possible to give me direct ssh access for troubleshooting? You can contact me via email: zhb _at_ iredmail.org.

22

Re: iRedMail-0.9.8-beta2 has been released

mlmmjadmin issue has been fixed, it's caused by improper file permission on /var/vmail, it WAS 0700, but should be 0755.
We have updated mlmmj integration tutorials to fix it.

23

Re: iRedMail-0.9.8-beta2 has been released

accutane 40 mg online What Is Cephalexin Used To Treat Viagra Cinese  <a href=http://cialiviag.com>cialis</a> Best Prices Ed Meds

24

Re: iRedMail-0.9.8-beta2 has been released

Ubuntu 16.04.03
i have installed the beta2 version in a fresh server.
nginx cant run with this error:

Mar 12 11:30:58 iredmail systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 12 11:30:59 iredmail nginx[1080]: nginx: [emerg] no port in upstream "php_workers" in /etc/nginx/templates/fastcgi_php.tmpl:13
Mar 12 11:30:59 iredmail nginx[1080]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 12 11:30:59 iredmail systemd[1]: nginx.service: Control process exited, code=exited status=1
Mar 12 11:30:59 iredmail systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Mar 12 11:30:59 iredmail systemd[1]: nginx.service: Unit entered failed state.
Mar 12 11:30:59 iredmail systemd[1]: nginx.service: Failed with result 'exit-code'.

please help me understand how to figure it out.
thank you

raz

25

Re: iRedMail-0.9.8-beta2 has been released

raz wrote:

/etc/nginx/templates/fastcgi_php.tmpl

Could you please show me full content of this file?