1

Topic: Error installing iRedMail

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

[ec2-user@mx iRedMail-1.3.2]$ bash iRedMail.sh
/home/ec2-user/iRedMail-1.3.2/conf/global: line 693: syntax error: unexpected end of file
/home/ec2-user/iRedMail-1.3.2/pkgs/../conf/global: line 693: syntax error: unexpected end of file
<< ERROR >> Please run this script as user: root.
[ec2-user@mx iRedMail-1.3.2]$ sudo su
[root@mx iRedMail-1.3.2]# bash iRedMail.sh
/home/ec2-user/iRedMail-1.3.2/conf/global: line 693: syntax error: unexpected end of file
/home/ec2-user/iRedMail-1.3.2/pkgs/../conf/global: line 693: syntax error: unexpected end of file
< SKIP > Function: check_new_iredmail.
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 5: /yum/misc/iRedAdmin-1.2.tar.gz
get_all.sh: line 98: /yum/misc/iRedAdmin-1.2.tar.gz: No such file or directory
[ INFO ] + 2 of 5: /yum/misc/mlmmjadmin-3.0.4.tar.gz
get_all.sh: line 98: /yum/misc/mlmmjadmin-3.0.4.tar.gz: No such file or directory
[ INFO ] + 3 of 5: /yum/misc/iRedAPD-4.6.tar.gz
get_all.sh: line 98: /yum/misc/iRedAPD-4.6.tar.gz: No such file or directory
[ INFO ] + 4 of 5: /yum/misc/netdata-v1.26.0.gz.run
get_all.sh: line 98: /yum/misc/netdata-v1.26.0.gz.run: No such file or directory
[ INFO ] + 5 of 5: /yum/misc/roundcubemail-1.4.9-complete.tar.gz
get_all.sh: line 98: /yum/misc/roundcubemail-1.4.9-complete.tar.gz: No such file or directory
[ INFO ] Validate downloaded source tarballs ...
sha256sum: misc/iRedAdmin-1.2.tar.gz: No such file or directory
misc/iRedAdmin-1.2.tar.gz: FAILED open or read
sha256sum: misc/mlmmjadmin-3.0.4.tar.gz: No such file or directory
misc/mlmmjadmin-3.0.4.tar.gz: FAILED open or read
sha256sum: misc/iRedAPD-4.6.tar.gz: No such file or directory
misc/iRedAPD-4.6.tar.gz: FAILED open or read
sha256sum: misc/netdata-v1.26.0.gz.run: No such file or directory
misc/netdata-v1.26.0.gz.run: FAILED open or read
sha256sum: misc/roundcubemail-1.4.9-complete.tar.gz: No such file or directory
misc/roundcubemail-1.4.9-complete.tar.gz: FAILED open or read
sha256sum: WARNING: 5 listed files could not be read
        [ FAILED ]
<< ERROR >> Package verification failed. Script exit ...

The installer that I am using was downloaded 4 days ago from the website. Seeing the above errors while trying to install. I transferred the installer to the EC2 instance via Filezilla, extracted it in the home directory and ran the installer. Please advice.

2

Re: Error installing iRedMail

Looks to be a corrupted installer/file. I recommend you download the tarball from within the VM itself (use curl or wget), and try again.

3

Re: Error installing iRedMail

For Red Hat 8.3 support, you need the latest development edition:
https://github.com/iredmail/iRedMail/ar … master.zip

Or, wait for next stable release which will be announced shortly.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

4

Re: Error installing iRedMail

Thanks, downloading the tarball from within the VM worked. I then applied the patch highlighted here:
https://github.com/iredmail/iRedMail/co … 0c99fb11b7

I was able to proceed with the installation but now I am getting the below error:

CentOS-8 - AppStream                                                                                                                                                                                          25 kB/s | 7.6 kB     00:00
Errors during downloading metadata for repository 'AppStream':
  - Status code: 404 for http://mirror.centos.org/$contentdir/8/ … repomd.xml (IP: 13.233.140.107)
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[ INFO ] Checking configuration file: /home/ec2-user/iRedMail-1.3.2/config ...[ INFO ] NOT FOUND. Launching installation wizard.
/home/ec2-user/iRedMail-1.3.2/dialog/config_via_dialog.sh: line 44: dialog: command not found
[ INFO ] Exit.

Is this something to do with iRedMail referencing incorrect repos and will this be fixed in the stable release or is it something else?

Could you please share the tentative release date of the next stable release?

5

Re: Error installing iRedMail

- Are you trying with a CentOS 8 or RHEL 8? Why it shows "CentOS-8 - AppStream" repo name?
- If you're trying on RHEL 8, please download the latest development edition and NO PATCH required:
https://github.com/iredmail/iRedMail/ar … master.zip

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

6

Re: Error installing iRedMail

ZhangHuangbin wrote:

- Are you trying with a CentOS 8 or RHEL 8? Why it shows "CentOS-8 - AppStream" repo name?
- If you're trying on RHEL 8, please download the latest development edition and NO PATCH required:
https://github.com/iredmail/iRedMail/ar … master.zip

I am doing the installation on RHEL 8.3; not sure why the error says CentOS-8

7

Re: Error installing iRedMail

rohit.gavval wrote:

I am doing the installation on RHEL 8.3; not sure why the error says CentOS-8

Better wait for some more days until we announce the new iRedMail release 1.4.0, it supports RHEL 8.x very well. Or, you can download the lates development edition and try it:
https://github.com/iredmail/iRedMail/ar … master.zip

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

8

Re: Error installing iRedMail

ZhangHuangbin wrote:
rohit.gavval wrote:

I am doing the installation on RHEL 8.3; not sure why the error says CentOS-8

Better wait for some more days until we announce the new iRedMail release 1.4.0, it supports RHEL 8.x very well. Or, you can download the lates development edition and try it:
https://github.com/iredmail/iRedMail/ar … master.zip

Thanks for the update Zhang!