1 (edited by ebusmaximus 2017-07-09 07:58:24)

Topic: No access after fresh installation

==== 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?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail 0.9.7
- Linux/BSD distribution name and version: Debian Jessie 8.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello everyone,


I just made a fresh install of iredmail, for testing purposes, on my localserver.
I can't access anything, neither mail or SOGO or iredadmin interfaces.

hostname of my server is "test".
full hostname is "test.example.com"

this is what i currently have in the "hosts" file :

127.0.1.1       test.example.com        test    localhost       localhost.localdomain
127.0.0.1       localhost


# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

For installation, i followed the tutorial at

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


Did I miss something?

Post's attachments

Capture du 2017-07-08 18-58-06.png 80.42 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2 (edited by ebusmaximus 2017-07-09 07:56:07)

Re: No access after fresh installation

Ok, i noticed that apache2 was not running, so i purged it, installed it back, and ran the iredmail setup another time.

Previously i would get the screen in the attached file when trying to access my serveur ip or hostname. Now i do the default apache2 page, but get a "404 not found" when trying to access iredmail or anything else.

3

Re: No access after fresh installation

Did you notice any error on console while installing iRedMail?
Also, any error/warning message in file iRedMail-0.9.7/runtime/install.log?

4

Re: No access after fresh installation

I'm not sure, but i do think i had a couple errors the first time i installed it. Everything went through thugh, so I did not pay too much attention to them.

I found 2 errors in the install.log :

ERROR: Module version does not exist!

and

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)




Here is the complete install log:

[ INFO ] Checking new version of iRedMail ...
 + < DEBUG > Creating necessary directories ...
