1

Topic: RaspberryPi, how to install ?

Hello,

Is there a way ton install IredMail on RaspberryPi ?

When I run the setup, it tells me :

Your architecture is not supported yet: armv6l.
Both i386 and x86_64 are supported by iRedMail.

I tried the patch mentionned here but it's only for armel architectures, and not armv6l.

Someone has a trick ?

Thanks

----

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

2

Re: RaspberryPi, how to install ?

Hi Nicolas,

Please patch it and then update file conf/global, replace "armel" by "armv6l". Then try again.

3 (edited by nicolasfo 2012-12-26 20:08:47)

Re: RaspberryPi, how to install ?

I changed

# Check hardware architecture.
arch="$(uname -m)"
case $arch in
    i[3456]86) export ARCH='i386' ;;
    x86_64|amd64) export ARCH='x86_64' ;;
    armv5tel) export ARCH='armel ;;
    *)

by

# Check hardware architecture.
arch="$(uname -m)"
case $arch in
    i[3456]86) export ARCH='i386' ;;
    x86_64|amd64) export ARCH='x86_64' ;;
    armv5tel) export ARCH='armv6l' ;;
    *)

Still not work, always the same message..

Your architecture is not supported yet: armv6l.
Armel, i386 and x86_64 are supported by iRedMail.

Thanks

Edit : Have to change "armv5tel" to "armv6l" too to pass this verification step.

4

Re: RaspberryPi, how to install ?

nicolasfo wrote:

Edit : Have to change "armv5tel" to "armv6l" too to pass this verification step.

You're right.
And what's going one? Does it work?

5 (edited by nicolasfo 2012-12-27 18:20:29)

Re: RaspberryPi, how to install ?

I tried this morning to install Iredmail (MySQL backend, all options) on my Raspberry : fail.

Here's the end of my putty session before it fail :

