1

Topic: iRedMail-1.3 has been released

Dear all,

iRedMail-1.3 has been released.

Here's major changes since iRedMail-1.2.1.

Supports new distribution releases
  • Ubuntu 20.04. All backends are supported: MariaDB, PostgreSQL, OpenLDAP.

  • OpenBSD 6.7. All backends are supported: MariaDB, PostgreSQL, OpenLDAP.

DROPPED distribution release
  • OpenBSD 6.6. Please use the latest stable release 6.7 instead.

BROKEN distribution

iRedAdmin(-Pro) is currently broken on FreeBSD, please wait for some more days. But if you install iRedMail on FreeBSD without iRedAdmin, the installation will finish without any issue.

  • We ported iRedAPD and mlmmjadmin from Python 2 to 3, but still need some time to port iRedAdmin(-Pro) to Python 3.

  • mlmmjadmin requires uwsgi for Python 3, but iRedAdmin(-Pro) requires uwsgi for Python 2. They both create file /usr/local/bin/uwsgi, hence we can not install uwsgi for both Python versions right now. We will replace uwsgi by other WSGI server like "gunicorn" shortly, please be patient.


Improvements
  • Enable SOGo for CentOS 8 and Ubuntu 20.04. Thanks to SOGo team.

  • Port scripts `tools/*.py` to Python 3.

Fixed issues
  • Enable TLSv1 on CentOS 7 due to the php package doesn't support TLSv1.2.

  • Fix incorrect permission of Fail2ban log file, should be 0755 so that netdata can read banned/unbanned info.

  • Add missing INDEX for SQL column `msgs.time_iso` in `amavisd` database.

Updated packages
  • Roundcube webmail -> 1.4.6, it includes few security fixes.

  • iRedAPD -> 4.0. WARNING: Python 3.5+ is required, Python 2 support has been completely dropped. For detailed changes, please check its ChangeLog file.

  • mlmmjadmin -> 3.0. WARNING: Python 3.5+ is required, Python 2 support has been completely dropped. For detailed changes, please check its ChangeLog file.

  • netdata -> 1.23.0

Introduce "iRedMail Easy" - the new deployment, upgrade and support platform

iRedMail Easy is the new web-based deployment, (one-click) upgrade and technical support platform introduced few months ago, we release new version frequently (currently one new release per month), with the one-click upgrade support, you can easily keep the iRedMail server up to date without caring about any technical details. It's the recommend way to deploy NEW iRedMail server and get technical support.

For more details, please check our website, the comparison of iRedMail Easy and classic downloadable installer is available too: https://www.iredmail.org/easy.html

If you need to upgrade existing iRedMail server to the iRedMail Easy platform, please check our tutorial: Migrate from iRedMail to iRedMail Easy platform.

Introduce all-in-one Dockerized iRedMail

We have built an all-in-one Dockerized iRedMail, get it here:
https://hub.docker.com/r/iredmail/mariadb

  • Only MariaDB backend is available right now.

  • Based on Alpine Linux (3.11.6) docker image, all components in one container.

  • SOGo groupware is not included because SOGo team doesn't offer binary packages for Alpine.

It's not considered as production ready, please don't run it on production
server now. Feedback, suggestions are all welcome. smile

----

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

2

Re: iRedMail-1.3 has been released

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi Zhang,

Thank you for the updates.

