1

Topic: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Dear all,

Here's iRedMail-0.9.0-beta1 with CentOS 7 support, please help test it.

* Download it directly with this link: https://bitbucket.org/zhb/iredmail/down … a1.tar.bz2
* IMPORTANT NOTE: This is still a beta release, it's not recommended for production use. and we don't provide upgrade tutorial for beta releases.

Below are detailed changes since iRedMail-0.8.7:

    * Improvement:
        - Nginx support on all Linux/BSD distributions.
        - MariaDB support is now available on FreeBSD.
        - New index in `amavisd` database for SQL column `policy.policy_name`.
          Required by iRedAdmin-Pro self-service.

    * Fixed:
        - Set 'receive_override_options=no_address_mappings' in Postfix to
          disable address mappings before content filter (Amavisd, in our
          case), and remove 'no_address_mappings' in Postfix master.cf defined
          for transport '127.0.0.1:10025'.
          Important note: you should comment out
          'receive_override_options=no_address_mappings' in Postfix if you
          don't have a content filter.
        - Not enable cron job to update SpamAssassin rules in file
          /etc/default/spamassassin (CRON=1).
        - Incorrect quota dict name in Dovecot quota warning script.
        - Decrease number of pre-forked Amavisd processes to 4 to reduce
          memory usage.
        - Add missing SQL column (mailbox.enableindexer-worker) and LDAP
          attribute/value pair: enabledService=indexer-worker. Required by
          Dovecot.
          Thanks dwbotsch <botsch _at_ cnf.cornell.edu> for the report.

    * Updated packages:
        + Roundcube webmail -> 1.0.2

----

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

2 (edited by kaipanoi 2014-08-14 21:31:18)

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Aug 14 09:06:41 l79663c7 systemd: Unit httpd.service entered failed state.
Aug 14 09:06:42 l79663c7 amavisd: Error reading config file "/etc/amavisd/amavisd.conf": Permission denied at /usr/sbin/amavisd line 2161.
Aug 14 09:06:42 l79663c7 systemd: Failed to start Amavisd-new is an interface between MTA and content checkers..
Aug 14 09:06:42 l79663c7 systemd: Unit amavisd.service entered failed state.
Aug 14 09:06:45 l79663c7 systemd: amavisd.service start request repeated too quickly, refusing to start.


CentOS Linux release 7.0.1406 (Core)
Linux l79663c7 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

-rw-r-----. 1 root root 26424 Aug 14 09:00 /etc/amavisd/amavisd.conf




2014/08/14 09:28:41 [crit] 2289#0: *2 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 10.48.15.158, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://unix:/var/run/uwsgi_iredadmin.socket:", host: "10.48.16.104"
2014/08/14 09:28:41 [error] 2289#0: *2 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 10.48.15.158, server: _, request: "GET /favicon.ico HTTP/1.1", host: "10.48.16.104"
2014/08/14 09:29:12 [crit] 2289#0: *8 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: 10.48.15.158, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://unix:/var/run/uwsgi_iredadmin.socket:", host: "10.48.16.104"

3

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

*) Do you have SELinux disabled in /etc/selinux/config?
*) Does your server has package 'uwsgi' installed after iRedMail installation?

4

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Zhang,

The installation iRedMail-0.9.0-beta1 with CentOS 7 appears to be going OK. I selected Nginx and LDAP during installation.

Only thing I can find is the below problem text.

psmisc.x86_64 0:22.20-8.el7                            python-babel.noarch 0:0.9.6-8.el7                          python-markupsafe.x86_64 0:0.11-10.el7               
  systemd-python.x86_64 0:208-11.el7_0.2                 systemtap-sdt-devel.x86_64 0:2.4-14.el7                    t1lib.x86_64 0:5.1.2-14.el7                         
  unzoo.x86_64 0:4.4-11.el7                              uwsgi-plugin-common.x86_64 0:2.0.6-1.el7.centos           

