1

Topic: Installation

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====
I just installed iredmail on Centos 6.5, it seems everything went fine but after installation when I try to go to
https://myserver-ip/mail or https://myserver-ip/iredadmin, I get this page can not be found but when I check postif is running and my httpd is running

Pliz help I am a novice in iredmail

----

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

2

Re: Installation

did you try http://youserver-ip/SOGo   "case sensitive"

3

Re: Installation

k-hussein wrote:

did you try http://youserver-ip/SOGo   "case sensitive"


I di not try SOGo because I did not choose it during installation

4

Re: Installation

Did you restart server after iRedMail installation? Also, did you see any error message during iRedMail installation?

5

Re: Installation

ZhangHuangbin wrote:

Did you restart server after iRedMail installation? Also, did you see any error message during iRedMail installation?

Yes I restarted the server and "no" there were no error messages during installation  is there something I am supposed to do after installation besides rebooting??

6

Re: Installation

Rebooting server is enough to bring all requires services up and running.

I have no idea yet, because httpS://xxx/mail and httpS://xxx/iredadmin should always work.
Any error if you restart Nginx service? If you didn't choose Nginx during iRedMail installation, any error restart Apache service?

# service nginx restart
# ---- OR ----
# service httpd restart

7

Re: Installation

ZhangHuangbin wrote:

Rebooting server is enough to bring all requires services up and running.

I have no idea yet, because httpS://xxx/mail and httpS://xxx/iredadmin should always work.
Any error if you restart Nginx service? If you didn't choose Nginx during iRedMail installation, any error restart Apache service?

# service nginx restart
# ---- OR ----
# service httpd restart

am using apache and I have restarted it several times, still not working. I think I am going to reinstall afresh, can someone point me to any other installation tutorial which is better than "http://www.rackspace.com/knowledge_cent … stallation" since this was based on older iRedmail.

8

Re: Installation

Please, use our official installation tutorials: http://www.iredmail.org/docs/

9

Re: Installation

ZhangHuangbin wrote:

Please, use our official installation tutorials: http://www.iredmail.org/docs/

I have the same problem, clean server:


1 SMP Debian 3.2.65-1+deb7u1 x86_64

iRedMail-0.9.0.tar.bz2

followed:
http://www.iredmail.org/docs/install.ir … buntu.html

choosed Mysql and apache.
Apache/2.2.22 (Debian) mod_ssl/2.2.22 OpenSSL/1.0.1e mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

apache logs:
File does not exist: /var/www/mail
File does not exist: /var/www/SOGo

ls /var/www/
index.html  index.html.2015.01.20.20.35.56  robots.txt

cat /var/www/index.html
<html>
    <head>
        <meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">
    </head>
</html>

ireadap.log

2015-01-20 23:52:56 INFO Starting iRedAPD (version: 1.4.4, backend: mysql), listening on 127.0.0.1:7777.
2015-01-20 23:52:56 INFO Loading plugin: reject_null_sender
2015-01-20 23:52:56 INFO Loading plugin: amavisd_message_size_limit
2015-01-20 23:52:56 INFO Loading plugin: amavisd_wblist
2015-01-20 23:52:56 INFO Loading plugin: sql_alias_access_policy

Anything is missing somewhere.

10

Re: Installation

aladedragon wrote:
ZhangHuangbin wrote:

Please, use our official installation tutorials: http://www.iredmail.org/docs/

I have the same problem, clean server:


1 SMP Debian 3.2.65-1+deb7u1 x86_64

iRedMail-0.9.0.tar.bz2

followed:
http://www.iredmail.org/docs/install.ir … buntu.html

choosed Mysql and apache.
Apache/2.2.22 (Debian) mod_ssl/2.2.22 OpenSSL/1.0.1e mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations

apache logs:
File does not exist: /var/www/mail
File does not exist: /var/www/SOGo

ls /var/www/
index.html  index.html.2015.01.20.20.35.56  robots.txt

cat /var/www/index.html
<html>
    <head>
        <meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">
    </head>
</html>

ireadap.log

2015-01-20 23:52:56 INFO Starting iRedAPD (version: 1.4.4, backend: mysql), listening on 127.0.0.1:7777.
2015-01-20 23:52:56 INFO Loading plugin: reject_null_sender
2015-01-20 23:52:56 INFO Loading plugin: amavisd_message_size_limit
2015-01-20 23:52:56 INFO Loading plugin: amavisd_wblist
2015-01-20 23:52:56 INFO Loading plugin: sql_alias_access_policy

