1

Topic: iRedMail 0.9.2 installed but won't run in Debian Jessie

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Debian 8 Jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

iRedmail is installed.
When I goto h t t p s://my.domain.name on the local server
Firefox comes back with Unable to connect
If I use http://my.domain.name it comes back with
404 - Not Found

I have read every forum on this post and I don't see my answer here.
What do I need to check?

----

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

2

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Try https://[your_ip_address]/

3

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Firefox still says unable to connect.
Firefox can't establish a connection to the server at 192.168.1.20.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

4

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

*) Can you reach this server via ping or ssh?
*) Please try to stop iptables firewall first, then try again.

5

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I guess I didn't make myself clear.
I am doing this from the server iRedMail is installed on.

root@mail:/etc# /etc/init.d/iptables stop
[ ok ] Stopping iptables (via systemctl): iptables.service.

Still the same problem after stopping iptables.

6

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Is Apache web server running?

7

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I did all of this. It appears to be running and after all of that it still gives me the same error.

root@mail:/etc# /etc/init.d/apache2 start
[ ok ] Starting apache2 (via systemctl): apache2.service.
root@mail:/etc# apache2ctl restart
httpd not running, trying to start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'restart' failed.
The Apache error log may have more information.

root@mail:/etc# /etc/init.d/apache2 start
[ ok ] Starting apache2 (via systemctl): apache2.service.
root@mail:/etc# /etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service.
root@mail:/etc# /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.

8

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Could you please install package 'lynx-cur' and try to access the webmail on server terminal (e.g. a ssh session)?

# lynx http://127.0.0.1/mail

if it correctly shows the webmail page, that means there's something wrong in network.

9

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I have never used lynx before but when I put the command you listed in it returns 404 - Not Found
If I put in https://127.0.0.1/mail
it comes back with the following.

root@mail:/etc# lynx https://127.0.0.1/mail

Looking up 127.0.0.1
Making HTTPS connection to 127.0.0.1
Alert!: Unable to connect to remote host.

By the way thanks for all the help with so far.

What do I need to check on the network side?

10

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

dcihon wrote:

Looking up 127.0.0.1
Making HTTPS connection to 127.0.0.1
Alert!: Unable to connect to remote host.

If you cannot access http://127.0.0.1/mail/, seems your iRedMail installation was not finished successfully. I suggest you to reinstall server OS and install iRedMail again.

11 (edited by dcihon 2015-08-21 09:17:07)

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I don't like giving up so easy to start over.
If you don't mind I am going to try to troubleshoot this before i reinstall the OS.
I would like to document my process here if that is ok.

I am starting with this command:
root@mail:/var/log# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.dccathome.com ESMTP Postfix (Debian/GNU)
quit
221 2.0.0 Bye
Connection closed by foreign host.

root@mail:/var/log# telnet 192.168.1.20 25
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
220 mail.dccathome.com ESMTP Postfix (Debian/GNU)
quit
221 2.0.0 Bye
Connection closed by foreign host.

root@mail:/var/log# netstat -t -a | grep LISTEN
tcp        0      0 localhost:9998          *:*                     LISTEN     
tcp        0      0 *:pop3                  *:*                     LISTEN     
tcp        0      0 *:imap2                 *:*                     LISTEN     
tcp        0      0 *:sunrpc                *:*                     LISTEN     
tcp        0      0 *:webmin                *:*                     LISTEN     
tcp        0      0 *:http                  *:*                     LISTEN     
tcp        0      0 localhost:5939          *:*                     LISTEN     
tcp        0      0 *:ssh                   *:*                     LISTEN     
tcp        0      0 localhost:24            *:*                     LISTEN     
tcp        0      0 *:smtp                  *:*                     LISTEN     
tcp        0      0 *:3483                  *:*                     LISTEN     
tcp        0      0 *:microsoft-ds          *:*                     LISTEN     
tcp        0      0 localhost:sieve         *:*                     LISTEN     
tcp        0      0 *:imaps                 *:*                     LISTEN     
tcp        0      0 localhost:7777          *:*                     LISTEN     
tcp        0      0 *:9090                  *:*                     LISTEN     
tcp        0      0 *:pop3s                 *:*                     LISTEN     
tcp        0      0 localhost:gpsd          *:*                     LISTEN     
tcp        0      0 *:50855                 *:*                     LISTEN     
tcp        0      0 localhost:10024         *:*                     LISTEN     
tcp        0      0 *:9000                  *:*                     LISTEN     
tcp        0      0 *:47209                 *:*                     LISTEN     
tcp        0      0 localhost:10025         *:*                     LISTEN     
tcp        0      0 localhost:mysql         *:*                     LISTEN     
tcp        0      0 *:submission            *:*                     LISTEN     
tcp        0      0 *:netbios-ssn           *:*                     LISTEN     
tcp        0      0 localhost:11211         *:*                     LISTEN     
tcp6       0      0 ::1:9998                [::]:*                  LISTEN     
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN     
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN     
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN     
tcp6       0      0 [::]:http               [::]:*                  LISTEN     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
tcp6       0      0 [::]:42554              [::]:*                  LISTEN     
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN     
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN     
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN     
tcp6       0      0 ::1:gpsd                [::]:*                  LISTEN     
tcp6       0      0 ::1:10024               [::]:*                  LISTEN     
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN

root@mail:/etc/postfix# service postfix status
● postfix.service - LSB: Postfix Mail Transport Agent
   Loaded: loaded (/etc/init.d/postfix)
  Drop-In: /run/systemd/generator/postfix.service.d
           └─50-postfix-$mail-transport-agent.conf
   Active: active (running) since Wed 2015-08-19 11:25:58 CDT; 1 day 8h ago
   CGroup: /system.slice/postfix.service
           ├─ 2895 /usr/lib/postfix/master
           ├─ 2897 qmgr -l -t unix -u
           ├─ 3192 tlsmgr -l -t unix -u -c
           ├─ 4163 smtpd -n smtp -t inet -u -c -o stress=
           ├─ 4165 proxymap -t unix -u
           ├─ 4166 anvil -l -t unix -u -c
           ├─ 4167 trivial-rewrite -n rewrite -t unix -u -c
           └─29241 pickup -l -t unix -u -c

Aug 20 19:31:56 mail postfix/smtpd[1000]: connect from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]
Aug 20 19:31:56 mail postfix/smtpd[1000]: NOQUEUE: reject: RCPT from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]: 554 5.7.1 <...
Aug 20 19:31:57 mail postfix/smtpd[1000]: lost connection after DATA from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]
Aug 20 19:31:57 mail postfix/smtpd[1000]: disconnect from bzq-30-168-31-199.red.bezeqint.net[31.168.30.199]
Aug 20 19:36:05 mail postfix/qmgr[2897]: 4F04FC1FF5: from=<root@mail.dccathome.com>, size=1073, nrcpt=1 (queue active)
Aug 20 19:36:05 mail postfix/pipe[1464]: 4F04FC1FF5: to=<postmaster@dccathome.com>, relay=dovecot, delay=2236, delays=2236/0...ailure)
Aug 20 19:57:42 mail postfix/smtpd[4163]: connect from host178-199-110-95.serverdedicati.aruba.it[95.110.199.178]
Aug 20 19:57:43 mail postfix/smtpd[4163]: NOQUEUE: reject: RCPT from host178-199-110-95.serverdedicati.aruba.it[95.110.199.1...ica.it>
Aug 20 19:57:43 mail postfix/smtpd[4163]: lost connection after RCPT from host178-199-110-95.serverdedicati.aruba.it[95.110.199.178]
Aug 20 19:57:43 mail postfix/smtpd[4163]: disconnect from host178-199-110-95.serverdedicati.aruba.it[95.110.199.178]

root@mail:/etc/postfix# service dovecot status
● dovecot.service - LSB: Dovecot init script
   Loaded: loaded (/etc/init.d/dovecot)
   Active: active (running) since Wed 2015-08-19 17:33:09 CDT; 1 day 2h ago
  Process: 14207 ExecStop=/etc/init.d/dovecot stop (code=exited, status=0/SUCCESS)
  Process: 14217 ExecStart=/etc/init.d/dovecot start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/dovecot.service
           ├─ 1466 dovecot/auth
           ├─14225 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
           ├─14226 dovecot/lmtp -L
           ├─14227 dovecot/anvil
           ├─14228 dovecot/log
           ├─14230 dovecot/lmtp -L
           ├─14231 dovecot/lmtp -L
           ├─14232 dovecot/lmtp -L
           ├─14233 dovecot/lmtp -L
           └─14234 dovecot/config

Aug 19 17:33:09 mail dovecot[14217]: Starting IMAP/POP3 mail server: dovecot.

Took this from the dovecot.log file:
Not sure what this means:

Aug 19 07:17:52 auth-worker(6825): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (111) - waiting for 125 seconds before retry
Aug 19 07:18:21 auth-worker(6825): Error: mysql: Query timed out (no free connections for 60 secs): SELECT password, allow_nets FROM mailbox WHERE username='test' AND enablesmtpsecured=1 AND active=1
Aug 19 07:18:21 auth-worker(6825): Error: sql(test,218.251.113.36): Password query failed: Not connected to database
Aug 19 07:18:21 auth: Error: auth worker: Aborted PASSV request for test: Lookup timed out
Aug 19 07:18:21 auth: Error: Aborting auth request that was queued for 95 secs, 2 left in queue
Aug 19 07:18:21 auth: Error: Aborting auth request that was queued for 82 secs, 1 left in queue
Aug 19 07:18:21 auth: Error: Aborting auth request that was queued for 70 secs, 0 left in queue
Aug 19 07:18:21 auth-worker(6940): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (111) - waiting for 1 seconds before retry


root@mail:/var/log# telnet 192.168.1.20 465
Trying 192.168.1.20...
telnet: Unable to connect to remote host: Connection refused

root@mail:/var/log# telnet 192.168.1.20 587
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
220 mail.dccathome.com ESMTP Postfix (Debian/GNU)
quit
221 2.0.0 Bye
Connection closed by foreign host.

root@mail:/var/log# telnet 192.168.1.20 993
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
quit
exit
Connection closed by foreign host.

root@mail:/var/log# telnet 192.168.1.20 995
Trying 192.168.1.20...
Connected to 192.168.1.20.
Escape character is '^]'.
exit
quit
Connection closed by foreign host.

root@mail:/var/log# doveadm user postmaster@dccathome.com
field   value
uid     2000
gid     2000
home    /var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15/
mail    maildir:/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15//Maildir/:INDEX=/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15//Maildir/
master_user     postmaster@dccathome.com
quota_rule      *:bytes=1073741824

12

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

dcihon wrote:

Aug 19 07:17:52 auth-worker(6825): Error: mysql(127.0.0.1): Connect failed to database (vmail): Can't connect to MySQL server on '127.0.0.1' (111) - waiting for 125 seconds before retry

Is MySQL service running? If it's running, please restart dovecot service and try again.

13 (edited by dcihon 2015-08-21 19:42:28)

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Still no good:

root@mail:/opt/www/roundcubemail-1.1.1/config# service mysql restart
root@mail:/opt/www/roundcubemail-1.1.1/config# service dovecot status
● dovecot.service - LSB: Dovecot init script
   Loaded: loaded (/etc/init.d/dovecot)
   Active: active (running) since Thu 2015-08-20 20:37:46 CDT; 9h ago
  Process: 2654 ExecStart=/etc/init.d/dovecot start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/dovecot.service
           ├─2710 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
           ├─2773 dovecot/lmtp -L
           ├─2774 dovecot/anvil
           ├─2775 dovecot/log
           ├─2777 dovecot/lmtp -L
           ├─2778 dovecot/lmtp -L
           ├─2779 dovecot/lmtp -L
           ├─2780 dovecot/lmtp -L
           └─2796 dovecot/config

Aug 20 20:37:46 mail dovecot[2654]: Starting IMAP/POP3 mail server: dovecot.

Still getting same errors

root@mail:/opt/www/roundcubemail-1.1.1/config# mysqladmin -u root -p status
Enter password:
Uptime: 458  Threads: 1  Questions: 218  Slow queries: 0  Opens: 106  Flush tables: 1  Open tables: 99  Queries per second avg: 0.475

14

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Could you please show us content of file /etc/dovecot/dovecot-mysql.conf? remove the password before pasting here.

Could you login to mysql with the sql credential defined in dovecot-mysql.conf?

15 (edited by dcihon 2015-08-21 21:36:12)

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

driver = mysql
default_pass_scheme = CRYPT
connect = host=127.0.0.1 dbname=vmail user=vmail password=
# Required by 'doveadm mailbox ...'.
iterate_query = SELECT username AS user FROM mailbox
password_query = SELECT password, allow_nets FROM mailbox WHERE username='%u' AND enable%Ls%Lc=1 AND active=1
user_query = SELECT \
    '%u' AS master_user, \
    CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir) AS home, \
    CONCAT('*:bytes=', mailbox.quota*1048576) AS quota_rule \