[ INFO ] Installing package(s): apt-transport-https
[ INFO ] apt-get update ...
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 3: http://iredmail.org/yum/misc/roundcubemail-1.3.0-complete.tar.gz
[ INFO ] + 2 of 3: http://iredmail.org/yum/misc/iRedAPD-2.1.tar.bz2
[ INFO ] + 3 of 3: http://iredmail.org/yum/misc/iRedAdmin-0.8.tar.bz2
[ INFO ] Validate packages ...
[ INFO ] Install package: dialog
[ INFO ] Installing package(s): dialog
[ INFO ] Checking configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config ...
[ INFO ] NOT FOUND. Launching installation wizard to generate one.
[ INFO ] Cancelled, Exit.
[ INFO ] Checking configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config ...
[ INFO ] Skip configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config.
[ INFO ] Add apt repo for SOGo: https://packages.inverse.ca
[ INFO ] Import apt key (0x810273C4) for SOGo repo (https://packages.inverse.ca).
[ INFO ] Resynchronizing the package index files (apt-get update) ...
[ INFO ] Installing package(s): postfix postfix-pcre mysql-client mysql-server postfix-mysql libdbd-mysql-perl libaprutil1-dbd-mysql php5-cli php5-json php5-gd php5-mcrypt php5-curl mcrypt php5-intl php5-mysql apache2 apache2-utils libapache2-mod-php5 dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-managesieved dovecot-sieve dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip-full rpm ripole libmail-spf-perl unrar-free pax lrzip sogo sogo-activesync sope4.9-gdl1-mysql python-sqlalchemy python-dnspython python-mysqldb python-jinja2 python-netifaces python-webpy python-beautifulsoup python-lxml python-pycurl libapache2-mod-wsgi python-bcrypt awstats fail2ban bzip2 acl patch cron tofrodos logwatch unzip bsdutils liblz4-tool
 + < DEBUG > Service control: enable rsyslog.
Synchronizing state for rsyslog.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d rsyslog defaults
Executing /usr/sbin/update-rc.d rsyslog enable
 + < DEBUG > Service control: enable postfix.
Synchronizing state for postfix.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d postfix defaults
Executing /usr/sbin/update-rc.d postfix enable
 + < DEBUG > Service control: enable mysql.
Synchronizing state for mysql.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d mysql defaults
Executing /usr/sbin/update-rc.d mysql enable
 + < DEBUG > Service control: enable apache2.
Synchronizing state for apache2.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d apache2 defaults
Executing /usr/sbin/update-rc.d apache2 enable
 + < DEBUG > Service control: enable dovecot.
Synchronizing state for dovecot.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d dovecot defaults
Executing /usr/sbin/update-rc.d dovecot enable
 + < DEBUG > Service control: enable clamav-daemon.
Synchronizing state for clamav-daemon.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d clamav-daemon defaults
Executing /usr/sbin/update-rc.d clamav-daemon enable
 + < DEBUG > Service control: enable amavis.
Synchronizing state for amavis.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d amavis defaults
Executing /usr/sbin/update-rc.d amavis enable
 + < DEBUG > Service control: enable clamav-freshclam.
Synchronizing state for clamav-freshclam.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d clamav-freshclam defaults
Executing /usr/sbin/update-rc.d clamav-freshclam enable
 + < DEBUG > Service control: enable sogo.
Synchronizing state for sogo.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d sogo defaults
Executing /usr/sbin/update-rc.d sogo enable
 + < DEBUG > Service control: enable memcached.
Synchronizing state for memcached.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d memcached defaults
Executing /usr/sbin/update-rc.d memcached enable
 + < DEBUG > Service control: enable fail2ban.
Synchronizing state for fail2ban.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d fail2ban defaults
Executing /usr/sbin/update-rc.d fail2ban enable
 + < DEBUG > Service control: enable cron.
Synchronizing state for cron.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d cron defaults
Executing /usr/sbin/update-rc.d cron enable
 + < DEBUG > Service control: disable php5-fpm.
Synchronizing state for php5-fpm.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d php5-fpm defaults
Executing /usr/sbin/update-rc.d php5-fpm disable
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
 + < DEBUG > Service control: disable spamassassin.
Synchronizing state for spamassassin.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d spamassassin defaults
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d spamassassin disable
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
 + < DEBUG > Create system account: vmail:vmail (2000:2000).
groupadd: group 'vmail' already exists
useradd: user 'vmail' already exists
 + < DEBUG > Create directory used to store global sieve filters: /var/iredmail/sieve.
 + < DEBUG > Create system account: iredadmin:iredadmin (2001:2001)
 + < DEBUG > Create system account: iredapd:iredapd (2002:2002).
[ INFO ] Configure Apache web server.
 + < DEBUG > Basic configurations.
 + < DEBUG > Set correct SSL Cert/Key file location.
 + < DEBUG > Enable Apache modules.
Enabling site default-ssl.
To activate the new configuration, you need to run:
  service apache2 reload
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
Considering dependency filter for deflate:
Module filter already enabled
Module deflate already enabled
Module headers already enabled
Enabling module proxy.
Considering dependency proxy for proxy_http:
Module proxy already enabled
Enabling module proxy_http.
ERROR: Module version does not exist!
Module headers already enabled
Module rewrite already enabled
To activate the new configuration, you need to run:
  service apache2 restart
[ INFO ] Configure PHP.
 + < DEBUG > Hide PHP Version in Apache from remote users requests: /etc/php5/apache2/php.ini.
 + < DEBUG > Increase 'memory_limit' to 256M: /etc/php5/apache2/php.ini.
 + < DEBUG > Increase 'upload_max_filesize', 'post_max_size' to 10/12M: /etc/php5/apache2/php.ini.
 + < DEBUG > Disable php extension: suhosin. /etc/php5/apache2/php.ini.
[ INFO ] Configure MySQL database server.
 + < DEBUG > Initialize MySQL server.
 + < DEBUG > Stop MySQL service before initializing database or updating my.cnf.
 + < DEBUG > Service control: stop mysql.
 + < DEBUG > Disable 'skip-networking' in my.cnf.
 + < DEBUG > Enable 'innodb_file_per_table' in my.cnf.
 + < DEBUG > Restart service: mysql.
 + < DEBUG > Service control: restart mysql.
 + < DEBUG > Sleep 10 seconds for MySQL daemon initialization ...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
 + < DEBUG > MySQL root password is not empty, not reset.
 + < DEBUG > Generate defauts file for MySQL client option --defaults-file: /root/.my.cnf.
 + < DEBUG > Delete anonymous database user.
 + < DEBUG > Delete root access with empty passwords.
 + < DEBUG > Delete root access with empty passwords.
 + < DEBUG > Generate sample SQL templates.
 + < DEBUG > Create database: vmail.
 + < DEBUG > Initialize database: vmail.
 + < DEBUG > Add first domain and postmaster@ user.
[ INFO ] Setup daily cron job to backup SQL databases with /var/iredmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (MTA).
 + < DEBUG > Enable chroot.
 + < DEBUG > Enable submission and additional transports required by Amavisd and Dovecot.
 + < DEBUG > Copy: /etc/{hosts,resolv.conf,localtime,services} -> /var/spool/postfix/etc/
 + < DEBUG > Disable duplicate log entries (mail.{info,warn,err}) in syslog config file.
 + < DEBUG > Configure Postfix for SQL/LDAP lookup.
 + < DEBUG > Enable postscreen service.
 + < DEBUG > Comment out 'smtp inet ... smtpd' service in /etc/postfix/master.cf.
 + < DEBUG > Uncomment the new 'smtpd pass ... smtpd' service in /etc/postfix/master.cf.
 + < DEBUG > Uncomment the new smtp inet ... postscreen service in /etc/postfix/master.cf.
 + < DEBUG > Uncomment the new 'tlsproxy unix ... tlsproxy' service in /etc/postfix/master.cf.
 + < DEBUG > Uncomment the new 'dnsblog unix ... dnsblog' service in /etc/postfix/master.cf.
 + < DEBUG > Update /etc/postfix/main.cf to enable postscreen.
 + < DEBUG > Create /var/spool/postfix//var/lib/postfix/postscreen_cache.db.
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
 + < DEBUG > Copy sample Dovecot config file: /home/administrateur/iredmail/iRedMail-0.9.7/samples/dovecot/dovecot22.conf -> /etc/dovecot/dovecot.conf
 + < DEBUG > Configure dovecot: /etc/dovecot/dovecot.conf.
 + < DEBUG > Copy global sieve filter rule file: /var/iredmail/sieve/dovecot.sieve.
 + < DEBUG > Enable dovecot SASL support in postfix: /etc/postfix/main.cf.
 + < DEBUG > Create directory for Dovecot plugin: Expire.
 + < DEBUG > Configure Dovecot logging.
 + < DEBUG > Create dovecot log file: /var/log/dovecot/dovecot.log.
 + < DEBUG > Create dovecot log file: /var/log/dovecot/lda.log.
 + < DEBUG > Create dovecot log file: /var/log/dovecot/imap.log.
 + < DEBUG > Create dovecot log file: /var/log/dovecot/pop3.log.
 + < DEBUG > Create dovecot log file: /var/log/dovecot/sieve.log.
 + < DEBUG > Setting logrotate for dovecot log file.
[ INFO ] Configure ClamAV (anti-virus toolkit).
 + < DEBUG > Configure ClamAV: /etc/clamav/clamd.conf.
 + < DEBUG > Configure freshclam: /etc/clamav/freshclam.conf.
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
 + < DEBUG > Configure amavisd-new: /etc/amavis/conf.d/50-user.
 + < DEBUG > Generate DKIM pem files: /var/lib/dkim/demo.iredmail.org.pem.
 + < DEBUG > Setting cron job for vmail user to delete virus mail per month.
 + < DEBUG > Import Amavisd database and privileges.
[ INFO ] Configure SpamAssassin (content-based spam filter).
 + < DEBUG > Copy sample SpamAssassin config file: /home/administrateur/iredmail/iRedMail-0.9.7/samples/spamassassin/local.cf -> /etc/mail/spamassassin/local.cf.
 + < DEBUG > Enable crontabs for SpamAssassin update.
[ INFO ] Configure iRedAPD (postfix policy daemon).
 + < DEBUG > Extracting: iRedAPD-2.1.tar.bz2 -> /opt
 + < DEBUG > Configure iRedAPD.
 + < DEBUG > Create symbol link: /opt/iredapd/rc_scripts.iredapd.service -> /etc/systemd/system/multi-user.target.wants//iredapd.service.
 + < DEBUG > Make iredapd start after system startup.
 + < DEBUG > Service control: enable iredapd.
Failed to execute operation: No such file or directory
 + < DEBUG > Import iRedAPD database template.
[ INFO ] Configure iRedAdmin (official web-based admin panel).
 + < DEBUG > Enable apache module: wsgi.
Module wsgi already enabled
 + < DEBUG > Extracting: iRedAdmin-0.8.tar.bz2 -> /opt/www
 + < DEBUG > Set correct permission for iRedAdmin: /opt/www/iRedAdmin-0.8.
 + < DEBUG > Create directory alias for iRedAdmin.
Enabling conf iredadmin.
To activate the new configuration, you need to run:
  service apache2 reload
 + < DEBUG > Import iRedAdmin database template.
 + < DEBUG > Configure iRedAdmin.
 + < DEBUG > Configure general settings.
 + < DEBUG > Configure iredadmin database related settings.
 + < DEBUG > Configure SQL mail accounts related settings.
 + < DEBUG > Configure Amavisd related settings.
 + < DEBUG > Configure iRedAPD related settings.
[ INFO ] Configure Fail2ban (authentication failure monitor).
 + < DEBUG > Log into syslog instead of log file.
 + < DEBUG > Disable all default filters in /etc/fail2ban/jail.conf.
 + < DEBUG > Create Fail2ban config file: /etc/fail2ban/jail.local.
 + < DEBUG > Create Fail2ban directory: /etc/fail2ban/jail.d.
 + < DEBUG > Copy modular Fail2ban jail config files to /etc/fail2ban/jail.d.
 + < DEBUG > Copy sample Fail2ban filter config files.
[ INFO ] Configure Roundcube webmail.
 + < DEBUG > Extracting: roundcubemail-1.3.0-complete.tar.gz -> /opt/www
 + < DEBUG > Set correct permission for Roundcubemail: /opt/www/roundcubemail-1.3.0.
 + < DEBUG > Create directory alias for Roundcubemail.
Enabling conf roundcubemail.
To activate the new configuration, you need to run:
  service apache2 reload
 + < DEBUG > Import SQL database and privileges for Roundcubemail.
 + < DEBUG > Configure database for Roundcubemail: /opt/www/roundcubemail-1.3.0/config/*.
 + < DEBUG > Setup daily cron job to keep SQL database clean.
 + < DEBUG > Config plugin: managesieve.
 + < DEBUG > Config plugin: password.
 + < DEBUG > Config plugin: enigma.
[ INFO ] Configure SOGo Groupware (Webmail, Calendar, Address Book, ActiveSync).
 + < DEBUG > Initialize SOGo database.
 + < DEBUG > Service control: restart sogo.
Conf SOGo already enabled
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).
 + < DEBUG > Generate apache config file for awstats: /etc/apache2/conf-available/awstats.conf.
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:72
Module cgi already enabled
Conf serve-cgi-bin disabled.
To activate the new configuration, you need to run:
  service apache2 reload
Enabling conf awstats.
To activate the new configuration, you need to run:
  service apache2 reload
 + < DEBUG > Generate htpasswd file: /etc/apache2/awstats.users.
Adding password for user postmaster@demo.iredmail.org
 + < DEBUG > Config awstats to analyze apache web access log: /etc/awstats/awstats.web.conf.
 + < DEBUG > Config awstats to analyze postfix mail log: /etc/awstats/awstats.smtp.conf.
 + < DEBUG > Setup crontab jobs for awstats.
 + < DEBUG > Mail sensitive administration info to postmaster@demo.iredmail.org.
 + < DEBUG > Set file permission to 0600: /var/spool/cron/crontabs/root.
 + < DEBUG > Set file permission to 0600: /var/spool/cron/crontabs/amavis.
 + < DEBUG > Set file permission to 0600: /var/spool/cron/crontabs/sogo.
[ INFO ] Copy firewall sample rules: /etc/default/iptables.
 + < DEBUG > Service control: enable iptables.
Synchronizing state for iptables.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d iptables defaults
Executing /usr/sbin/update-rc.d iptables enable
[ INFO ] Restarting firewall ...
 + < DEBUG > Service control: restart iptables.
[ INFO ] Updating ClamAV database (freshclam), please wait ...
 + < DEBUG > Send info of chosed packages to iRedMail team to help improve iRedMail:
 + < DEBUG > 
 + < DEBUG >     MYSQL=YES
 + < DEBUG >     WEB_SERVER=APACHE
 + < DEBUG >     ROUNDCUBE=YES
 + < DEBUG >     SOGO=YES
 + < DEBUG >     AWSTATS=YES
 + < DEBUG >     FAIL2BAN=YES
 + < DEBUG >     IREDADMIN=YES
 + < DEBUG > 
[ INFO ] Checking configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config ...
[ INFO ] Skip configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config.
[ INFO ] Cancelled, Exit.
[ INFO ] Checking configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config ...
[ INFO ] Skip configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config.
[ INFO ] Add apt repo for SOGo: https://packages.inverse.ca
[ INFO ] Import apt key (0x810273C4) for SOGo repo (https://packages.inverse.ca).
[ INFO ] Resynchronizing the package index files (apt-get update) ...
[ INFO ] Installing package(s): postfix postfix-pcre mysql-client mysql-server postfix-mysql libdbd-mysql-perl libaprutil1-dbd-mysql php5-cli php5-json php5-gd php5-mcrypt php5-curl mcrypt php5-intl php5-mysql apache2 apache2-utils libapache2-mod-php5 dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-managesieved dovecot-sieve dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip-full rpm ripole libmail-spf-perl unrar-free pax lrzip sogo sogo-activesync sope4.9-gdl1-mysql python-sqlalchemy python-dnspython python-mysqldb python-jinja2 python-netifaces python-webpy python-beautifulsoup python-lxml python-pycurl libapache2-mod-wsgi python-bcrypt awstats fail2ban bzip2 acl patch cron tofrodos logwatch unzip bsdutils liblz4-tool
 + < DEBUG > Service control: enable rsyslog.
Synchronizing state for rsyslog.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d rsyslog defaults
Executing /usr/sbin/update-rc.d rsyslog enable
 + < DEBUG > Service control: enable postfix.
Synchronizing state for postfix.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d postfix defaults
Executing /usr/sbin/update-rc.d postfix enable
 + < DEBUG > Service control: enable mysql.
Synchronizing state for mysql.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d mysql defaults
Executing /usr/sbin/update-rc.d mysql enable
 + < DEBUG > Service control: enable apache2.
Synchronizing state for apache2.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d apache2 defaults
Executing /usr/sbin/update-rc.d apache2 enable
 + < DEBUG > Service control: enable dovecot.
Synchronizing state for dovecot.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d dovecot defaults
Executing /usr/sbin/update-rc.d dovecot enable
 + < DEBUG > Service control: enable clamav-daemon.
Synchronizing state for clamav-daemon.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d clamav-daemon defaults
Executing /usr/sbin/update-rc.d clamav-daemon enable
 + < DEBUG > Service control: enable amavis.
Synchronizing state for amavis.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d amavis defaults
Executing /usr/sbin/update-rc.d amavis enable
 + < DEBUG > Service control: enable clamav-freshclam.
Synchronizing state for clamav-freshclam.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d clamav-freshclam defaults
Executing /usr/sbin/update-rc.d clamav-freshclam enable
 + < DEBUG > Service control: enable sogo.
Synchronizing state for sogo.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d sogo defaults
Executing /usr/sbin/update-rc.d sogo enable
 + < DEBUG > Service control: enable memcached.
Synchronizing state for memcached.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d memcached defaults
Executing /usr/sbin/update-rc.d memcached enable
 + < DEBUG > Service control: enable fail2ban.
Synchronizing state for fail2ban.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d fail2ban defaults
Executing /usr/sbin/update-rc.d fail2ban enable
 + < DEBUG > Service control: enable cron.
Synchronizing state for cron.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d cron defaults
Executing /usr/sbin/update-rc.d cron enable
 + < DEBUG > Service control: disable php5-fpm.
Synchronizing state for php5-fpm.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d php5-fpm defaults
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d php5-fpm disable
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
 + < DEBUG > Service control: disable spamassassin.
Synchronizing state for spamassassin.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d spamassassin defaults
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d spamassassin disable
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
< SKIP > Function: after_package_installation.
< SKIP > Function: generate_ssl_keys.
< SKIP > Function: add_required_users.
< SKIP > Function: web_server_config.
< SKIP > Function: mysql_setup.
< SKIP > Function: postfix_setup.
< SKIP > Function: dovecot_setup.
< SKIP > Function: clamav_config.
< SKIP > Function: amavisd_config.
< SKIP > Function: sa_config.
< SKIP > Function: iredapd_setup.
< SKIP > Function: iredadmin_setup.
< SKIP > Function: fail2ban_config.
< SKIP > Function: rcm_setup.
< SKIP > Function: sogo_setup.
< SKIP > Function: awstats_setup.
< SKIP > Function: cleanup.
[ INFO ] Checking configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config ...
[ INFO ] Checking configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config ...
[ INFO ] Skip configuration file: /home/administrateur/iredmail/iRedMail-0.9.7/config.
[ INFO ] Add apt repo for SOGo: https://packages.inverse.ca
[ INFO ] Import apt key (0x810273C4) for SOGo repo (https://packages.inverse.ca).
[ INFO ] Resynchronizing the package index files (apt-get update) ...
[ INFO ] Installing package(s): postfix postfix-pcre mysql-client mysql-server postfix-mysql libdbd-mysql-perl libaprutil1-dbd-mysql php5-cli php5-json php5-gd php5-mcrypt php5-curl mcrypt php5-intl php5-mysql apache2 apache2-utils libapache2-mod-php5 dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-managesieved dovecot-sieve dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip-full rpm ripole libmail-spf-perl unrar-free pax lrzip sogo sogo-activesync sope4.9-gdl1-mysql python-sqlalchemy python-dnspython python-mysqldb python-jinja2 python-netifaces python-webpy python-beautifulsoup python-lxml python-pycurl libapache2-mod-wsgi python-bcrypt awstats fail2ban bzip2 acl patch cron tofrodos logwatch unzip bsdutils liblz4-tool
 + < DEBUG > Service control: enable rsyslog.
Synchronizing state for rsyslog.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d rsyslog defaults
Executing /usr/sbin/update-rc.d rsyslog enable
 + < DEBUG > Service control: enable postfix.
Synchronizing state for postfix.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d postfix defaults
Executing /usr/sbin/update-rc.d postfix enable
 + < DEBUG > Service control: enable mysql.
Synchronizing state for mysql.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d mysql defaults
Executing /usr/sbin/update-rc.d mysql enable
 + < DEBUG > Service control: enable apache2.
Synchronizing state for apache2.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d apache2 defaults
Executing /usr/sbin/update-rc.d apache2 enable
 + < DEBUG > Service control: enable dovecot.
Synchronizing state for dovecot.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d dovecot defaults
Executing /usr/sbin/update-rc.d dovecot enable
 + < DEBUG > Service control: enable clamav-daemon.
Synchronizing state for clamav-daemon.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d clamav-daemon defaults
Executing /usr/sbin/update-rc.d clamav-daemon enable
 + < DEBUG > Service control: enable amavis.
Synchronizing state for amavis.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d amavis defaults
Executing /usr/sbin/update-rc.d amavis enable
 + < DEBUG > Service control: enable clamav-freshclam.
Synchronizing state for clamav-freshclam.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d clamav-freshclam defaults
Executing /usr/sbin/update-rc.d clamav-freshclam enable
 + < DEBUG > Service control: enable sogo.
Synchronizing state for sogo.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d sogo defaults
Executing /usr/sbin/update-rc.d sogo enable
 + < DEBUG > Service control: enable memcached.
Synchronizing state for memcached.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d memcached defaults
Executing /usr/sbin/update-rc.d memcached enable
 + < DEBUG > Service control: enable fail2ban.
Synchronizing state for fail2ban.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d fail2ban defaults
Executing /usr/sbin/update-rc.d fail2ban enable
 + < DEBUG > Service control: enable cron.
Synchronizing state for cron.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d cron defaults
Executing /usr/sbin/update-rc.d cron enable
 + < DEBUG > Service control: disable php5-fpm.
Synchronizing state for php5-fpm.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d php5-fpm defaults
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d php5-fpm disable
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `php5-fpm' overrides LSB defaults (0 1 6).
 + < DEBUG > Service control: disable spamassassin.
Synchronizing state for spamassassin.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d spamassassin defaults
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d spamassassin disable
insserv: warning: current start runlevel(s) (empty) of script `spamassassin' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `spamassassin' overrides LSB defaults (0 1 6).
< SKIP > Function: after_package_installation.
< SKIP > Function: generate_ssl_keys.
< SKIP > Function: add_required_users.
< SKIP > Function: web_server_config.
< SKIP > Function: mysql_setup.
< SKIP > Function: postfix_setup.
< SKIP > Function: dovecot_setup.
< SKIP > Function: clamav_config.
< SKIP > Function: amavisd_config.
< SKIP > Function: sa_config.
< SKIP > Function: iredapd_setup.
< SKIP > Function: iredadmin_setup.
< SKIP > Function: fail2ban_config.
< SKIP > Function: rcm_setup.
< SKIP > Function: sogo_setup.
< SKIP > Function: awstats_setup.
< SKIP > Function: cleanup.

5

Re: No access after fresh installation

Seems you have MySQL service running with a mysql root password BEFORE installing iRedMail, is it right?

6

Re: No access after fresh installation

ZhangHuangbin wrote:

Seems you have MySQL service running with a mysql root password BEFORE installing iRedMail, is it right?


Yes. I installed the debian server following a tutorial at howtoforge.

That one, to be precise :

https://www.howtoforge.com/tutorial/per … onfig-3-1/

mysql was part of it.

7

Re: No access after fresh installation

Unfortunately, iRedMail requires a fresh clean server OS. as mentioned in iRedMail installation guide: http://www.iredmail.org/docs/install.ir … quirements

Warning

iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed, e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install and configure them for you automatically. Otherwise it may override your existing files/configurations althought it will backup files before modifying, and it may not be working as expected.

8

Re: No access after fresh installation

I see. I had a computer lying around. Did a minimal debian installation and installed iredmail after that. Working good so far.
I would still be interested to know how to fix the issue on the other one though.

Any idea on how to do that?

9

Re: No access after fresh installation

Excuse me, which one?

10

Re: No access after fresh installation

ZhangHuangbin wrote:

Excuse me, which one?


The first computer i used, which seems to have an issue related to mysql.

I think i might have to install iredmail someday on top of something else (like Nagios ...)

11 (edited by enriquerene 2020-04-08 04:45:32)

Re: No access after fresh installation

Warning

iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed, e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install and configure them for you automatically. Otherwise it may override your existing files/configurations althought it will backup files before modifying, and it may not be working as expected.

In my case, I got a Digital Ocean droplet and named it as mx.thedevs.com.br. I create a non-root user and logged via ssh to server. After this, a made use of wget tool to get .tar iRedMail, uncopressed that, change directory into it and run `bash iRedMail.sh`.
In the installations steps I chose everything default, MySQL db, mail.thedevs.com.br as server name (what must not to be the same as mx.thedevs.com.br). For server just NGINX and other one was up to me, no Apache option there.
The script ran ok and send me two url links, one for roundcube and other for monitoring. None of them works. What can I do to get iRedMail working?

12

Re: No access after fresh installation

enriquerene wrote:

The script ran ok and send me two url links, one for roundcube and other for monitoring. None of them works.

What do you mean "none of them works"? You cannot access the URL?

13

Re: No access after fresh installation

Hello,

I am trying to install iRedmail over EC2 Ubuntu OS.

I tried 3 times on fresh system, and after installation I cant access via SSH

Attached you can see the log.

I dont know if something isnt working with EC2 VM.

BR
Ulises Orantes

enriquerene wrote:

Warning

iRedMail is designed to be deployed on a FRESH server system, which means your server does NOT have mail related components installed, e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install and configure them for you automatically. Otherwise it may override your existing files/configurations althought it will backup files before modifying, and it may not be working as expected.

In my case, I got a Digital Ocean droplet and named it as mx.thedevs.com.br. I create a non-root user and logged via ssh to server. After this, a made use of wget tool to get .tar iRedMail, uncopressed that, change directory into it and run `bash iRedMail.sh`.
In the installations steps I chose everything default, MySQL db, mail.thedevs.com.br as server name (what must not to be the same as mx.thedevs.com.br). For server just NGINX and other one was up to me, no Apache option there.
The script ran ok and send me two url links, one for roundcube and other for monitoring. None of them works. What can I do to get iRedMail working?

14

Re: No access after fresh installation

Do you use port 22 for ssh service?
iRedMail installer asks you whether or not to use the firewall rules shipped by iRedMail installer, did you answer “yes” or “no”?
Please check current firewall rules and find whether your ssh port number is bypassed.