Complete!
ln -s '/usr/lib/systemd/system/slapd.service' '/etc/systemd/system/multi-user.target.wants/slapd.service'
ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'
ln -s '/usr/lib/systemd/system/nginx.service' '/etc/systemd/system/multi-user.target.wants/nginx.service'
ln -s '/usr/lib/systemd/system/php-fpm.service' '/etc/systemd/system/multi-user.target.wants/php-fpm.service'
uwsgi.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig uwsgi on
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
cbpolicyd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig cbpolicyd on
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
ln -s '/usr/lib/systemd/system/dovecot.service' '/etc/systemd/system/multi-user.target.wants/dovecot.service'
Failed to issue method call: No such file or directory
ln -s '/usr/lib/systemd/system/amavisd.service' '/etc/systemd/system/multi-user.target.wants/amavisd.service'
ln -s '/usr/lib/systemd/system/fail2ban.service' '/etc/systemd/system/multi-user.target.wants/fail2ban.service'
Failed to issue method call: No such file or directory
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
Failed to issue method call: No such file or directory
ln -s '/usr/lib/systemd/system/spamassassin.service' '/etc/systemd/system/multi-user.target.wants/spamassassin.service'
Failed to issue method call: No such file or directory


********************************************************************
* Start iRedMail Configurations
********************************************************************
< INFO > Create self-signed SSL certification files.

Don't know if this is a possible problem.

5

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

bob savage wrote:

Don't know if this is a possible problem.

It's not a problem/error. Doesn't impact services.

6

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Any updates here? How is the testing going on?

7

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Hi BigJens,

You can check our commit log below, i fixed all known issues:
https://bitbucket.org/zhb/iredmail/commits

And you can download the beta2 for testing, hopefully there will be a beta3 soon:
https://bitbucket.org/zhb/iredmail/downloads

8

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Hi There


Im getting Dependency error's in beta 2

---> Package systemtap-sdt-devel.x86_64 0:2.4-14.el7 will be installed
--> Finished Dependency Resolution
Error: Package: cluebringer-2.0.14-4.el7.centos.noarch (iRedMail)
           Requires: perl(Net::Server::PreFork)
Error: Package: cluebringer-2.0.14-4.el7.centos.noarch (iRedMail)
           Requires: perl(Config::IniFiles)
Error: Package: cluebringer-2.0.14-4.el7.centos.noarch (iRedMail)
           Requires: perl-Net-Server
Error: Package: cluebringer-2.0.14-4.el7.centos.noarch (iRedMail)
           Requires: perl-Config-IniFiles
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
< ERROR > Installation failed, please check the terminal output.
< ERROR > If you're not sure what the problem is, try to get help in iRedMail
< ERROR > forum: http://www.iredmail.org/forum/

i disabled all 3rd party repos.

Any hints?

Thanks


Christian

9

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Both perl-Config-IniFiles and perl-Net-Server are available in EPEL repo:
http://dl.fedoraproject.org/pub/epel/7/ … group.html

iRedMail will enable EPEL by default, did you disable it?

10

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Yes, that was the error ... i disabled this ... fedora was in this moment "3rd party" ;-)

Now i have the issue, that the installer not create the Databases. I think the "issue" is that i use MariaDB. I imported the amavisd database by hand and it worked.

root accès is correct with password and correct password. can i trigger the creation manual for MariaDB?




ZhangHuangbin wrote:

Both perl-Config-IniFiles and perl-Net-Server are available in EPEL repo:
http://dl.fedoraproject.org/pub/epel/7/ … group.html

iRedMail will enable EPEL by default, did you disable it?

11 (edited by riverco 2014-09-17 23:23:10)

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Hi,

Ran on clean server (centos 7) as it is usual requirement and everything ran ok for me. Working server.

@kwoll I always use mariadb did you after installing mariadb started mariadb ? As mariadb is not started after install while MySQL is.

@Zhang . Could you please allow for mariadb on centos (even LDAP version which uses sql for other things) ? MySQL is really not a good idea anymore for Centos7. Any idea when final is out as I would like to migrate to cent7

Regards,

12

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Thank You, i will wait for final version with mariadb.

Thank You!

riverco wrote:

Hi,

Ran on clean server (centos 7) as it is usual requirement and everything ran ok for me. Working server.

@kwoll I always use mariadb did you after installing mariadb started mariadb ? As mariadb is not started after install while MySQL is.

@Zhang . Could you please allow for mariadb on centos (even LDAP version which uses sql for other things) ? MySQL is really not a good idea anymore for Centos7. Any idea when final is out as I would like to migrate to cent7

Regards,

13

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

riverco wrote:

@Zhang . Could you please allow for mariadb on centos (even LDAP version which uses sql for other things) ? MySQL is really not a good idea anymore for Centos7. Any idea when final is out as I would like to migrate to cent7

MariaDB is the replacement of MySQL on CentOS 7, so there's no MySQL on CentOS 7 anymore, just MariaDB.

14

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Ok - then i have the issue, that the installes does not create the DB's

i created the admin with the FAQ, amavisd with a little testing, but i need more databases.