Anything is missing somewhere.


I don't really know what happened but I did not work on the server for the past three days and when i tried today its working fine
only problem is I did not include cluebringer during initial installation

11

Re: Installation

paurosi wrote:

I don't really know what happened but I did not work on the server for the past three days and when i tried today its working fine
only problem is I did not include cluebringer during initial installation

I think that in my case the problem was different. Reinstalation was posible and suitable.

A instalation logs should be apreciated.

greetings
smile

12

Re: Installation

aladedragon wrote:

apache logs:
File does not exist: /var/www/mail
File does not exist: /var/www/SOGo

Please check whether you have package 'sogo' installed. Also, do you have file /etc/apache2/conf.d/roundcubemail.conf? and /etc/apache2/conf.d/SOGo.conf?

13

Re: Installation

ZhangHuangbin wrote:
aladedragon wrote:

apache logs:
File does not exist: /var/www/mail
File does not exist: /var/www/SOGo

Please check whether you have package 'sogo' installed. Also, do you have file /etc/apache2/conf.d/roundcubemail.conf? and /etc/apache2/conf.d/SOGo.conf?


I cleaned the server and reinstalled iredmail, I didn't checked the sogo option and checked the prefered www server nginx.

Now iredmail and roundcube are runing.

What is not runing is:

-awstats
-cluebringer
-phpmyadmin

I'm reading docs on https://bitbucket.org/zhb/docs.iredmail.org/src and figuring out how things runs on iredmail. I'm newbie here.