When upgrading to iRedAPD-4.1 we are receiving the following errors in syslog. Emails are then rejected:

Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56224 at 0x7fc63b233978> (<class 'KeyError'>:'79bd.5efdbfec.d4872.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57632 at 0x7fc63b222550> (<class 'KeyError'>:'79bd.5efdbfec.d4872.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56668 at 0x7fc63b2395c0> (<class 'KeyError'>:'7a1b.5efdbffa.8f44f.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57648 at 0x7fc63b233b00> (<class 'KeyError'>:'7a1b.5efdbffa.8f44f.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56190 at 0x7fc63b2220f0> (<class 'KeyError'>:'79b8.5efdbfff.17140.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57650 at 0x7fc63b233e48> (<class 'KeyError'>:'79b8.5efdbfff.17140.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56178 at 0x7fc63b2caa58> (<class 'KeyError'>:'79ba.5efdc002.b14c2.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57658 at 0x7fc63b222630> (<class 'KeyError'>:'79ba.5efdc002.b14c2.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56226 at 0x7fc63b233cf8> (<class 'KeyError'>:'79b9.5efdc00a.a5321.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57668 at 0x7fc63b222710> (<class 'KeyError'>:'79b9.5efdc00a.a5321.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56380 at 0x7fc63b2ca550> (<class 'KeyError'>:'79b4.5efdc00d.8df0c.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57672 at 0x7fc63b222710> (<class 'KeyError'>:'79b4.5efdc00d.8df0c.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56158 at 0x7fc63b20ad68> (<class 'KeyError'>:'7919.5efdc020.1680f.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57700 at 0x7fc63b224f98> (<class 'KeyError'>:'7919.5efdc020.1680f.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57758 at 0x7fc63b233ac8> (<class 'KeyError'>:'7a1b.5efdc026.a7ea5.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57656 at 0x7fc63b391a90> (<class 'KeyError'>:'79b8.5efdc026.dd44b.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57762 at 0x7fc63b397438> (<class 'KeyError'>:'7a1b.5efdc026.a7ea5.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57764 at 0x7fc63b233ef0> (<class 'KeyError'>:'79b8.5efdc026.dd44b.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57770 at 0x7fc63b233780> (<class 'KeyError'>:'79ba.5efdc02e.3429e.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56756 at 0x7fc63b222390> (<class 'KeyError'>:'79b5.5efdc02e.5573.2' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57772 at 0x7fc63b224fd0> (<class 'KeyError'>:'79ba.5efdc02e.3429e.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  2 12:08:45 mail python3[34218]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:57774 at 0x7fc63b222080> (<class 'KeyError'>:'79b5.5efdc02e.5573.2' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])

Any help appreciated.

Thank you

3 (edited by vitvkz 2020-07-06 22:29:40)

Re: iRedMail-1.3 has been released

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Same problem.
After rAfter restarting the iredpad works for several hours, then drops again. During these errors iredapd.service = active (running) and port 7777 open.



tcp        0      0 127.0.0.1:7777          0.0.0.0:*               LISTEN      21350/python3

syslog:

Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:54798 at 0x7fcfc159a710> (<class 'KeyError'>:'592e.5f029174.929a5.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:54800 at 0x7fcfc159a668> (<class 'KeyError'>:'592c.5f029174.95214.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56808 at 0x7fcfc15e8f98> (<class 'KeyError'>:'5cf2.5f029624.9b057.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56816 at 0x7fcfc16099b0> (<class 'KeyError'>:'5cf0.5f029624.9c8b4.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56828 at 0x7fcfc159a668> (<class 'KeyError'>:'5cf2.5f029624.9b057.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:56830 at 0x7fcfc15e8f98> (<class 'KeyError'>:'5cf0.5f029624.9c8b4.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:60620 at 0x7fcfc15e8898> (<class 'KeyError'>:'656d.5f029f85.78482.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:60628 at 0x7fcfc16091d0> (<class 'KeyError'>:'656e.5f029f85.79908.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:60646 at 0x7fcfc159a668> (<class 'KeyError'>:'656d.5f029f85.78482.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:60648 at 0x7fcfc15e8898> (<class 'KeyError'>:'656e.5f029f85.79908.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:39700 at 0x7fcfc159a668> (<class 'KeyError'>:'7157.5f02afec.868bd.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:39708 at 0x7fcfc16090b8> (<class 'KeyError'>:'7155.5f02afec.87475.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:39720 at 0x7fcfc1609048> (<class 'KeyError'>:'7157.5f02afec.868bd.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:39722 at 0x7fcfc1609710> (<class 'KeyError'>:'7155.5f02afec.87475.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:47260 at 0x7fcfc15e8898> (<class 'KeyError'>:'7e25.5f02c054.775f1.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:47268 at 0x7fcfc16096a0> (<class 'KeyError'>:'7e26.5f02c054.7699c.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:47290 at 0x7fcfc16095c0> (<class 'KeyError'>:'7e25.5f02c054.775f1.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:47292 at 0x7fcfc15ad588> (<class 'KeyError'>:'7e26.5f02c054.7699c.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:54508 at 0x7fcfc15a4978> (<class 'KeyError'>:'c3d.5f02d01e.6fcbc.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:54524 at 0x7fcfc15e8128> (<class 'KeyError'>:'c3d.5f02d01e.6fcbc.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:54538 at 0x7fcfc15ad780> (<class 'KeyError'>:'c3d.5f02d027.9eabd.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:54542 at 0x7fcfc15e8e48> (<class 'KeyError'>:'c3d.5f02d027.9eabd.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])
Jul  6 10:18:24 mail python3[1062]: error: uncaptured python exception, closing channel <libs.channel.Policy connected 127.0.0.1:54576 at 0x7fcfc159a710> (<class 'KeyError'>:'c3d.5f02d03e.f0cfb.0' [/usr/lib/python3.6/asyncore.py|readwrite|108] [/usr/lib/python3.6/asyncore.py|handle_read_event|423] [/usr/lib/python3.6/asynchat.py|handle_read|171] [/opt/iRedAPD-4.1/libs/channel.py|found_terminator|191])

mail.log:

Jul  5 23:00:10 mail postfix/smtpd[852]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  5 23:00:12 mail postfix/smtpd[852]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  5 23:00:13 mail postfix/smtpd[852]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  5 23:00:15 mail postfix/smtpd[852]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:34:29 mail postfix/smtpd[21984]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:34:29 mail postfix/smtpd[22071]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:34:36 mail postfix/smtpd[22071]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:34:36 mail postfix/smtpd[22073]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:40:29 mail postfix/smtpd[22381]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:40:29 mail postfix/smtpd[22412]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:50:29 mail postfix/smtpd[22830]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 05:50:29 mail postfix/smtpd[22828]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 06:10:29 mail postfix/smtpd[23794]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 06:10:29 mail postfix/smtpd[23792]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 06:50:30 mail postfix/smtpd[25965]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 06:50:30 mail postfix/smtpd[25966]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 08:00:29 mail postfix/smtpd[29015]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 08:00:29 mail postfix/smtpd[29013]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 09:10:29 mail postfix/smtpd[32293]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 09:10:29 mail postfix/smtpd[32294]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:17:51 mail postfix/submission/smtpd[3133]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:18:00 mail postfix/submission/smtpd[3133]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:18:24 mail postfix/submission/smtpd[3133]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:19:36 mail postfix/submission/smtpd[3133]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:20:29 mail postfix/smtpd[3239]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:20:29 mail postfix/smtpd[3267]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:24:02 mail postfix/submission/smtpd[3436]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:24:43 mail postfix/smtpd[3392]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:25:43 mail postfix/smtpd[3392]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 10:31:02 mail postfix/smtpd[3987]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 15:53:37 mail postfix/submission/smtpd[19788]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 15:53:47 mail postfix/submission/smtpd[19788]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 15:55:16 mail postfix/submission/smtpd[19788]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 15:55:56 mail postfix/submission/smtpd[19788]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 15:57:49 mail postfix/submission/smtpd[19949]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 16:05:09 mail postfix/smtpd[20359]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 16:05:25 mail postfix/smtpd[21249]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 16:05:29 mail postfix/smtpd[21249]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  6 16:05:32 mail postfix/smtpd[21249]: warning: problem talking to server 127.0.0.1:7777: Success

4

Re: iRedMail-1.3 has been released

Fixed in iRedAPD-4.2. Please download and upgrade:
https://docs.iredmail.org/upgrade.iredapd.html

5

Re: iRedMail-1.3 has been released

ZhangHuangbin wrote:

Fixed in iRedAPD-4.2. Please download and upgrade:
https://docs.iredmail.org/upgrade.iredapd.html

Thank you

6 (edited by vitvkz 2020-07-10 04:54:36)

Re: iRedMail-1.3 has been released

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

The problem remained.
After restarting iredapd, works for 20-40 minutes then again falls.
Syslog now has no errors.

tcp        0      0 localhost:7777          0.0.0.0:*               LISTEN      21713/python3

mail.log (warning: problem talking to server)

Jul  6 23:59:39 mail postfix/smtpd[25098]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  7 09:18:11 mail postfix/smtpd[21427]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  7 09:52:35 mail postfix/smtpd[23079]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  7 10:11:37 mail postfix/smtpd[25065]: warning: problem talking to server 127.0.0.1:7777: Success

mail.log

Jul  7 09:52:34 mail postfix/postscreen[23058]: CONNECT from [192.168.203.11]:52909 to [192.168.203.100]:25
Jul  7 09:52:34 mail postfix/postscreen[23058]: PASS OLD [192.168.203.11]:52909
Jul  7 09:52:34 mail postfix/smtpd[23079]: connect from services01.gb.local[192.168.203.11]
Jul  7 09:52:34 mail postfix/smtpd[23079]: 4B1Cmf4RTpz6vRx: client=services01.gb.local[192.168.203.11], sasl_method=PLAIN, sasl_username=andrey_b@mydomain.ru
Jul  7 09:52:34 mail postfix/cleanup[23366]: 4B1Cmf4RTpz6vRx: message-id=<f1a02e5a-6bc4-cfa8-258e-d59f93201ebd@hrsolutions.ru>
Jul  7 09:52:35 mail postfix/smtpd[23079]: warning: problem talking to server 127.0.0.1:7777: Success
Jul  7 09:52:35 mail postfix/smtpd[23079]: 4B1Cmf4RTpz6vRx: reject: END-OF-MESSAGE from services01.gb.local[192.168.203.11]: 451 4.3.5 <END-OF-MESSAGE>: End-of-data rejected: Server configuration problem; from=<andrey_b@mydomain.ru> to=<postm@mydomain.ru> proto=ESMTP helo=<[192.168.203.11]>
Jul  7 09:52:40 mail postfix/smtpd[23079]: disconnect from services01.gb.local[192.168.203.11] ehlo=1 auth=1 mail=1 rcpt=1 data=0/1 quit=1 commands=5/6

iredapd.log:

Jul  7 09:52:34 mail iredapd [192.168.203.11] RCPT, andrey_b@mydomain.ru => postm@mydomain.ru, OK [sasl_username=andrey_b@mydomain.ru, sender=andrey_b@mydomain.ru, client_name=services01.gb.local, reverse_client_name=services01.gb.local, helo=[192.168.203.11], encryption_protocol=, encryption_cipher=, server_port=25, process_time=0.0099s]

7

Re: iRedMail-1.3 has been released

XYZ專業光碟教學網站  http://xyz.net.tw/

8

Re: iRedMail-1.3 has been released

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: FreeBSD 12.1-RELEASE-p6 GENERIC  amd64 in eazyJail, clean install
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? ( Want to but chose not to install on last attempt ) No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have been trying for days to install iRedMail in a new jail ( recreated at each attempt)  on FreeBSD 12.1.
The success banner has usually appeared but errors are shown during the IredMail Configuration to the database.
I have found differences in the outcome dependent on if MariaDb104 is built from ports or installed from pkg.
When built from ports, my first try, the mysql user and group were not created when installing mariadDb104-Server. This caused problems further on down the line. This last time I created the mysql user, group and home dir manually before the iRedMail install but still landed up with problems. Also archivers/arj does not build but can be installed with pkg. When arj fails it interrupts the amavid install. I resumed the install after the arj pkg install. The non-functioning arj build goes back to 2017 as far as I can see and is obviously not an iRedMail problem but iI think I'll have to wait for iRedMail/FreeBsd to be sorted out while this persists. This is a test server before updating a live server.

The Release announcement for 1.3 is also confusing in relation to FreeBsd and iredadmin:
=================
BROKEN distribution
iRedAdmin(-Pro) is currently broken on FreeBSD, please wait for some more days. But if you install iRedMail on FreeBSD without iRedAdmin, the installation will finish without any issue.

We ported iRedAPD and mlmmjadmin from Python 2 to 3, but still need some time to port iRedAdmin(-Pro) to Python 3.
mlmmjadmin requires uwsgi for Python 3, but iRedAdmin(-Pro) requires uwsgi for Python 2. They both create file /usr/local/bin/uwsgi, hence we can not install uwsgi for both Python versions right now. We will replace uwsgi by other WSGI server like "gunicorn" shortly, please be patient.
=================

With my last install attempt I opted not to install iredadmin, not sure from the announcement if iredadmin is technically different to iredAdminPro in terms of build (I have a licence for iRedAdmin Pro LDAP.). I do understand the Python 2 to 3 issue but the announcement is a little confusing. Even if I had managed to install a functional iRedMail, how would I configure domains and users without iredadmin?

The success banner:
********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Generate self-signed SSL cert (4096 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
[ INFO ] Configure LDAP server: OpenLDAP.
[ INFO ] Setup daily cron job to backup LDAP data with /var/vmail/backup/backup_openldap.sh
[ INFO ] Configure MariaDB database server.
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
[ INFO ] Configure Nginx web server.
[ INFO ] Configure PHP.
[ INFO ] Configure mlmmj (mailing list manager).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
[ INFO ] Configure Roundcube webmail.
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server

*************************************************************************
* iRedMail-1.3 installation and configuration complete.
*************************************************************************

[ INFO ] Updating SpamAssassin rules (sa-update), please wait ...
[ INFO ] Compiling SpamAssassin rulesets (sa-compile), please wait ...
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ClamAV update process started at Tue Jul  7 14:58:37 2020
daily database available for download (remote version: 25866)
Time: 100.8s, ETA: 0.0s [=============================>] 80.11MiB/80.11MiB
Testing database: '/var/db/clamav/tmp.21cff/clamav-2d19b4dee0658fc16819662d27861961.tmp-daily.cvd' ...
Database test passed.
daily.cvd updated (version: 25865, sigs: 3173449, f-level: 63, builder: raynman)
main database available for download (remote version: 59)
Time: 137.3s, ETA: 0.0s [=============================>] 112.40MiB/112.40MiB
Testing database: '/var/db/clamav/tmp.21cff/clamav-2cc19c22bbd3d2aae473a4bb52ffbd9c.tmp-main.cvd' ...
Database test passed.
main.cvd updated (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode database available for download (remote version: 331)
Time: 0.1s, ETA: 0.0s [=============================>] 289.44KiB/289.44KiB
Testing database: '/var/db/clamav/tmp.21cff/clamav-d83e14aa9a6cbb8170a4471c905edc19.tmp-bytecode.cvd' ...
Database test passed.
bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
********************************************************************
* URLs of installed web applications:
*
* - Roundcube webmail: https://mailx.mydomain.co.uk/mail/
*
* - Web admin panel (iRedAdmin): https://mailx.mydomain.co.uk/iredadmin/
*
* You can login to above links with below credential:
*
* - Username: postmaster@mydomain.co.uk
* - Password: secret
*
*
********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /root/iRedMail-1.3/iRedMail.tips
*
* And it's sent to your mail account postmaster@museit.co.uk.
*
********************* WARNING **************************************
*
* Please reboot your system to enable all mail services.
*
********************************************************************
Install Log:
[ INFO ] Checking new version of iRedMail ...
+ < DEBUG > Creating necessary directories ...
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 3: https://dl.iredmail.org/yum/misc/iRedAdmin-1.0.tar.bz2
[ INFO ] + 2 of 3: https://dl.iredmail.org/yum/misc/mlmmjadmin-3.0.tar.gz
[ INFO ] + 3 of 3: https://dl.iredmail.org/yum/misc/iRedAPD-4.1.tar.gz
[ INFO ] Validate downloaded source tarballs ...
[ INFO ] Checking configuration file: /root/iRedMail-1.3/config ...
[ INFO ] NOT FOUND. Launching installation wizard.
+ < DEBUG > Update /etc/make.conf: WANT_OPENLDAP_VER=24
+ < DEBUG > Update /etc/make.conf: WANT_OPENLDAP_SASL=YES
+ < DEBUG > Update /etc/make.conf: WANT_PGSQL_VER=12
+ < DEBUG > Update /etc/make.conf: WANT_BDB_VER=5
+ < DEBUG > Update /etc/make.conf: DEFAULT_VERSIONS=ssl=libressl python=3.8 python2=2.7 python3=3.8 pgsql=12 php=7.4 mysql=10.4m ruby=2.7
+ < DEBUG > Update /etc/make.conf: OPTIONS_SET+=SASL
+ < DEBUG > Update /etc/make.conf: OPTIONS_UNSET+=X11
+ < DEBUG > Update /etc/make.conf: LICENSES_ACCEPTED+=DCC
[ INFO ] Ports tree: /usr/ports
[ INFO ] Fetching all distfiles for required ports (make fetch-recursive)
[ INFO ] Fetching all distfiles for port: net/openldap24-sasl-client
[ INFO ] Fetching all distfiles for port: net/openldap24-server
[ INFO ] Fetching all distfiles for port: databases/mariadb104-server
[ INFO ] Fetching all distfiles for port: mail/dovecot
[ INFO ] Fetching all distfiles for port: mail/dovecot-pigeonhole
[ INFO ] Fetching all distfiles for port: mail/spamassassin
[ INFO ] Fetching all distfiles for port: security/amavisd-new
[ INFO ] Fetching all distfiles for port: mail/postfix
[ INFO ] Fetching all distfiles for port: www/nginx
[ INFO ] Fetching all distfiles for port: www/uwsgi
[ INFO ] Fetching all distfiles for port: lang/php74
[ INFO ] Fetching all distfiles for port: mail/php74-imap
[ INFO ] Fetching all distfiles for port: archivers/php74-zip
[ INFO ] Fetching all distfiles for port: archivers/php74-bz2
[ INFO ] Fetching all distfiles for port: archivers/php74-zlib
[ INFO ] Fetching all distfiles for port: devel/php74-gettext
[ INFO ] Fetching all distfiles for port: security/php74-openssl
[ INFO ] Fetching all distfiles for port: www/php74-session
[ INFO ] Fetching all distfiles for port: converters/php74-iconv
[ INFO ] Fetching all distfiles for port: textproc/php74-pspell
[ INFO ] Fetching all distfiles for port: textproc/php74-dom
[ INFO ] Fetching all distfiles for port: net/php74-ldap
[ INFO ] Fetching all distfiles for port: databases/php74-mysqli
[ INFO ] Fetching all distfiles for port: devel/p5-Exporter-Tiny
[ INFO ] Fetching all distfiles for port: security/clamav
[ INFO ] Fetching all distfiles for port: mail/mlmmj
[ INFO ] Fetching all distfiles for port: www/py-requests
[ INFO ] Fetching all distfiles for port: net/pear-Net_LDAP2
[ INFO ] Fetching all distfiles for port: mail/roundcube
[ INFO ] Fetching all distfiles for port: net/py-ldap
[ INFO ] Fetching all distfiles for port: databases/py-pymysql
[ INFO ] Fetching all distfiles for port: databases/py-sqlalchemy10
[ INFO ] Fetching all distfiles for port: dns/py-dnspython
[ INFO ] Fetching all distfiles for port: www/webpy
[ INFO ] Fetching all distfiles for port: ftp/py-pycurl
[ INFO ] Fetching all distfiles for port: sysutils/logwatch
[ INFO ] Fetching all distfiles for port: devel/py-Jinja2
[ INFO ] Fetching all distfiles for port: net/py-netifaces
[ INFO ] Fetching all distfiles for port: security/py-bcrypt
[ INFO ] Fetching all distfiles for port: www/py-requests
[ INFO ] Fetching all distfiles for port: net/py-ldap
[ INFO ] Fetching all distfiles for port: databases/py-pymysql
[ INFO ] Fetching all distfiles for port: www/py-cheroot
[ INFO ] Fetching all distfiles for port: www/webpy
[ INFO ] Fetching all distfiles for port: ftp/py-pycurl
[ INFO ] All ports:  net/openldap24-sasl-client net/openldap24-server databases/mariadb104-server mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom net/php74-ldap databases/php74-mysqli devel/p5-Exporter-Tiny security/clamav mail/mlmmj www/py-requests net/pear-Net_LDAP2 mail/roundcube net/py-ldap databases/py-pymysql databases/py-sqlalchemy10 dns/py-dnspython www/webpy ftp/py-pycurl sysutils/logwatch
[ INFO ] All ports for Python 2:  devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests net/py-ldap databases/py-pymysql www/py-cheroot www/webpy ftp/py-pycurl
[ INFO ] Install port: net/openldap24-sasl-client
[ INFO ] Installing port: net/openldap24-sasl-client (2020-07-07 10:28:55) ...
[ INFO ] Install port: net/openldap24-server
[ INFO ] Installing port: net/openldap24-server (2020-07-07 10:42:29) ...
[ INFO ] Install port: databases/mariadb104-server
[ INFO ] Installing port: databases/mariadb104-server (2020-07-07 11:09:05) ...
[ INFO ] Install port: mail/dovecot
[ INFO ] Installing port: mail/dovecot (2020-07-07 12:11:10) ...
[ INFO ] Install port: mail/dovecot-pigeonhole
[ INFO ] Installing port: mail/dovecot-pigeonhole (2020-07-07 12:17:22) ...
[ INFO ] Install port: mail/spamassassin
[ INFO ] Installing port: mail/spamassassin (2020-07-07 12:18:35) ...
[ INFO ] Install port: security/amavisd-new
[ INFO ] Installing port: security/amavisd-new (2020-07-07 12:42:10) ...
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.
[ INFO ] Checking configuration file: /root/iRedMail-1.3/config ...
[ INFO ] Use config file: /root/iRedMail-1.3/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.3/runtime/install.status.
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
+ < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=libressl python=3.8 python2=2.7 python3=3.8 pgsql=12 php=7.4 mysql=10.4m ruby=2.7
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
+ < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
< SKIP > Function: fetch_all_src_tarballs.
[ INFO ] All ports:  net/openldap24-sasl-client net/openldap24-server databases/mariadb104-server mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom net/php74-ldap databases/php74-mysqli devel/p5-Exporter-Tiny security/clamav mail/mlmmj www/py-requests net/pear-Net_LDAP2 mail/roundcube net/py-ldap databases/py-pymysql databases/py-sqlalchemy10 dns/py-dnspython www/webpy ftp/py-pycurl sysutils/logwatch
[ INFO ] All ports for Python 2:  devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests net/py-ldap databases/py-pymysql www/py-cheroot www/webpy ftp/py-pycurl
[ INFO ] Install port: net/openldap24-sasl-client
< SKIP > Installing port: net/openldap24-sasl-client.
[ INFO ] Install port: net/openldap24-server
< SKIP > Installing port: net/openldap24-server.
[ INFO ] Install port: databases/mariadb104-server
< SKIP > Installing port: databases/mariadb104-server.
[ INFO ] Install port: mail/dovecot
< SKIP > Installing port: mail/dovecot.
[ INFO ] Install port: mail/dovecot-pigeonhole
< SKIP > Installing port: mail/dovecot-pigeonhole.
[ INFO ] Install port: mail/spamassassin
< SKIP > Installing port: mail/spamassassin.
[ INFO ] Install port: security/amavisd-new
[ INFO ] Installing port: security/amavisd-new (2020-07-07 14:14:01) ...
<< ERROR >> Port was not successfully installed, please fix it manually and then re-execute this script.
[ INFO ] Checking configuration file: /root/iRedMail-1.3/config ...
[ INFO ] Use config file: /root/iRedMail-1.3/config for mail server setting.
[ INFO ] Import installation process status from file: /root/iRedMail-1.3/runtime/install.status.
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_VER=24
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_OPENLDAP_SASL=YES
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_PGSQL_VER=12
+ < DEBUG > Skip adding option in /etc/make.conf: WANT_BDB_VER=5
+ < DEBUG > Skip adding option in /etc/make.conf: DEFAULT_VERSIONS=ssl=libressl python=3.8 python2=2.7 python3=3.8 pgsql=12 php=7.4 mysql=10.4m ruby=2.7
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_SET+=SASL
+ < DEBUG > Skip adding option in /etc/make.conf: OPTIONS_UNSET+=X11
+ < DEBUG > Skip adding option in /etc/make.conf: LICENSES_ACCEPTED+=DCC
< SKIP > Function: fetch_all_src_tarballs.
[ INFO ] All ports:  net/openldap24-sasl-client net/openldap24-server databases/mariadb104-server mail/dovecot mail/dovecot-pigeonhole mail/spamassassin security/amavisd-new mail/postfix www/nginx www/uwsgi lang/php74 mail/php74-imap archivers/php74-zip archivers/php74-bz2 archivers/php74-zlib devel/php74-gettext security/php74-openssl www/php74-session converters/php74-iconv textproc/php74-pspell textproc/php74-dom net/php74-ldap databases/php74-mysqli devel/p5-Exporter-Tiny security/clamav mail/mlmmj www/py-requests net/pear-Net_LDAP2 mail/roundcube net/py-ldap databases/py-pymysql databases/py-sqlalchemy10 dns/py-dnspython www/webpy ftp/py-pycurl sysutils/logwatch
[ INFO ] All ports for Python 2:  devel/py-Jinja2 net/py-netifaces security/py-bcrypt www/py-requests net/py-ldap databases/py-pymysql www/py-cheroot www/webpy ftp/py-pycurl
[ INFO ] Install port: net/openldap24-sasl-client
< SKIP > Installing port: net/openldap24-sasl-client.
[ INFO ] Install port: net/openldap24-server
< SKIP > Installing port: net/openldap24-server.
[ INFO ] Install port: databases/mariadb104-server
< SKIP > Installing port: databases/mariadb104-server.
[ INFO ] Install port: mail/dovecot
< SKIP > Installing port: mail/dovecot.
[ INFO ] Install port: mail/dovecot-pigeonhole
< SKIP > Installing port: mail/dovecot-pigeonhole.
[ INFO ] Install port: mail/spamassassin
< SKIP > Installing port: mail/spamassassin.
[ INFO ] Install port: security/amavisd-new
[ INFO ] Installing port: security/amavisd-new (2020-07-07 14:14:56) ...
[ INFO ] Install port: mail/postfix
[ INFO ] Installing port: mail/postfix (2020-07-07 14:19:16) ...
[ INFO ] Install port: www/nginx
[ INFO ] Installing port: www/nginx (2020-07-07 14:22:50) ...
[ INFO ] Install port: www/uwsgi
[ INFO ] Installing port: www/uwsgi (2020-07-07 14:28:48) ...
[ INFO ] Install port: lang/php74
[ INFO ] Installing port: lang/php74 (2020-07-07 14:30:29) ...
[ INFO ] Install port: mail/php74-imap
[ INFO ] Installing port: mail/php74-imap (2020-07-07 14:35:50) ...
[ INFO ] Install port: archivers/php74-zip
[ INFO ] Installing port: archivers/php74-zip (2020-07-07 14:39:19) ...
[ INFO ] Install port: archivers/php74-bz2
[ INFO ] Installing port: archivers/php74-bz2 (2020-07-07 14:39:43) ...
[ INFO ] Install port: archivers/php74-zlib
[ INFO ] Installing port: archivers/php74-zlib (2020-07-07 14:39:51) ...
[ INFO ] Install port: devel/php74-gettext
[ INFO ] Installing port: devel/php74-gettext (2020-07-07 14:39:58) ...
[ INFO ] Install port: security/php74-openssl
[ INFO ] Installing port: security/php74-openssl (2020-07-07 14:40:06) ...
[ INFO ] Install port: www/php74-session
[ INFO ] Installing port: www/php74-session (2020-07-07 14:40:15) ...
[ INFO ] Install port: converters/php74-iconv
[ INFO ] Installing port: converters/php74-iconv (2020-07-07 14:40:24) ...
[ INFO ] Install port: textproc/php74-pspell
[ INFO ] Installing port: textproc/php74-pspell (2020-07-07 14:40:32) ...
[ INFO ] Install port: textproc/php74-dom
[ INFO ] Installing port: textproc/php74-dom (2020-07-07 14:42:02) ...
[ INFO ] Install port: net/php74-ldap
[ INFO ] Installing port: net/php74-ldap (2020-07-07 14:42:19) ...
[ INFO ] Install port: databases/php74-mysqli
[ INFO ] Installing port: databases/php74-mysqli (2020-07-07 14:42:27) ...
[ INFO ] Install port: devel/p5-Exporter-Tiny
[ INFO ] Installing port: devel/p5-Exporter-Tiny (2020-07-07 14:42:37) ...
[ INFO ] Install port: security/clamav
[ INFO ] Installing port: security/clamav (2020-07-07 14:42:40) ...
[ INFO ] Install port: mail/mlmmj
[ INFO ] Installing port: mail/mlmmj (2020-07-07 14:44:59) ...
[ INFO ] Install port: www/py-requests
[ INFO ] Installing port: www/py-requests (2020-07-07 14:45:06) ...
[ INFO ] Install port: net/pear-Net_LDAP2
[ INFO ] Installing port: net/pear-Net_LDAP2 (2020-07-07 14:45:45) ...
[ INFO ] Install port: mail/roundcube
[ INFO ] Installing port: mail/roundcube (2020-07-07 14:45:58) ...
[ INFO ] Install port: net/py-ldap
[ INFO ] Installing port: net/py-ldap (2020-07-07 14:48:45) ...
[ INFO ] Install port: databases/py-pymysql
[ INFO ] Installing port: databases/py-pymysql (2020-07-07 14:48:56) ...
[ INFO ] Install port: databases/py-sqlalchemy10
[ INFO ] Installing port: databases/py-sqlalchemy10 (2020-07-07 14:49:03) ...
[ INFO ] Install port: dns/py-dnspython
[ INFO ] Installing port: dns/py-dnspython (2020-07-07 14:49:59) ...
[ INFO ] Install port: www/webpy
[ INFO ] Installing port: www/webpy (2020-07-07 14:51:01) ...
[ INFO ] Install port: ftp/py-pycurl
[ INFO ] Installing port: ftp/py-pycurl (2020-07-07 14:51:05) ...
[ INFO ] Install port: sysutils/logwatch
[ INFO ] Installing port: sysutils/logwatch (2020-07-07 14:51:34) ...
[ INFO ] Install port: devel/py-Jinja2
[ INFO ] Installing port: devel/py-Jinja2 (2020-07-07 14:51:38) ...
[ INFO ] Install port: net/py-netifaces
[ INFO ] Installing port: net/py-netifaces (2020-07-07 14:54:15) ...
[ INFO ] Install port: security/py-bcrypt
[ INFO ] Installing port: security/py-bcrypt (2020-07-07 14:54:19) ...
[ INFO ] Install port: www/py-requests
[ INFO ] Installing port: www/py-requests (2020-07-07 14:54:30) ...
[ INFO ] Install port: net/py-ldap
[ INFO ] Installing port: net/py-ldap (2020-07-07 14:55:02) ...
[ INFO ] Install port: databases/py-pymysql
[ INFO ] Installing port: databases/py-pymysql (2020-07-07 14:55:13) ...
[ INFO ] Install port: www/py-cheroot
[ INFO ] Installing port: www/py-cheroot (2020-07-07 14:55:16) ...
[ INFO ] Install port: www/webpy
[ INFO ] Installing port: www/webpy (2020-07-07 14:55:28) ...
[ INFO ] Install port: ftp/py-pycurl
[ INFO ] Installing port: ftp/py-pycurl (2020-07-07 14:55:31) ...
[ INFO ] Total time of ports compiling: 29 seconds, ~= 0 minute(s)
+ < DEBUG > Post-install cleanup.
+ < DEBUG > Create symbol links for python2/3.
[ INFO ] Generate self-signed SSL cert (4096 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
+ < DEBUG > Create system account: vmail:vmail (2000:2000).
+ < DEBUG > Create system account: vmail:vmail.
+ < DEBUG > Create directory used to store global sieve filters: /var/vmail/sieve.
+ < DEBUG > Create system account: mlmmj:mlmmj.
+ < DEBUG > Create system account: iredadmin:iredadmin.
+ < DEBUG > Create system account: iredapd:iredapd.
+ < DEBUG > Generate LDIF file used to populate LDAP tree.
[ INFO ] Configure LDAP server: OpenLDAP.
+ < DEBUG > Stoping OpenLDAP.
awk: can't open file /etc/rc.conf.local
source line number 1
slapd_enable:  -> YES
slapd_flags:  -> -h 'ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/ ldaps://0.0.0.0/'
slapd_sockets:  -> /var/run/openldap/ldapi
+ < DEBUG > Generate new server configuration file: /usr/local/etc/openldap/slapd.conf.
+ < DEBUG > Generate new client configuration file: /usr/local/etc/openldap/ldap.conf
+ < DEBUG > Create directory used to store OpenLDAP log file: /var/log/openldap
+ < DEBUG > Create empty log file: /var/log/openldap/openldap.log.
+ < DEBUG > Setting up syslog and logrotate config files for OpenLDAP.
+ < DEBUG > Restarting syslog.
+ < DEBUG > Create instance directory for openldap tree: /var/db/openldap-data/mydomain.co.uk.
+ < DEBUG > Starting OpenLDAP.
slapd not running? (check /var/run/openldap/slapd.pid).
+ < DEBUG > Sleep 5 seconds for LDAP daemon initialization ...
+ < DEBUG > Populate LDAP tree.
adding new entry "dc=mydomain,dc=co,dc=uk"

adding new entry "cn=vmail,dc=mydomain,dc=co,dc=uk"

adding new entry "cn=vmailadmin,dc=mydomain,dc=co,dc=uk"

adding new entry "o=domains,dc=mydomain,dc=co,dc=uk"

adding new entry "o=domainAdmins,dc=mydomain,dc=co,dc=uk"

adding new entry "domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"

adding new entry "ou=Users,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"

adding new entry "ou=Groups,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"

adding new entry "ou=Aliases,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"

adding new entry "ou=Externals,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"

adding new entry "mail=postmaster@mydomain.co.uk,ou=Users,domainName=mydomain.co.uk,o=domains,dc=mydomain,dc=co,dc=uk"

[ INFO ] Setup daily cron job to backup LDAP data with /var/vmail/backup/backup_openldap.sh
[ INFO ] Configure MariaDB database server.
+ < DEBUG > Initialize MySQL server.
+ < DEBUG > Stop MySQL service before initializing database or updating my.cnf.
+ < DEBUG > Enable mysql service when system start up.
mysql_enable:  -> YES
+ < DEBUG > Disable 'skip-networking' in my.cnf.
+ < DEBUG > Set max_connections to 1024.
+ < DEBUG > Enable 'innodb_file_per_table' in my.cnf.
+ < DEBUG > Enable 'skip_grant_tables' option, so that we can reset password.
+ < DEBUG > Enable 'bind-address = 192.168.14.1' in my.cnf.
+ < DEBUG > Restart service: mysql-server.
mysql not running? (check /var/db/mysql/mailx.mydomain.co.uk.pid).
/usr/local/libexec/mysqld: Can't create file '/var/log/mysql/${hostname}.err' (errno: 13 "Permission denied")
+ < DEBUG > Sleep 10 seconds for MySQL daemon initialization ...
ERROR 1348 (HY000) at line 1: Column 'Password' is not updatable
+ < DEBUG > Remove 'skip_grant_tables'.
+ < DEBUG > Restart service: mysql-server.
+ < DEBUG > Sleep 10 seconds for MySQL daemon initialization ...
+ < DEBUG > Generate defauts file for MySQL client option --defaults-file: /root/.my.cnf.
+ < DEBUG > Delete anonymous database user.
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
+ < DEBUG > Enable chroot.
+ < DEBUG > Enable submission and additional transports required by Amavisd and Dovecot.
+ < DEBUG > Copy: /etc/{hosts,resolv.conf,localtime,services} -> /var/spool/postfix/etc/
postfix_enable:  -> YES
sendmail_enable: NO -> NO
sendmail_submit_enable: YES -> NO
sendmail_outbound_enable: YES -> NO
sendmail_msp_queue_enable: YES -> NO
daily_clean_hoststat_enable:  -> NO
daily_status_mail_rejects_enable:  -> NO
daily_status_include_submit_mailq:  -> NO
daily_submit_queuerun:  -> NO
+ < DEBUG > Configure Postfix for SQL/LDAP lookup.
+ < DEBUG > Enable postscreen service.
+ < DEBUG > Comment out 'smtp inet ... smtpd' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'smtpd pass ... smtpd' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new smtp inet ... postscreen service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'tlsproxy unix ... tlsproxy' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'dnsblog unix ... dnsblog' service in /usr/local/etc/postfix/master.cf.
+ < DEBUG > Update /usr/local/etc/postfix/main.cf to enable postscreen.
+ < DEBUG > Create /var/spool/postfix//var/db/postfix/postscreen_cache.db.
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
+ < DEBUG > Copy sample Dovecot config file to /usr/local/etc/dovecot/dovecot.conf.
+ < DEBUG > Configure dovecot: /usr/local/etc/dovecot/dovecot.conf.
+ < DEBUG > Copy global sieve filter rule file: /var/vmail/sieve/dovecot.sieve.
+ < DEBUG > Enable dovecot SASL support in postfix: /usr/local/etc/postfix/main.cf.
+ < DEBUG > Create directory for Dovecot plugin: Expire.
+ < DEBUG > Configure Dovecot logging.
+ < DEBUG > Generate modular syslog and log rotate config files for dovecot log files.
ERROR 1130 (HY000): Host 'mailx' is not allowed to connect to this MariaDB server
ln: /usr/lib/sendmail: Read-only file system
dovecot_enable:  -> YES
[ INFO ] Configure Nginx web server.
nginx_enable:  -> YES
php_fpm_enable:  -> YES
[ INFO ] Configure PHP.
+ < DEBUG > Hide PHP info from remote users requests: /usr/local/etc/php.ini.
+ < DEBUG > Increase 'memory_limit' to 256M: /usr/local/etc/php.ini.
+ < DEBUG > Increase 'upload_max_filesize', 'post_max_size' to 10/12M: /usr/local/etc/php.ini.
+ < DEBUG > Disable php extension: suhosin. /usr/local/etc/php.ini.
[ INFO ] Configure mlmmj (mailing list manager).
+ < DEBUG > Generate script: /usr/local/bin/mlmmj-amime-receive.
+ < DEBUG > Create required directories: /var/vmail/mlmmj, /var/vmail/mlmmj-archive.
+ < DEBUG > Setting cron job for mlmmj maintenance.
+ < DEBUG > Enable mlmmj transport in postfix: /usr/local/etc/postfix/main.cf.
+ < DEBUG > Configure mlmmjadmin (RESTful API server used to manage mlmmj).
+ < DEBUG > Extracting: mlmmjadmin-3.0.tar.gz -> /opt
+ < DEBUG > Generate modular syslog and log rotate config files for mlmmjadmin.
mlmmjadmin_enable:  -> YES
+ < DEBUG > Enable mlmmjadmin service.
[ INFO ] Configure ClamAV (anti-virus toolkit).
+ < DEBUG > Configure ClamAV: /usr/local/etc/clamd.conf.
+ < DEBUG > Configure freshclam: /usr/local/etc/freshclam.conf.
+ < DEBUG > Add clamav user to amavid group.
clamav_clamd_enable:  -> YES
clamav_freshclam_enable:  -> YES
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
+ < DEBUG > Generate DKIM pem files: /var/lib/dkim/mydomain.co.uk.pem.
amavisd_enable:  -> YES
amavisd_pidfile:  -> /var/amavis/var/amavisd.pid
amavis_milter_enable:  -> NO
amavis_p0fanalyzer_enable:  -> NO
+ < DEBUG > Setting cron job for vmail user to delete virus mail per month.
+ < DEBUG > Import Amavisd database and grant privileges.
[ INFO ] Configure SpamAssassin (content-based spam filter).
+ < DEBUG > Copy sample SpamAssassin config file: /root/iRedMail-1.3/samples/spamassassin/local.cf -> /usr/local/etc/mail/spamassassin/local.cf.
+ < DEBUG > Enable crontabs for SpamAssassin update.
+ < DEBUG > Compile SpamAssassin ruleset into native code.
config: registryboundaries: no tlds defined, need to run sa-update
Jul  7 14:58:17.282 [33289] info: generic: base extraction starting. this can take a while...
cd /
rm -rf /tmp/.spamassassin3328978NLe1tmp
[ INFO ] Configure iRedAPD (postfix policy daemon).
+ < DEBUG > Extracting: iRedAPD-4.1.tar.gz -> /opt
+ < DEBUG > Configure iRedAPD.
iredapd_enable:  -> YES
+ < DEBUG > Make iredapd starting after system startup.
+ < DEBUG > Import iRedAPD database template.
+ < DEBUG > Generate modular syslog and log rotate config files for iRedAPD.
[ INFO ] Configure Roundcube webmail.
+ < DEBUG > Import SQL database and privileges for Roundcubemail.
+ < DEBUG > Configure database for Roundcubemail: /usr/local/www/roundcube/config/*.
+ < DEBUG > Setting global LDAP address book in Roundcube.
+ < DEBUG > Setup daily cron job to keep SQL database clean.
+ < DEBUG > Config plugin: managesieve.
+ < DEBUG > Config plugin: password.
+ < DEBUG > Config plugin: enigma.
+ < DEBUG > Mail sensitive administration info to postmaster@mydomain.co.uk.
+ < DEBUG > Set file permission to 0600: /var/cron/tabs/root.
+ < DEBUG > Set file permission to 0600: /var/cron/tabs/vscan.
[ INFO ] Updating SpamAssassin rules (sa-update), please wait ...
gpg: Warning: using insecure memory!
[ INFO ] Compiling SpamAssassin rulesets (sa-compile), please wait ...
Jul  7 14:58:23.052 [33507] info: generic: base extraction starting. this can take a while...
Jul  7 14:58:23.052 [33507] info: generic: extracting from rules of type body_0

  0% [                                           ]   0.00 rules/sec --m--s LEFT
  6% [==                                         ]  79.29 rules/sec 00m06s LEFT
14% [======                                     ]  82.32 rules/sec 00m06s LEFT
22% [=========                                  ]  88.35 rules/sec 00m05s LEFT
30% [============                               ]  86.22 rules/sec 00m04s LEFT
38% [================                           ]  90.61 rules/sec 00m04s LEFT
44% [===================                        ]  82.56 rules/sec 00m03s LEFT
52% [======================                     ]  88.06 rules/sec 00m03s LEFT
61% [==========================                 ]  89.98 rules/sec 00m02s LEFT
68% [=============================              ]  88.60 rules/sec 00m02s LEFT
77% [=================================          ]  93.92 rules/sec 00m01s LEFT
84% [====================================       ]  89.74 rules/sec 00m01s LEFT
90% [======================================     ]  78.68 rules/sec 00m00s LEFT
97% [========================================== ]  81.99 rules/sec 00m00s LEFT
100% [===========================================]  85.67 rules/sec 00m06s DONE

  0% [                                           ]   0.00 bases/sec --m--s LEFT
10% [====                                       ] 502.74 bases/sec 00m04s LEFT
22% [=========                                  ] 561.45 bases/sec 00m03s LEFT
44% [===================                        ] 824.49 bases/sec 00m01s LEFT
100% [===========================================] 1375.92 bases/sec 00m01s DONE
Jul  7 14:58:31.681 [33507] info: body_0: 1228 base strings extracted in 8 seconds
cd /tmp/.spamassassin335070768Sotmp
reading bases_body_0.in
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c -i -b -o scanner4.c scanner4.re
re2c -i -b -o scanner5.c scanner5.re
re2c -i -b -o scanner6.c scanner6.re
re2c -i -b -o scanner7.c scanner7.re
/usr/local/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin335070768Sotmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.030/3.004004
Generating a Unix-style Makefile
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
Writing MYMETA.yml and MYMETA.json
make PREFIX=/tmp/.spamassassin335070768Sotmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.030/3.004004
cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm
Running Mkbootstrap for body_0 ()
chmod 644 "body_0.bs"
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- body_0.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs 644
"/usr/local/bin/perl" "/usr/local/lib/perl5/5.30/ExtUtils/xsubpp"  -typemap '/usr/local/lib/perl5/5.30/ExtUtils/typemap'  body_0.xs > body_0.xsc
mv body_0.xsc body_0.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   body_0.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   scanner1.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   scanner2.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   scanner3.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   scanner4.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   scanner5.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   scanner6.c
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE"   scanner7.c
rm -f blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
cc  -shared  -L/usr/local/lib/perl5/5.30/mach/CORE -lperl -L/usr/local/lib -fstack-protector-strong  body_0.o  scanner1.o  scanner2.o  scanner3.o  scanner4.o  scanner5.o  scanner6.o  scanner7.o  -o blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so       
chmod 755 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
Manifying 1 pod document
make install PREFIX=/tmp/.spamassassin335070768Sotmp/ignored INSTALLSITEARCH=/var/db/spamassassin/compiled/5.030/3.004004
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- body_0.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs 644
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /var/db/spamassassin/compiled/5.030/3.004004/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so
Installing /var/db/spamassassin/compiled/5.030/3.004004/Mail/SpamAssassin/CompiledRegexps/body_0.pm
Installing /tmp/.spamassassin335070768Sotmp/ignored/lib/perl5/site_perl/man/man3/Mail::SpamAssassin::CompiledRegexps::body_0.3
Appending installation info to /tmp/.spamassassin335070768Sotmp/ignored/lib/perl5/5.30/mach/perllocal.pod
cp /tmp/.spamassassin335070768Sotmp/bases_body_0.pl /var/db/spamassassin/compiled/5.030/3.004004/bases_body_0.pl
cd /
rm -rf /tmp/.spamassassin335070768Sotmp
[ INFO ] Updating ClamAV database (freshclam), please wait ...
+ < DEBUG > Send info of chosed packages to iRedMail team to help improve iRedMail:
+ < DEBUG >
+ < DEBUG >     OPENLDAP=YES
+ < DEBUG >     WEB_SERVER=NGINX
+ < DEBUG >     ROUNDCUBE=YES
+ < DEBUG >     SOGO=
+ < DEBUG >     NETDATA=
+ < DEBUG >     FAIL2BAN=
+ < DEBUG >     IREDADMIN=
+ < DEBUG >

9

Re: iRedMail-1.3 has been released

mjrellen wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: FreeBSD 12.1-RELEASE-p6 GENERIC  amd64 in eazyJail, clean install
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? ( Want to but chose not to install on last attempt ) No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi Zhang,

I have Benn looking at this again. I created a fresh Jail and installed only mariadb104 from ports. It failed because the mysql user/group was not created by the port. The other problem was that the /var/run/mysql directory was not created. I see from your latest 1.3.1 iRedMail/functions/mysql,sh script that you know about the non-existence of /var/run/mysql but unfortunately your code fails because the mysql user/group does not exist. The user is created if you use pkg to install. All subsequent attempts to start mysql-server fail silently. I could not find any log that gave an indication of the problem. I have modified your functions/mysql.sh script to check fro the mysql user and create it if it is different. I also add to /etc/rc.conf:

mysql_dbdir="/var/db/mysql"
mysql_pidfile="/var/run/mysql/${hostname}.pid"

I am going to try the iRedMail install again from iRedMail-1.3.1, replacing functions/mysql.sh with my changes shown below. I will let you know how I get on. It will be a few hours yet.

Kind regards,

Mark.

==============My Changes ==============
    # Initial MySQL database first
    if [ X"${DISTRO}" == X'OPENBSD' ]; then
        ECHO_DEBUG "Run mysql_install_db."
        /usr/local/bin/mysql_install_db >> ${INSTALL_LOG} 2>&1
    elif [ X"${DISTRO}" == X'FREEBSD' ]; then
        # 'mysql_enable=YES' is required to start service immediately.
        ECHO_DEBUG "Enable mysql service when system start up."
        service_control enable 'mysql_enable' 'YES'

        #### mjre 8/jul/2020
        ECHO_DEBUG "Add mysql_dbdir to /etc/rc.conf"
        sysrc mysql_dbdir="/var/db/mysql"
        ECHO_DEBUG "Add mysql_pidfile to /etc/rc.conf"
        sysrc mysql_pidfile="/var/run/mysql/${hostname}.pid"
        ECHO_DEBUG "Test for mysql user existence"
        grep mysql /etc/passwd >/dev/null
        if [ X"$?" != X'0' ]; then
        ECHO_DEBUG "No mysql user creating one"
        adduser -q -d /var/db -s nologin -w no <<EOF
mysql
MySQL Daemon
88








y
n
EOF
        fi
        #### mjre 8/jul/2020

        # rc script `mysql-server` doesn't create required directory.
        mkdir -p /var/run/mysql &>/dev/null
        chown mysql:mysql /var/run/mysql
        chmod 0755 /var/run/mysql
    fi
================End My Changes ================

10

Re: iRedMail-1.3 has been released

mjrellen wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: FreeBSD 12.1-RELEASE-p6 GENERIC  amd64 in eazyJail, clean install
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? ( Want to but chose not to install on last attempt ) No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi Zhang,

That change to mysql.sh moved things on. The database started fine this time and you can see my changes executing from the DEBUG. But there is still a problem with connecting to the db having specified the LOCAL_ADDRESS as the IP and bind_address for /usr/local/etc/mysql/conf.d/server.cnf.

The install failed to connect:
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server

Looking at mysql.sh the connect style used ( assuming FreeBSD and a Jail) was:#
mysql -h 192.168.1.14 -u root

But if I use:
root@mailx:~ # mysql -h localhost
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 10.4.13-MariaDB FreeBSD Ports

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

root@localhost [(none)]>

The connection works.

I alias localhost in the host rc.conf for the jails:

cloned_interfaces="${cloned_interfaces} lo1"

I have three jails all created with a unique localhost
ezjail-admin create mailx.mydomain.co.uk 'lo1|127.0.1.1,em0|192.168.14.1'
ezjail-admin create db.mydomain.co.uk 'lo1|127.0.2.1,em0|192.168.14.2'
ezjail-admin create tomee.mydomain.co.uk 'lo1|127.0.3.1,em0|192.168.14.3'
 
The routing from the net is handled by pf.

I will try the install again on a clean jail but specify LOCAL_ADDRESS as '127.0.0.1'.

My mod also needs a change as the PID was created with a blank base name.
So:
       sysrc mysql_pidfile="/var/run/mysql/${hostname}.pid"

Should be:
       sysrc mysql_pidfile="/var/run/mysql/$HOSTNAME.pid"


Mark

********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Generate self-signed SSL cert (4096 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
[ INFO ] Configure LDAP server: OpenLDAP.
[ INFO ] Setup daily cron job to backup LDAP data with /var/vmail/backup/backup_openldap.sh
[ INFO ] Configure MariaDB database server.
mysql_dbdir:  -> /var/db/mysql
mysql_pidfile:  -> /var/run/mysql/.pid
Username: Full name: Uid (Leave empty for default): Login group [mysql]: Login group is mysql. Invite mysql into other groups? []: Login class [default]: Shell
(sh csh tcsh bash rbash nologin) [nologin]: Home directory [/var/db/mysql]: Home directory permissions (Leave empty for default): Use password-based authentication? [no]: Lock out the account after creation? [no]: Username   : mysql
Password   : <disabled>
Full Name  : MySQL Daemon
Uid        : 88
Class      :
Groups     : mysql
Home       : /var/db/mysql
Home Mode  :
Shell      : /usr/sbin/nologin
Locked     : no
OK? (yes/no): Add another user? (yes/no): Goodbye!
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
[ INFO ] Configure Nginx web server.
[ INFO ] Configure PHP.
[ INFO ] Configure mlmmj (mailing list manager).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server
[ INFO ] Configure iRedAdmin (official web-based admin panel).
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server
[ INFO ] Configure Roundcube webmail.
ERROR 1130 (HY000): Host '192.168.14.1' is not allowed to connect to this MariaDB server

*************************************************************************
* iRedMail-1.3.1 installation and configuration complete.
*************************************************************************

11

Re: iRedMail-1.3 has been released

mjrellen wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: FreeBSD 12.1-RELEASE-p6 GENERIC  amd64 in eazyJail, clean install
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? ( Want to but chose not to install on last attempt ) No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi Zhang,

I have had another look at this and although the initial MariaDB creation and startup succeeded subsequent iRedMail ddl statements failed. It seems the method used to connect as root without a password or to set the root password has changed in MariaDB-serevr104. This is from: https://mariadb.org/authentication-in-mariadb-10-4/

====================
After installing MariaDB system-wide the first thing you’ve got used to doing is logging in into the unprotected root account and protecting it, that is, setting the root password:

$ sudo dnf install MariaDB-server
$ mysql -uroot
...
MariaDB> set password = password("XH4VmT3_jt");
This is not only unnecessary now, it will simply not work — there is no unprotected root account. To login as root use

$ sudo dnf install MariaDB-server
$ sudo mysql
Note that it implies you are connecting via the unix socket, not tcp. If you happen to have protocol=tcp in a system-wide /etc/my.cnf file, use sudo mysql --protocol=socket.

After installing MariaDB locally you’ve also used to connect to the unprotected root account using mysql -uroot. It will not work either, use simply mysql without specifying a username.

You want passwords back, no unix_socket authentication anymore? Run

ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD("verysecret")
=============================

I will continue to look at this until I get a clean install. The post db creation code re: FreeBsd Jails needs looking at in functions/mysql.sh in light of the 104 changes.
---------------------------------------------------------------------
            if [ X"${LOCAL_ADDRESS}" != X'127.0.0.1' ]; then
                ECHO_DEBUG "Enable 'skip_grant_tables' option, so that we can reset password."
                perl -pi -e 's#^(\[mysqld\])#${1}\nskip_grant_tables#' ${MYSQL_MY_CNF} >> ${INSTALL_LOG} 2>&1

                # inside Jail: listen on Jail IP address
                ECHO_DEBUG "Enable 'bind-address = ${LOCAL_ADDRESS}' in my.cnf."
                perl -pi -e 's#^(bind-address).*#${1} = $ENV{LOCAL_ADDRESS}#' ${MYSQL_MY_CNF} >> ${INSTALL_LOG} 2>&1
            fi
and:
---------------------------------------------------------------------
        if [ X"${DISTRO}" == X'FREEBSD' -a X"${LOCAL_ADDRESS}" != X'127.0.0.1' ]; then
            # Jail
#            mysql -h ${MYSQL_SERVER_ADDRESS} -u${MYSQL_ROOT_USER} --connect-expired-password mysql -e "UPDATE user SET host='${LOCAL_ADDRESS}',Password=PASSWORD('${MYSQL_ROOT_PASSWD}'),password_expired='N' WHERE User='root' AND Host='localhost'; FLUSH PRIVILEGES;" >> ${INSTALL_LOG} 2>&1
            mysql -h localhost -u${MYSQL_ROOT_USER} --connect-expired-password mysql -e "UPDATE user SET host='${LOCAL_ADDRESS}' WHERE User='root' AND Host='localhost'; FLUSH PRIVILEGES;" >> ${INSTALL_LOG} 2>&1

            ECHO_DEBUG "Remove 'skip_grant_tables'."
            perl -pi -e 's#^(skip_grant_tables.*)##g' ${MYSQL_MY_CNF} >> ${INSTALL_LOG} 2>&1

            ECHO_DEBUG "Restart service: ${MYSQL_RC_SCRIPT_NAME}."
            service_control restart ${MYSQL_RC_SCRIPT_NAME} >> ${INSTALL_LOG} 2>&1

            ECHO_DEBUG "Sleep 10 seconds for MySQL daemon initialization ..."
            sleep 10

I'll work on this and get back to you.
I shall not be posting snippets of code again that do not fix the problem. My apologies if I have broken any forum conventions or led anyone astray. 

Kind regards,

Mark.

12

Re: iRedMail-1.3 has been released

Hi Mark,

- Better send me a pull request on GitHub repo: https://github.com/iredmail/iRedMail
- If you don't use GitHub, send me a patch (in this forum) is ok too.

I personally don't have a FreeBSD Jail for testing right now, so it's some kind of broken. sad

13

Re: iRedMail-1.3 has been released

Hi Zhang,

Sorry, I have been away from this, work and holiday. My last attempt got things installed except for iredAdmin but I had to manually change an LDAP password using the Apache Directory Studio. I have a deadline to meet at the moment but will return to this later. Sorry for the massive delay.

Best regards,

Mark.

ZhangHuangbin wrote:

Hi Mark,

- Better send me a pull request on GitHub repo: https://github.com/iredmail/iRedMail
- If you don't use GitHub, send me a patch (in this forum) is ok too.

I personally don't have a FreeBSD Jail for testing right now, so it's some kind of broken. sad