Can i reinstall it? i tried, but it alway skipped all scripts.

15

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

christian.kwoll wrote:

Can i reinstall it? i tried, but it alway skipped all scripts.

Reinstall OS, then try again.

16

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

When this hits stable, will it be easy to switch from Apache to nginx on existing installs?

17

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Hello,

I've tried to get iRedMail 0.9.0 w/OpenLDAP working on CentOS 7.0, but apparently cn=vmailadmin user is not created correctly at the installation time and I cannot login to iRedAdmin panel ::

********************************************************************
* 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.
< INFO > Configure Nginx web server and uWSGI.
< INFO > Configure LDAP server: OpenLDAP.
ldap_add: No such object (32)
< INFO > Configure MySQL database server.
< INFO > Configure Postfix (Message Transfer Agent).
< INFO > Configure Cluebringer (postfix policy server).
< INFO > Configure Dovecot (pop3/imap/managesieve server).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new (interface between MTA and content checkers).
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure iRedAPD (postfix policy daemon).
< INFO > Configure iRedAdmin (official web-based admin panel).
< INFO > Configure Fail2ban (authentication failure monitor).
< INFO > Configure Awstats (logfile analyzer for mail and web server).
< INFO > Configure Roundcube webmail.
< INFO > Configure phpLDAPadmin (web-based LDAP management tool).

*************************************************************************
* iRedMail-0.9.0-beta2 installation and configuration complete.
*************************************************************************

Username and password are copy pasted from config file ::

* - Web admin panel (iRedAdmin): httpS://<hostname.domain>/iredadmin/
*   + Username: postmaster@<domain>, Password: <password>

I couldn't fine any (verbose) logs from installation to diagnose what the problem was with creation.

Post's attachments

vmailadmin.PNG
vmailadmin.PNG 32.13 kb, file has never been downloaded. 

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

18

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Hi @m.stefany89,

Could you try the latest development edition?

19

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

Am I missing something? 

When I try to install the 0.9.0 Beta2 on a fresh CentOS 7 install, I only have OpenLDAP and PostgreSQL as install options.  I do not get a MySQL/MariaDB option.


                            ┌──────────Choose preferred backend used to store mail accounts────────────┐
                            │ It's strongly recommended to choose the one you're farmliar with for     │
                            │ easy maintenance. They all use the same webmail (Roundcube) and admin    │
                            │ panel (iRedAdmin), and no big feature differences between them.          │
                            │                                                                          │
                            │ TIP: Use SPACE key to select item.                                       │
                            │ ┌──────────────────────────────────────────────────────────────────────┐ │
                            │ │    ( ) OpenLDAP    An_open_source_implementation_of_LDAP_protocol    │ │
                            │ │    ( ) PostgreSQL  Powerful,_open_source_database_system             │ │
                            │ │                                                                      │ │
                            │ │                                                                      │ │
                            │ └──────────────────────────────────────────────────────────────────────┘ │
                            │                                                                          │
                            │                                                                          │
                            │                                                                          │
                            │                                                                          │
                            │                                                                          │
                            ├──────────────────────────────────────────────────────────────────────────┤
                            │                                 < Next >                                 │
                            └──────────────────────────────────────────────────────────────────────────┘

20

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

May have answered my own question...

Line 368 in conf/global - should that read ENABLE_BACKEND_MARIADB='YES' instead of ENABLE_BACKEND_MARIADB='MYSQL'?

Seems to work for me now after I made that mod.

    if [ X"${DISTRO_VERSION}" == X'6' ]; then
        ENABLE_BACKEND_MYSQL='YES'
        ENABLE_BACKEND_MARIADB='NO'

        # iptables rule file.
        export FIREWALL_RULE_CONF="${ETC_SYSCONFIG_DIR}/iptables"
    else
        # No MySQL available since RHEL/CentOS 7.
        ENABLE_BACKEND_MYSQL='NO'
--->   ENABLE_BACKEND_MARIADB='MYSQL'

        # iptables rule file.
        export USE_FIREWALLD='YES'
        export FIREWALLD_CONF_DIR='/etc/firewalld'
        export FIREWALLD_CONF='/etc/firewalld/firewalld.conf'
        export FIREWALL_RULE_CONF="${FIREWALLD_CONF_DIR}/zones/iredmail.xml"
    fi

21

Re: Call for testers: iRedMail-0.9.0-beta1 with CentOS 7 support.

It's better to checkout the latest source code instead of iRedMail-0.9.0-beta2.
Anyway, 0.9.0-rc1 is coming.