nginx and apache are runing, is nginx a layer proxy in front of apache?
Both are listening in the port 80:
nginx default.conf:
server {
    listen 80;
    server_name _;

    root /var/www;
    index index.php index.html index.htm;

    location / {
        root /var/www;
    }
Apanche ports.conf

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
(...)
    Listen 443
</IfModule>


but apache is not runing:

Some info:

ls -Ras /etc/apache2/
/etc/apache2/:
total 92
4 .                      4 conf.d         4 mods-enabled
4 ..                      4 envvars         4 ports.conf
12 apache2.conf                 32 magic         4 sites-available
12 apache2.conf.2015.01.21.02.13.41   4 mods-available     4 sites-enabled

/etc/apache2/conf.d:
total 44
4 .        4 cluebringer.conf       4 phpmyadmin.conf
4 ..        4 iredadmin.conf       4 roundcubemail.conf
4 awstats.conf    4 localized-error-pages    4 security
4 charset    4 other-vhosts-access-log

/etc/apache2/mods-available:
total 388
(...)
/etc/apache2/mods-enabled:
total 8
4 .            0 autoindex.load    0 php5.conf
4 ..            0 cgi.load        0 php5.load
0 alias.conf        0 dbd.load        0 reqtimeout.conf
0 alias.load        0 deflate.conf        0 reqtimeout.load
0 auth_basic.load    0 deflate.load        0 setenvif.conf
0 authn_dbd.load    0 dir.conf        0 setenvif.load
0 authn_file.load    0 dir.load        0 ssl.conf
0 authz_default.load    0 env.load        0 ssl.load
0 authz_groupfile.load    0 mime.conf        0 status.conf
0 authz_host.load    0 mime.load        0 status.load
0 authz_user.load    0 negotiation.conf  0 wsgi.conf
0 autoindex.conf    0 negotiation.load  0 wsgi.load

/etc/apache2/sites-available:
total 28
4 .  4 ..  4 default  8 default-ssl  8 default-ssl.2015.01.21.02.13.41

/etc/apache2/sites-enabled:
total 8
4 .  4 ..  0 000-default  0 default-ssl


ls -Ras /etc/nginx/
/etc/nginx/:
total 72
4 .          4 mime.types                4 scgi_params
4 ..          8 naxsi_core.rules            4 sites-available
4 conf.d      4 naxsi.rules                4 sites-enabled
4 fastcgi_params  4 nginx.conf                4 uwsgi_params
4 koi-utf      4 nginx.conf.2015.01.21.02.13.41  4 win-utf
4 koi-win      4 proxy_params

/etc/nginx/conf.d:
total 16
4 .  4 ..  8 default.conf

/etc/nginx/sites-available:
total 12
4 .  4 ..  4 default

/etc/nginx/sites-enabled:
total 8
4 .  4 ..  0 default

More info:

service apache2 status
Apache2 is NOT running.

netstat -lptn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      ss/amavisd-new (m
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      yy/master     
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      dd/mysqld     
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      yy/master     
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      xx/dovecot   
tcp        0      0 127.0.0.1:9998          0.0.0.0:*               LISTEN      ss/amavisd-new (m
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      xx/dovecot   
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      qq/nginx     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      aa/named     
tcp        0      0 0.0.0.0:24              0.0.0.0:*               LISTEN      xx/dovecot   
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      yy/master     
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      aa/named     
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      qq/nginx     
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      xx/dovecot   
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      xx/dovecot   
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      xx/dovecot   


Thanks for your time smile

14

Re: Installation

aladedragon wrote:

What is not runing is:
-awstats
-cluebringer
-phpmyadmin

It's mentioned in iRedMail-0.9.0 release notes:
http://www.iredmail.org/forum/topic8443 … eased.html

aladedragon wrote:

nginx and apache are runing, is nginx a layer proxy in front of apache?

No. Nginx and Apache are standalone web server, they don't run at the same time with default setting (both are configured to listen on port 80).

15

Re: Installation

ZhangHuangbin wrote:
aladedragon wrote:

What is not runing is:
-awstats
-cluebringer
-phpmyadmin

It's mentioned in iRedMail-0.9.0 release notes:
http://www.iredmail.org/forum/topic8443 … eased.html

Yes I read about after posting.
I installed a Virtual Machine with apache and they are running. There is Auth failure, I suppose for the sha2024 pasword.
You mention some changes to be done. Can you guide me a bit?
I can work without Phpmyadmin, but awsts is important, and I'm curious about cluebringer.
I will prepare a clean install with apache selected and sogo.

Just for reporting feedback, in VM apache and sogo was selected and everything runs out of the box. Just the Auth faliure.
When Ngix was selected Awstats and cluebringer returns a 404 failure, no login screen etc...

Thanks in advance for your efforts and time.

16

Re: Installation

aladedragon wrote:

You mention some changes to be done. Can you guide me a bit?

1: Generate a salted MD5 password hash:

# openssl passwd -1 'your_password'
$1$BVLONBLR$/UkkkPnP2rvjGt0XwpIVp0

2: Update password for your mail admin:

# mysql -uroot -p
mysql> USE vmail;
mysql> UPDATE mailbox SET password='$1$BVLONBLR$/UkkkPnP2rvjGt0XwpIVp0' WHERE username='admin_email_address';
aladedragon wrote:

Just for reporting feedback, in VM apache and sogo was selected and everything runs out of the box. Just the Auth faliure.
When Ngix was selected Awstats and cluebringer returns a 404 failure, no login screen etc...

Expected behavior.

17

Re: Installation

ZhangHuangbin wrote:
aladedragon wrote:

You mention some changes to be done. Can you guide me a bit?

1: Generate a salted MD5 password hash:

# openssl passwd -1 'your_password'
$1$BVLONBLR$/UkkkPnP2rvjGt0XwpIVp0

2: Update password for your mail admin:

# mysql -uroot -p
mysql> USE vmail;
mysql> UPDATE mailbox SET password='$1$BVLONBLR$/UkkkPnP2rvjGt0XwpIVp0' WHERE username='admin_email_address';
aladedragon wrote:

Just for reporting feedback, in VM apache and sogo was selected and everything runs out of the box. Just the Auth faliure.
When Ngix was selected Awstats and cluebringer returns a 404 failure, no login screen etc...

Expected behavior.


Thanks a lot for your guidance and help. I'm checking new config now. I will give you some feedback.

Note:I will apreciate a md5/sha2 sum in dowloads page.

18

Re: Installation

After login into roundbox i realized my mail is being overfloded of mails from cron/sogo:

Cron <sogo@myhost> /usr/sbin/sogo-tool expire-sessions 30

/usr/sbin/sogo-tool: Uncaught exception ExecutionFailed, reason: Table 'sogo.sogo_sessions_folder' doesn't exist

Searching in forum I found a question about, restarting the sogo server solved the problem.