1

Topic: iRedMail-0.8.7 has been released.

Dear all,

iRedMail-0.8.7 has been released. Next release will focus on Nginx support, if you have any feature request, please let us know.

First of all, iRedMail project now has an official logo, do you like it?
http://www.iredmail.org/images/logo.png

iRedMail-0.8.7 works on several new Linux/BSD distribution releases
  • Ubuntu 14.04 LTS (trusty), with MariaDB support.

  • OpenBSD 5.5. iRedMail uses built-in Apache-1.3 as default web server, not Nginx.

iRedMail-0.8.7 drops support for below Linux/BSD distribution releases
  • Ubuntu 13.04, 13.10

  • OpenBSD 5.4

Improvements
  • Allows sasl authentication ONLY over a TLS-encrypted smtp connection.

  • Increase default Amavisd prefork children to 10 (default is 2).

  • Enable LMTP service in Dovecot by default. To use LMTP instead of Dovecot LDA as per-domain or per-user local deliver agent in Postfix, you need to use one of below:

    • LMTP socket: lmtp:unix:private/dovecot-lmtp

    • LMTP inet listener: lmtp:inet:127.0.0.1:24

  • Removed columns for MySQL and PostgreSQL backends:

    • domain.defaultlanguage

    • domain.defaultuserquota

    • domain.defaultuseraliases

    • domain.disableddomainprofiles

    • domain.disableduserprofiles

    • domain.defaultpasswordscheme

    • domain.minpasswordlength

    • domain.maxpasswordlength

    They all are merged into new column 'domain.settings'. For example:
    domain.settings='default_language:en_US;default_user_quota:1024;'

  • New columns for MySQL and PostgreSQL backends:

    • mailbox.enablelmtp: used by Dovecot LMTP server.

    • domain.settings: used to store per-domain settings, userd in iRedAdmin-Pro.

    • mailbox.settings: used to store per-user settings, used in iRedAdmin-Pro.

    • admin.settings: used to store per-user settings, used in iRedAdmin-Pro.

    • alias.islist: used to mark a sql record is a mail list account. Used in both iRedMail and iRedAdmin-Pro.

  • New LDAP attribute/value pairs for mail users: enabledService=lmtp. used by Dovecot LMTP server.

Fixed issues
  • Postfix cannot resolve IP address under chroot on RHEL/CentOS.

Updated packages
  • Roundcube webmail -> 1.0.1

  • phpMyAdmin -> 4.2.0

  • iRedAdmin -> 0.3.1

  • iRedAPD -> 1.4.3. We have new plugins to force users to change password in certain days (default is 90 days).

Top 10 Linux/BSD distributions used by iRedMail users with iRedMail-0.8.6, since Dec 16, 2013

Amount Distribution and release number
8295    Ubuntu 12.04 (precise)
8166    CentOS 6
6771    Debian 7 (wheezy)
2019    Ubuntu 13.10 (saucy)
836     Ubuntu 14.04 (trusty)
551     FreeBSD 9
509     Ubuntu 13.04 (raring)
317     Red Hat Enterprise Linux 6
298     FreeBSD 10

----

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

2 (edited by hata_ph 2014-05-14 13:37:05)

Re: iRedMail-0.8.7 has been released.

I notice if you enable SMTP SASL authentication ONLY over a TLS-encrypted smtp connection, you need to add "tls://" to you smtp_server option under roundcubemail's config.inc.php

$config['smtp_server'] = 'tls://127.0.0.1';

http://trac.roundcube.net/ticket/1487635

3

Re: iRedMail-0.8.7 has been released.

Thanks for your remind, fixed in upgrade tutorial moment ago.
http://www.iredmail.org/wiki/index.php? … connection

4

Re: iRedMail-0.8.7 has been released.

Yes, I do like the logo, and thank you for making iRedMail available to us all.

5

Re: iRedMail-0.8.7 has been released.

I'm running Debian 6. Can I upgrade from 0.8.6 to 0.8.7?

iRedMail really rocks! And I like the new logo.

6

Re: iRedMail-0.8.7 has been released.

tyllee wrote:

I'm running Debian 6. Can I upgrade from 0.8.6 to 0.8.7?

Yes.

7

Re: iRedMail-0.8.7 has been released.

ZhangHuangbin wrote:

[*]Increase default Amavisd prefork children to 10 (default is 2).[/*]

After increasing the number of prefork children to 10 the minimum memory requirement has to be changed from 1 GB RAM to something more. I had 1 GB RAM assigned to a VM running iredmail which resulted in this:
May 29 12:41:03 iredmail kernel: [740472.820670] Out of memory: Kill process 23742 (clamscan) score 204 or sacrifice child
May 29 12:41:03 iredmail kernel: [740472.821623] Killed process 23742 (clamscan) total-vm:312024kB, anon-rss:264068kB, file-rss:0kB
May 29 12:41:03 iredmail amavis[21898]: (21898-07) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan KILLED, signal 9 (0009) at (eval 114) line 899.
May 29 12:41:03 iredmail amavis[21898]: (21898-07) (!!)AV: ALL VIRUS SCANNERS FAILED

I have now increased the memory to 1.5 GB RAM and until now I have not seen any failures. I will report back if this is not enough.

8

Re: iRedMail-0.8.7 has been released.

Hi mir,

You can decrease it to 2 if your server is not busy.

9 (edited by mir 2014-05-30 20:09:38)

Re: iRedMail-0.8.7 has been released.

ZhangHuangbin wrote:

Hi mir,

You can decrease it to 2 if your server is not busy.

Hi Zhang,

Increasing memory is no big deal to me. I was just mentioning it so that the documentation can be updated to reflect current state. I assume iRedMail default is installed configured to use 10 prefork children?

Current memory consumption:

$ free
                                total        used       free      shared    buffers     cached
Mem:                        1543040  1411584  131456  0           50704       324220
-/+ buffers/cache:     1036660  506380
Swap:                        265212    5732       259480

10

Re: iRedMail-0.8.7 has been released.

mir wrote:

I assume iRedMail default is installed configured to use 10 prefork children?

In iRedMail-0.8.7, yes. It was 2 in earlier iRedMail releases.

11

Re: iRedMail-0.8.7 has been released.

This is more an FYI than a question.  I found solutions to issues people seem to be having so here's my solutions. 

First to put it into context, I updated from Ubuntu 12.10 which was running on very old versions of iRedMail, iRedAPD, Roundcube, etc to 14.04 and the most recent versions of each using the upgrade guide.

I had a few problems that plagued me.   First was this issue:

[Wed Jul 02 00:16:22.068535 2014] [:error] [pid 20037] mod_wsgi (pid=20037): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Wed Jul 02 00:16:22.068603 2014] [:error] [pid 20037] mod_wsgi (pid=20037): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Wed Jul 02 00:16:22.068639 2014] [:error] [pid 20037] Traceback (most recent call last):
[Wed Jul 02 00:16:22.068715 2014] [:error] [pid 20037]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 9, in <module>
[Wed Jul 02 00:16:22.068847 2014] [:error] [pid 20037]     from libs import iredbase
[Wed Jul 02 00:16:22.068869 2014] [:error] [pid 20037]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 18, in <module>
[Wed Jul 02 00:16:22.069008 2014] [:error] [pid 20037]     import iredutils
[Wed Jul 02 00:16:22.069029 2014] [:error] [pid 20037]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 13, in <module>
[Wed Jul 02 00:16:22.069249 2014] [:error] [pid 20037]     import settings
[Wed Jul 02 00:16:22.069285 2014] [:error] [pid 20037] ImportError: No module named settings 

There were 2 solutions needed to make this work.  First I had to copy the settings.py file from /usr/share/apache2/iredadmin to /usr/share/apache2/iredadmin/libs.  The issue here is that Python can't find the file it's looking for in the normal places when it calls

import settings

as specified here.  Moving it might be the better option, but I opted for a copy instead. 

Once it's been copied, it should be chown'ed to iredadmin:iredadmin (it'll probably be owned by root). 

You'll also want to chmod it to 0755 to make sure it can be read.  Otherwise it'll throw the same 500 error about not being able to import it. 

The second issue I came across was after the settings file was able to be read correctly.  The browser would return the html as text with a mime type of text/x-python rather than as an actual html webpage.  I managed to fix this by adding

AddType text/html .py

to my ssl site conf file in

/etc/apache2/sites-enabled

.  The file

/etc/apache2/conf.d/iredadmin.conf

is not being processed or something.

I hope this helps.  I'll try to answer any questions that I can.

12

Re: iRedMail-0.8.7 has been released.

Hi DonLaw,

You done it in wrong way. Here's what you should do:

1) Upgrade iRedMail to the latest stable release, iRedMail-0.8.7, before upgrading OS. Upgrade tutorials are available here: http://www.iredmail.org/doc.html#upgrade_tutorial

2) Upgrade iRedAdmin-Pro to the latest stable release. "settings.py" is always under /usr/share/apache2/iredadmin/, and in recent iRedAdmin-Pro releases, we renamed "libs/settings.py" to "libs/default_settings.py", all custom settings should be moved to "settings.py" instead, so that you can copy "settings.py" directly to keep custom settings after upgrading iRedAdmin-Pro.

3) Upgrade OS.

13

Re: iRedMail-0.8.7 has been released.

Hi Zhang,

When I upgraded the OS I didn't realize that I had to upgrade iRedMail beforehand as someone else had installed it originally. 

I followed all of the upgrade steps in the link you provided, the only difference is that I'm using the open source edition not the pro version.  The upgrade process from 0.2 to 0.3.3 was successful but afterwards it still looks for settings.py in the libs folder.

14

Re: iRedMail-0.8.7 has been released.

iRedAdmin-0.3.3 (open source edition) reads 'settings.py' under iRedAdmin root/top directory., not 'libs/settings.py'.