[ ok ] Reloading web server config: apache2.
Setting up phpmyadmin (4:3.4.11.1-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf

Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version

Creating config file /etc/phpmyadmin/config-db.php with new version
granting access to database phpmyadmin for phpmyadmin@localhost: success.
verifying access for phpmyadmin@localhost: success.
creating database phpmyadmin: success.
verifying database phpmyadmin exists: success.
populating database via sql...  done.
dbconfig-common: flushing administrative password
Setting up postfix-cluebringer-webui (2.0.10-1) ...
Setting up gamin (0.1.10-4.1) ...
Setting up libgamin0 (0.1.10-4.1) ...
Setting up liblwp-protocol-https-perl (6.03-1) ...
Setting up python-gamin (0.1.10-4.1) ...
Setting up libwww-perl (6.04-1) ...
Setting up spamassassin (3.3.2-4) ...
Adding system user `debian-spamd' (UID 114) ...
Adding new group `debian-spamd' (GID 118) ...
Adding new user `debian-spamd' (UID 114) with group `debian-spamd' ...
Creating home directory `/var/lib/spamassassin' ...
SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin
Processing triggers for python-support ...
Processing triggers for python-central ...
Errors were encountered while processing:
 dovecot-imapd
 dovecot-sieve
 dovecot-managesieved
 dovecot-pop3d
E: Sub-process /usr/bin/dpkg returned an error code (1)
< ERROR > Installation failed, please check the terminal output.
You have new mail in /var/mail/root

And here's the mail mentionned above :

From www-data@server.mydomain.fr  Thu Dec 27 09:10:19 2012
Return-Path: <www-data@server.mydomain.fr>
X-Original-To: root
Delivered-To: root@server.mydomain.fr
Received: by server.mydomain.fr (Postfix, from userid 33)
    id 33DA56035B; Thu, 27 Dec 2012 09:10:16 +0000 (UTC)
From: root@server.mydomain.fr (Cron Daemon)
To: root@server.mydomain.fr
Subject: Cron <www-data@server> [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
Content-Type: text/plain; charset=UTF-8
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/www>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=www-data>
Message-Id: <20121227091019.33DA56035B@server.mydomain.fr>
Date: Thu, 27 Dec 2012 09:10:16 +0000 (UTC)

Error while processing /etc/awstats/awstats.conf
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

From www-data@server.mydomain.fr  Thu Dec 27 09:20:19 2012
Return-Path: <www-data@server.mydomain.fr>
X-Original-To: root
Delivered-To: root@server.mydomain.fr
Received: by server.mydomain.fr (Postfix, from userid 33)
    id E998E6036D; Thu, 27 Dec 2012 09:20:16 +0000 (UTC)
From: root@server.mydomain.fr (Cron Daemon)
To: root@server.mydomain.fr
Subject: Cron <www-data@servlm> [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
Content-Type: text/plain; charset=UTF-8
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/www>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=www-data>
Message-Id: <20121227092018.E998E6036D@server.mydomain.fr>
Date: Thu, 27 Dec 2012 09:20:16 +0000 (UTC)

Error while processing /etc/awstats/awstats.conf
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

So, the console hangs before configuring dovecot and co, and the mail sended by the system tells about a problem with awstats...

I could try to install Iredmail by unselect the Awstats (I don't use it...) option... To see...

What happened ?

Thanks

6 (edited by nicolasfo 2012-12-28 16:53:35)

Re: RaspberryPi, how to install ?

Anothers problems after the installation :

- Dovecot is configured to listen on IPv4 and IPv6 adresses. RaspberryPi isn't IPv6 compatible.
So, we have to add this line in /etc/dovecot/dovecot.conf to disable IPv6 support :

listen = *

- Same problem with Postfix. In /etc/postfix/main.cf :

inet_protocols = ipv4

- Same problem with Apache. In /etc/apache2/ports.conf :

Listen 0.0.0.0:80
Listen 0.0.0.0:443

Apologies, Raspberry supports IPv6, but not enabled by default. To enable it, run :

echo "ipv6" >> /etc/modules

7

Re: RaspberryPi, how to install ?

Errors were encountered while processing:
dovecot-imapd
dovecot-sieve
dovecot-managesieved
dovecot-pop3d

Are these packages available in apt repositories? Can you install these packages on a FRESH Raspberry Pi manually?

8

Re: RaspberryPi, how to install ?

I've made changes I wrote in my precedent post, and all services are working...

Now, I can't access to iredadmin, my browser (IE, Opera, FF) lists me the content of /usr/share/apache2/iredadmin.

I checked if the apache config file was good (with another server where iredadmin works fine) and it seems to be OK.
http://img571.imageshack.us/img571/1060/sanstitresa.jpg

No errors in the log file, permissions are OK..

Any idea ?

Thnaks

9 (edited by nicolasfo 2012-12-27 23:24:54)

Re: RaspberryPi, how to install ?

It seems that iredadmin.py is not considerate or not interpreted ?

Note that roundcube and phpMyAdmin are working perfectly.

10

Re: RaspberryPi, how to install ?

Check these two files:

- /etc/apache2/conf.d/iredadmin.conf
- /etc/apache2/sites-available/default-ssl

P.S. Did you use http://xx/iredadmin/ or httpShmm/

11

Re: RaspberryPi, how to install ?

Those files have been checked too, nothing change.
I used https to connect to the interface.

12

Re: RaspberryPi, how to install ?

Do you have libapache2-mod_wsgi installed?

13

Re: RaspberryPi, how to install ?

Yes, and I de-re-activate it, without success.

I'm gonna reinstall all the system and restart Iredmail install.

14

Re: RaspberryPi, how to install ?

It's OK, I don't know why it didn't work the last time..

There are things to do before run the install script :

- First of all, it's better to install Webmin :

apt-get update
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.610_all.deb
dpkg -i webmin_1.610_all.deb
An error will occur, enter this command : apt-get install -f

Webmin is now OK via https://IPSERVER:10000


- Fix your IP adress (it's better than to have a dynamic IP assigned by a DHCP server...)


- Due to prices restrictions, RaspberryPi doesn't have any battery onboard. The clock isn't saved, and you could have problems during install. So, you have to run this command to install ntpdate, wich synchronise RasPi time with a time server :

apt-get install ntpdate

It's easier to set time servers and synchro times with Webmin (Hardware-System Time) you can have a list of public time-servers by Googling "ntp server".


- To activate IPv6 protocol, you have to type this command :

echo "ipv6" >> /etc/modules

- You have to add this line in /etc/hosts file :

IPADRESSOFTHESERVER servername.domain.fr servername

To me, I comment (#)the "127.0.1.1 raspberrypi" line, I don't know why it's here for this server...)

- You have to patch you iRedMail installer, like mentionned before in this same thread.

- Reboot the RasPi to activate all changes, and you can run iredmail installer like a "classic" server.

Beware that it seems that AwStats isn't compatible... So unselect it during install.

If someone try to install it with this post, tell me if a problem occurs, it's possible I've forgot someting..

Nicolas

15

Re: RaspberryPi, how to install ?

It would be great if you can post a detailed tutorial in Raspberry Pi official forum or blog. smile

16

Re: RaspberryPi, how to install ?

I'll do it OK wink