1

Topic: Installation Done, only SOGo working

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer?: Downloadable Installer
- Linux/BSD distribution name and version: Centos 7
- 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.
====
I installed iRedmail on a clean centos 7 installation. No Errors during the installation, after the system reboot, not the mail or iredmailadmin links working, SOGO works but when logging in with postmaster, it says password succesful, but after it just redirects to the login page.

How can I start troubleshooting this?

2

Re: Installation Done, only SOGo working

I done a bit further digging and here is my findings:

The error im getting is:

-------------------------------------
This site can’t be reachedmail.killerbees.co.za refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
--------------------------------

I checked and on nginx this file:

00-default-ssl.conf

It contains the following:

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name _;

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

    include /etc/nginx/templates/misc.tmpl;
    include /etc/nginx/templates/ssl.tmpl;
    include /etc/nginx/templates/iredadmin.tmpl;
    include /etc/nginx/templates/roundcube.tmpl;
    include /etc/nginx/templates/sogo.tmpl;
    include /etc/nginx/templates/netdata.tmpl;
    include /etc/nginx/templates/php-catchall.tmpl;
    include /etc/nginx/templates/stub_status.tmpl;

I checked out the one file, iredadmin.tmpl;

It contains this:

# Settings for iRedAdmin.

# static files under /iredadmin/static
location ~ ^/iredadmin/static/(.*) {
    alias /opt/www/iredadmin/static/$1;
}

# Python scripts
location ~ ^/iredadmin(.*) {
    rewrite ^/iredadmin(/.*)$ $1 break;

    include /etc/nginx/templates/hsts.tmpl;

    include uwsgi_params;
    uwsgi_pass 127.0.0.1:7791;
    uwsgi_param UWSGI_CHDIR /opt/www/iredadmin;
    uwsgi_param UWSGI_SCRIPT iredadmin;
    uwsgi_param SCRIPT_NAME /iredadmin;

    # Access control
    #allow 127.0.0.1;
    #allow 192.168.1.10;
    #allow 192.168.1.0/24;
    #deny all;
}

# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /iredadmin {
    rewrite ^ /iredadmin/;
}

# Handle newsletter-style subscription/unsubscription supported in iRedAdmin-Pro.
location ~ ^/newsletter/ {
    rewrite /newsletter/(.*) /iredadmin/newsletter/$1 last;

----------------------------------

I checked the directory and it exists:

AUTHORS
ChangeLog
LICENSE
README
SQL
controllers
docs
i18n
iredadmin.py
libs
rc_scripts
settings.py
settings.py.ldap.sample
settings.py.mysql.sample
settings.py.pgsql.sample
settings.pyc
static
templates
tools

3

Re: Installation Done, only SOGo working

I fixed my own issue, httpd (apache) was running instead of nginx which I figured out when I tried to restart nginx and it gave me errors, I disabled apache and started nginx and it worked.