FROM mailbox,domain \
WHERE mailbox.username='%u' \
    AND mailbox.domain='%d' \
    AND mailbox.`enable%Ls%Lc`=1 \
    AND mailbox.domain=domain.domain \
    AND domain.backupmx=0 \
    AND domain.active=1 \
    AND mailbox.active=1

root@mail:/opt/www/roundcubemail-1.1.1/config# mysql -u vmail -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 409
Server version: 5.5.44-0+deb8u1 (Debian)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

16

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

MySQL service is running, Dovecot is running, Postfix is running. But looks like Apache is not running, no port 443 in your 'netstat' command output. Could you please check it again with command:

# netstat -ntlp

17

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

root@mail:/opt/www/roundcubemail-1.1.1/config# netstat -ntlp
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:9998          0.0.0.0:*               LISTEN      22546/amavisd-new (
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      2710/dovecot   
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      2710/dovecot   
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1255/rpcbind   
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      2484/perl       
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1489/lighttpd   
tcp        0      0 127.0.0.1:5939          0.0.0.0:*               LISTEN      1785/teamviewerd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1295/sshd       
tcp        0      0 127.0.0.1:24            0.0.0.0:*               LISTEN      2710/dovecot   
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      2983/master     
tcp        0      0 0.0.0.0:3483            0.0.0.0:*               LISTEN      1651/perl       
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      2772/smbd       
tcp        0      0 127.0.0.1:4190          0.0.0.0:*               LISTEN      2710/dovecot   
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      2710/dovecot   
tcp        0      0 127.0.0.1:7777          0.0.0.0:*               LISTEN      2380/python     
tcp        0      0 0.0.0.0:9090            0.0.0.0:*               LISTEN      1651/perl       
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      2710/dovecot   
tcp        0      0 127.0.0.1:2947          0.0.0.0:*               LISTEN      1/init         
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      22546/amavisd-new (
tcp        0      0 0.0.0.0:9000            0.0.0.0:*               LISTEN      1651/perl       
tcp        0      0 0.0.0.0:36361           0.0.0.0:*               LISTEN      1651/perl       
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      2983/master     
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      8577/mysqld     
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      2983/master     
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      2772/smbd       
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      1292/memcached 
tcp        0      0 0.0.0.0:49963           0.0.0.0:*               LISTEN      1265/rpc.statd 
tcp6       0      0 ::1:9998                :::*                    LISTEN      22546/amavisd-new (
tcp6       0      0 :::110                  :::*                    LISTEN      2710/dovecot   
tcp6       0      0 :::143                  :::*                    LISTEN      2710/dovecot   
tcp6       0      0 :::35951                :::*                    LISTEN      1265/rpc.statd 
tcp6       0      0 :::111                  :::*                    LISTEN      1255/rpcbind   
tcp6       0      0 :::80                   :::*                    LISTEN      1489/lighttpd   
tcp6       0      0 :::22                   :::*                    LISTEN      1295/sshd       
tcp6       0      0 :::445                  :::*                    LISTEN      2772/smbd       
tcp6       0      0 :::993                  :::*                    LISTEN      2710/dovecot   
tcp6       0      0 :::995                  :::*                    LISTEN      2710/dovecot   
tcp6       0      0 ::1:2947                :::*                    LISTEN      1/init         
tcp6       0      0 ::1:10024               :::*                    LISTEN      22546/amavisd-new (
tcp6       0      0 :::139                  :::*                    LISTEN      2772/smbd

18

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I have been googling trying to find out why port 443 will not run on my box.
I haven't found any solution yet.
It looks like everything is set up correctly but something is blocking 443 from opening.

I think I will give your idea a try and rebuild the OS and then retry int iRedMail install.

19

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I made a change in ports.conf
It had multiple items for 443 and I eliminated all but one and now 443 is working but I get this when I goto https://localhost

| | Author: Aleksander Machniak | +-------------------------------------------------------------------------+ */ // include environment require_once 'program/include/iniset.php'; // init application, start session, init output class, etc. $RCMAIL = rcmail::get_instance($GLOBALS['env']); // Make the whole PHP output non-cacheable (#1487797) $RCMAIL->output->nocacheing_headers(); $RCMAIL->output->common_headers(); // turn on output buffering ob_start(); // check if config files had errors if ($err_str = $RCMAIL->config->get_error()) { rcmail::raise_error(array( 'code' => 601, 'type' => 'php', 'message' => $err_str), false, true); } // check DB connections and exit on failure if ($err_str = $RCMAIL->db->is_error()) { rcmail::raise_error(array( 'code' => 603, 'type' => 'db', 'message' => $err_str), FALSE, TRUE); } // error steps if ($RCMAIL->action == 'error' && !empty($_GET['_code'])) { rcmail::raise_error(array('code' => hexdec($_GET['_code'])), FALSE, TRUE); } // check if https is required (for login) and redirect if necessary if (empty($_SESSION['user_id']) && ($force_https = $RCMAIL->config->get('force_https', false))) { $https_port = is_bool($force_https) ? 443 : $force_https; if (!rcube_utils::https_check($https_port)) { $host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']); $host .= ($https_port != 443 ? ':' . $https_port : ''); header('Location: https://' . $host . $_SERVER['REQUEST_URI']); exit; } } // trigger startup plugin hook $startup = $RCMAIL->plugins->exec_hook('startup', array('task' => $RCMAIL->task, 'action' => $RCMAIL->action)); $RCMAIL->set_task($startup['task']); $RCMAIL->action = $startup['action']; // try to log in if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') { $request_valid = $_SESSION['temp'] && $RCMAIL->check_request(); // purge the session in case of new login when a session already exists $RCMAIL->kill_session(); $auth = $RCMAIL->plugins->exec_hook('authenticate', array( 'host' => $RCMAIL->autoselect_host(), 'user' => trim(rcube_utils::get_input_valu

20

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

mod_php module is not enabled or not properly configured in Apache, that's why you see PHP source code directly.

21 (edited by dcihon 2015-08-22 10:48:18)

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Ok we almost have it working.
That module wasn't installed for some reason. Probably because I was trying different things to fix the problem.
I now get the Roundcube login screen.
When I put the postmaster@my.doman.com in and enter the password I get.
Connection to storage server failed after I click Login.

One more thing iredadmin is working. I can login there and make admin changes.

22

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

dcihon wrote:

I now get the Roundcube login screen.
When I put the postmaster@my.doman.com in and enter the password I get.
Connection to storage server failed after I click Login.

Any error message in /var/log/dovecot.log or /var/log/dovecot-sieve.log?

23 (edited by dcihon 2015-08-23 00:52:06)

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Dovecot.log:
Aug 22 11:48:49 imap(postmaster@dccathome.com): Error: chdir(/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15//) failed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +x perm: /var/vmail, dir owned by 1001:1001 mode=0700)
Aug 22 11:48:49 imap(postmaster@dccathome.com): Error: chdir(/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15/) failed: Permission denied
Aug 22 11:48:49 imap(postmaster@dccathome.com): Error: user postmaster@dccathome.com: Initialization failed: Namespace '': stat(/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15//Maildir) failed: Permission denied (euid=2000(<unknown>) egid=2000(<unknown>) missing +x perm: /var/vmail, dir owned by 1001:1001 mode=0700)
Aug 22 11:48:49 imap(postmaster@dccathome.com): Error: Invalid user settings. Refer to server log for more information.

dovecot-sieve.log
Aug 22 11:46:47 lda(danc@dccathome.com): Fatal: setgid(2000 from mail_gid setting) failed with euid=1001(vmail), gid=1001(vmail), egid=1001(vmail): Operation not permitted (This binary should probably be called with process group set to 2000 instead of 1001(vmail))

24

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

All files under /var/vmail/vmail1 must be owned by "vmail:vmail" with permission 0700.

25 (edited by dcihon 2015-08-24 03:54:54)

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

ZhangHuangbin wrote:

All files under /var/vmail/vmail1 must be owned by "vmail:vmail" with permission 0700.

This seems to be the permissions of every folder and file below vmail1:
drwx------ 3 vmail vmail 4096 Aug 19 11:08 dccathome.com

Update:
I changed the permissions on the /var/vmail folder to this and it is working:
drwxr-xr-x  5 vmail vmail  4096 Aug 21 21:24 vmail