1

Topic: OS not supported --- OS Amazon Linux AMI

==== Required information ====
OS Amazon Linux AMI
https://aws.amazon.com/amazon-linux-ami … ase-notes/
====

Hello agian,

after considering my alternatives i decided i will iredmail on our new server.

But the installer told me the OS is not supported.
It is an Amazon Linux AMI (link on top)

In essence its an Centos a bit 6 and a bit 7 so it seems.

Is there a way i can per sway the installer to try either way.
I am fairly sure it would work.

Amazon WorkMail is Exchange only and 4 € for each  inbox.

I hope that i will find a solution for this.

----

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

2

Re: OS not supported --- OS Amazon Linux AMI

For CentOS 6, please create file /etc/redhat-release with below content:

CentOS release 6.7 (Final)

For CentOS 7:

CentOS release 7.0

Then re-run iRedMail installer.

3

Re: OS not supported --- OS Amazon Linux AMI

Thx,

the installer is working now.

But unfortunately its not a real centos. Amazon confirmed its an own creation with their own
packages.

But it was woth a try.

Thank you very much.
If you are interestet i can provide you with  the log files.

4

Re: OS not supported --- OS Amazon Linux AMI

If you update /etc/yum.repos.d/*.repo to use official CentOS repo, iRedMail should work as expected.

5

Re: OS not supported --- OS Amazon Linux AMI

Hello,

iam still trying to determine wich centos this could be or wich repos i could use.

Any idea wich repos are most compatible to test test?


This is te current state:


clamav-server

php56-mcrypt
httpd24
Error: Package: perl-Config-IniFiles-2.72-2.el6.noarch (epel)
           Requires: perl(:MODULE_COMPAT_5.10.1)
--> Processing Conflict: php56-mcrypt-5.6.14-1.119.amzn1.x86_64 conflicts php-mcrypt < 5.5.22-1.98
--> Processing Conflict: httpd24-2.4.16-1.62.amzn1.x86_64 conflicts httpd < 2.4.16
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-Config-IniFiles-2.72-2.el6.noarch


No package mariadb-server available.
No package mariadb available.
Package perl-DBD-MySQL-4.023-5.17.amzn1.x86_64 is obsoleted by perl-DBD-MySQL55-4.023-5.23.amzn1.x86_64 which is already installed

No package clamav-server-systemd available.
No package python-lxml available.

6

Re: OS not supported --- OS Amazon Linux AMI

*) Does Amazon mention the CentOS release in any online document?
*) You can try either CentOS 6 or 7. Maybe you need to remove some packages first to avoid package conflict.

7 (edited by neozimpi@gmail.com 2015-11-02 19:32:59)

Re: OS not supported --- OS Amazon Linux AMI

ZhangHuangbin wrote:

*) Does Amazon mention the CentOS release in any online document?
*) You can try either CentOS 6 or 7. Maybe you need to remove some packages first to avoid package conflict.


unfortunately the don't tell you what release it is but maybe i can look it up in the repo files.
But  i already tried 6 and seven they don't work. package not found or obsolete.

Does it help if i upload some repo files from the server here ?

8 (edited by neozimpi@gmail.com 2015-11-02 21:36:54)

Re: OS not supported --- OS Amazon Linux AMI

this is the only useful thing i found:

1529 packages excluded due to repository priority protections
Repo-ID
amzn-main/latest                                                   
amzn-main-Base
amzn-updates/latest
epel/x86_64
iRedMail                                                           iRedMail                                                                                                       
remi-safe      Safe Remi's RPM repository for Enterprise Linux 6 - x86_64
rpmforge       RHEL latest - RPMforge.net - dag

So i guess the 6.7 final repos should work.

9

Re: OS not supported --- OS Amazon Linux AMI

install.log

[ INFO ] Installing package(s): postfix mysql-server mysql perl-DBD-MySQL mod_auth_mysql php-common php-gd php-xml php-mysql php-ldap php-pgsql php-imap php-mbstring php-pecl-apc php-intl p$
Loaded plugins: priorities, update-motd, upgrade-helper
963 packages excluded due to repository priority protections
Package mysql-server-5.5-1.6.amzn1.noarch already installed and latest version
Package mysql-5.5-1.6.amzn1.noarch already installed and latest version
Package perl-DBD-MySQL-4.023-5.17.amzn1.x86_64 is obsoleted by perl-DBD-MySQL55-4.023-5.23.amzn1.x86_64 which is already installed
Package php-common-5.3.29-1.8.amzn1.x86_64 already installed and latest version
Package php-gd-5.3.29-1.8.amzn1.x86_64 already installed and latest version
Package php-xml-5.3.29-1.8.amzn1.x86_64 already installed and latest version
Package php-mysql-5.3.29-1.8.amzn1.x86_64 already installed and latest version
Package php-mbstring-5.3.29-1.8.amzn1.x86_64 already installed and latest version
Package php-pecl-apc-3.1.15-0.3.svn329913.10.amzn1.x86_64 already installed and latest version
Package php-5.3.29-1.8.amzn1.x86_64 already installed and latest version
Package httpd-2.2.31-1.6.amzn1.x86_64 already installed and latest version
Package 1:mod_ssl-2.2.31-1.6.amzn1.x86_64 already installed and latest version
Package 1:dovecot-2.0.9-7.14.amzn1.x86_64 already installed and latest version
Package 1:dovecot-pigeonhole-2.0.9-7.14.amzn1.x86_64 already installed and latest version
No package dovecot-managesieve available.
No package python-lxml available.
Package unzip-6.0-2.9.amzn1.x86_64 already installed and latest version
Package bzip2-1.0.6-8.12.amzn1.x86_64 already installed and latest version
Package acl-2.2.49-6.11.amzn1.x86_64 already installed and latest version
Package tmpwatch-2.9.16-4.10.amzn1.x86_64 already installed and latest version
Resolving Dependencies

10

Re: OS not supported --- OS Amazon Linux AMI

Looks fine. Does it work now?

11 (edited by neozimpi@gmail.com 2015-11-02 22:13:28)

Re: OS not supported --- OS Amazon Linux AMI

No sad

No package dovecot-managesieve available.
No package python-lxml available.

--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-Cache-FastMmap-1.35-1.el6.2.x86_64
---> Package perl-Config-IniFiles.noarch 0:2.72-2.el6 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-Config-IniFiles-2.72-2.el6.noarch
--> Finished Dependency Resolution
Error: Package: perl-Config-IniFiles-2.72-2.el6.noarch (epel)
           Requires: perl(:MODULE_COMPAT_5.10.1)
Error: Package: perl-Cache-FastMmap-1.35-1.el6.2.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.10.1)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

12 (edited by neozimpi@gmail.com 2015-11-02 22:34:56)

Re: OS not supported --- OS Amazon Linux AMI

For Dovecot-Sieve i could try this howto:

http://www.wedebugyou.com/2014/02/how-t … -centos-6/

for the pearl problem i have no idea.

And the result of yum search dovecot

dovecot-devel.x86_64 : Development files for dovecot
dovecot-mysql.x86_64 : MySQL back end for dovecot
dovecot-pgsql.x86_64 : Postgres SQL back end for dovecot
dovecot-pigeonhole.x86_64 : Sieve and managesieve plug-in for dovecot   <<< *info*
dovecot.x86_64 : Secure imap and pop3 server


*info* IRedmail dosnt seem to care if its installed or not it says sieve is not available.

13

Re: OS not supported --- OS Amazon Linux AMI

i did:

yum remove epel-release
yum clean all
yum repolist
yum update
yum install perl-Config-IniFiles  (didnt work from the script)
yum install dovecot-pigeonhole

i will post the complete repolist when i can confirm that its working.

14 (edited by neozimpi@gmail.com 2015-11-02 23:29:03)

Re: OS not supported --- OS Amazon Linux AMI

install complete wink
... but...

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 39: Unknown setting: ssl_protocols

ssl_protocols = !SSLv2 !SSLv3



doveconf -a | grep ssl

doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 39: Unknown setting: ssl_protocols
doveconf: Error: managesieve-login: dump-capability process returned 89
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 39: Unknown setting: ssl_protocols

15

Re: OS not supported --- OS Amazon Linux AMI

What's the Dovecot version (dovecot --version)? You can comment out this line as a temporary solution.

Looks like Amazon AMI has too many customized packages.

16 (edited by neozimpi@gmail.com 2015-11-03 16:35:34)

Re: OS not supported --- OS Amazon Linux AMI

ZhangHuangbin wrote:

What's the Dovecot version (dovecot --version)? You can comment out this line as a temporary solution.

Looks like Amazon AMI has too many customized packages.


Dovecot 2.8.9

They told me that the versions in their repository's are meant for compatibility and safety.
I think its there to limit your capability to create on working solution and buy the amazon services in the panel. but they use exchange witch is not working for us.

What authentification encryption do we have if the ssl is not working? STAR TSL ?
Dovecot starts if i set a "#" before:

# ssl_protocols = !SSLv2 !SSLv3

Apache isnt starting as well.
Server version: Apache/2.2.31 (Unix)
Log:
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[error]   Init: Multiple RSA server certificates not allowed

But i can see the light on the end of the tunnel already.

Dovecot is running and if apache is working i can test iRedMail wink
bzw. mysql is working as well and all aother services.

Are you planning on include support for Amazon AMI Systems?
It is a Centos 6.8 but they have other where you can choose.
But if it is working here the other ones will work as well since
they use the amazon repos as well. I checked. Created a second VPS for testing.
Problem is i cant do that so often cause the new vps will be charged to your account and

17

Re: OS not supported --- OS Amazon Linux AMI

No i have to add spamassasin and amavis manualy. so it seems.

18 (edited by neozimpi@gmail.com 2015-11-03 18:40:08)

Re: OS not supported --- OS Amazon Linux AMI

So after a time i found the error in apache SSL certificate was somehow 3 added.
I dont know how. But now its working.

So no i have to change the hostname where must i change the hostnames in iredmail settings.
postfix, dovecot, apache ? Is it important to change them? the domain name is the same.
Only the hostname changes. the domains i  cant to use is mail.example.org instead of only
example.org. Is it wise to run the installer again with the changes?

Goal is that i can use my other vdomains like example.org and or 2nd-example.org and so on.

I hope the above infos will help. If anything new comes up i will post it but i think at the moment
its pretty static.

19

Re: OS not supported --- OS Amazon Linux AMI

neozimpi@gmail.com wrote:

Dovecot 2.8.9

This is wrong version number. Dovecot has 1.x, 2.0.x, 2.1.x, 2.2.x, but not 2.8.x.

neozimpi@gmail.com wrote:

So no i have to change the hostname where must i change the hostnames in iredmail settings.
postfix, dovecot, apache ? Is it important to change them? the domain name is the same.
Only the hostname changes. the domains i  cant to use is mail.example.org instead of only
example.org. Is it wise to run the installer again with the changes?

Check our tutorial here:
http://www.iredmail.org/docs/change.ser … tname.html

20 (edited by neozimpi@gmail.com 2015-11-03 19:30:23)

Re: OS not supported --- OS Amazon Linux AMI

after i used the uninstall script i tried to install again
with a lot of
We are working with 4 people on the server and had a missunderstanding.
So i used the uninsall .sh script from
http://www.iredmail.org/forum/topic333- … dmail.html

< Question > Continue? [y|N]y
< SKIP > Function: install_all.

almost everything is skipped now.

What can i do?

21

Re: OS not supported --- OS Amazon Linux AMI

I removed the folder unziped again it worked.

So now i have the folowing problem:

Transaction check error:
  file /usr/libexec/dovecot/managesieve from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-1:2.0.9-7.14.amzn1.x86_64
  file /usr/libexec/dovecot/managesieve-login from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-1:2.0.9-7.14.amzn1.x86_64
  file /usr/lib64/dovecot/settings/libmanagesieve_login_settings.so from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-pigeonhole-1:2.0.9-7.14.amzn1.x86_64
  file /usr/lib64/dovecot/settings/libmanagesieve_settings.so from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-pigeonhole-1:2.0.9-7.14.amzn1.x86_64
  file /usr/libexec/dovecot/managesieve from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-pigeonhole-1:2.0.9-7.14.amzn1.x86_64
  file /usr/libexec/dovecot/managesieve-login from install of dovecot-managesieve-2:0.3.6-26.el6.x86_64 conflicts with file from package dovecot-pigeonhole-1:2.0.9-7.14.amzn1.x86_64

22 (edited by neozimpi@gmail.com 2015-11-03 20:28:15)

Re: OS not supported --- OS Amazon Linux AMI

btw:

yum remove dovecot*

says dovecot is not installed everything is removed.

__________________

i removed the iRedMail repo entrys in
/etc/yum.repos.d/

after that it worked.
But i think not having the iredmail repo could be a problem in the future.
Right?

23

Re: OS not supported --- OS Amazon Linux AMI

So far i am ready to i have acces with firefox and can talk to postfix but the following problems occour:

Nov  3 13:14:53 mydomain postfix/qmgr[3816]: warning: problem talking to service rewrite: Success
Nov  3 13:14:53 mydomain postfix/cleanup[3921]: warning: problem talking to service rewrite: Connection reset by peer
Nov  3 13:14:53 mydomain postfix/master[2693]: warning: process /usr/libexec/postfix/trivial-rewrite pid 3922 exit status 1
Nov  3 13:14:53 mydomain postfix/master[2693]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Nov  3 13:15:53 mydomain postfix/proxymap[2702]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111)
Nov  3 13:15:53 mydomain postfix/proxymap[2702]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111)
Nov  3 13:15:53 mydomain postfix/trivial-rewrite[3924]: fatal: proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf(0,lock|fold_fix): table lookup problem

24

Re: OS not supported --- OS Amazon Linux AMI

I am sorry to inform you. Time was running out and we need  a working system fast.
So we setup a new ubuntu vps and droped the old centos system from amazon.

Wich us luck with ubuntu 14.04 LTS

25

Re: OS not supported --- OS Amazon Linux AMI

It is working wink