1

Topic: Anyone get iRedMail up on Bitnami Ubuntu?

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 0.7.4
- Linux/BSD distribution name and version: Ubuntu 10.04.4 LTS
- Any related log? Log is helpful for troubleshooting.
====

I'm trying to install iRedMail onto a Bitnami AWS Ubuntu instance. Bitnami places Apache, MySQL, etc. in non-standard locations. I believe I successfully changed the configuration files to point to proper locations but the installer seems to be having problems with the SSL and Apache locations. It appears that postfix and the database entries in mysql have been created properly. However, I get an http 403 error when trying to access iRedAdmin and roundcube mail. A log of the installation and apache access are attached. I would appreciate any help that can be offered.

Thanks to any one who can help  in advance.

----

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

2

Re: Anyone get iRedMail up on Bitnami Ubuntu?

Any log in Apache log file? I didn't see attachment in your post, please paste them in post directly, not attachment.

And we didn't try Bitnami before, it's not yet officially support by iRedMail team.

3

Re: Anyone get iRedMail up on Bitnami Ubuntu?

ok thanks -- here's the tail of the apache log:

66.237.5.24 - - [21/Apr/2012:19:36:03 -0700] "GET /img/launch-button-big.gif HTTP/1.1" 200 1836
66.237.5.24 - - [21/Apr/2012:19:36:03 -0700] "GET /img/background.png HTTP/1.1" 200 357621
66.237.5.24 - - [21/Apr/2012:19:36:10 -0700] "GET /iredadmin.html HTTP/1.1" 200 1215
66.237.5.24 - - [21/Apr/2012:19:36:10 -0700] "GET /interstream.css HTTP/1.1" 200 3145
66.237.5.24 - - [21/Apr/2012:19:36:11 -0700] "GET /img/launch-button-big.gif HTTP/1.1" 200 1836
66.237.5.24 - - [21/Apr/2012:19:36:11 -0700] "GET /img/background.png HTTP/1.1" 200 357621
66.237.5.24 - - [21/Apr/2012:19:36:20 -0700] "GET / HTTP/1.1" 200 1913
66.237.5.24 - - [21/Apr/2012:19:36:27 -0700] "GET / HTTP/1.1" 200 1913
awsmail.interstream.com - - [21/Apr/2012:19:37:36 -0700] "GET /server-status?auto HTTP/1.0" 403 215
awsmail.interstream.com - - [21/Apr/2012:19:41:36 -0700] "GET /server-status?auto HTTP/1.0" 403 215

4

Re: Anyone get iRedMail up on Bitnami Ubuntu?

Here's the install log:

Configuration completed.

*************************************************************************
***************************** WARNING ***********************************
*************************************************************************
*                                                                       *
* Please do remember to *MOVE* configuration file after installation    *
* completed successfully.                                               *
*                                                                       *
*   * /home/jlt/iRedMail-0.8.0-beta4/config
*                                                                       *
*************************************************************************
< Question > Continue? [y|N]y
Leaving `local diversion of /etc/dbconfig-common/postfix-policyd.conf to /etc/dbconfig-common/postfix-policyd.conf.distrib'
< INFO > Installing package(s): mysql-server mysql-client postfix-mysql libapache2-mod-auth-mysql apache2 apache2-mpm-prefork apache2.2-common libapache2-mod-php5 php5-cli php5-imap php5-gd php5-mcrypt php5-mysql php5-ldap php5-pgsql libapache2-mod-auth-mysql libapache2-mod-auth-pgsql php5-mhash postfix postfix-pcre postfix-policyd dovecot-imapd dovecot-pop3d amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm unrar-free ripole libmail-spf-perl python-ldap python-psycopg2 python-mysqldb libapache2-mod-wsgi python-mysqldb python-jinja2 python-netifaces python-webpy awstats fail2ban bzip2 acl patch cron tofrodos logwatch
Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-server is already the newest version.
mysql-client is already the newest version.
postfix-mysql is already the newest version.
libapache2-mod-auth-mysql is already the newest version.
apache2 is already the newest version.
apache2-mpm-prefork is already the newest version.
apache2.2-common is already the newest version.
libapache2-mod-php5 is already the newest version.
php5-cli is already the newest version.
php5-imap is already the newest version.
php5-gd is already the newest version.
php5-mcrypt is already the newest version.
php5-mysql is already the newest version.
php5-ldap is already the newest version.
libapache2-mod-auth-mysql is already the newest version.
Note, selecting php5-common instead of php5-mhash
php5-common is already the newest version.
postfix is already the newest version.
postfix-pcre is already the newest version.
postfix-policyd is already the newest version.
dovecot-imapd is already the newest version.
dovecot-pop3d is already the newest version.
amavisd-new is already the newest version.
libcrypt-openssl-rsa-perl is already the newest version.
libmail-dkim-perl is already the newest version.
clamav-freshclam is already the newest version.
clamav-daemon is already the newest version.
spamassassin is already the newest version.
altermime is already the newest version.
arj is already the newest version.
zoo is already the newest version.
nomarch is already the newest version.
cpio is already the newest version.
lzop is already the newest version.
cabextract is already the newest version.
p7zip is already the newest version.
rpm is already the newest version.
unrar-free is already the newest version.
ripole is already the newest version.
libmail-spf-perl is already the newest version.
python-ldap is already the newest version.
python-mysqldb is already the newest version.
libapache2-mod-wsgi is already the newest version.
python-mysqldb is already the newest version.
python-jinja2 is already the newest version.
python-netifaces is already the newest version.
python-webpy is already the newest version.
awstats is already the newest version.
fail2ban is already the newest version.
bzip2 is already the newest version.
acl is already the newest version.
patch is already the newest version.
cron is already the newest version.
tofrodos is already the newest version.
The following extra packages will be installed:
  libdate-manip-perl libyaml-syck-perl python-egenix-mxdatetime python-egenix-mxtools
Suggested packages:
  fortune-mod python-egenix-mxdatetime-dbg python-egenix-mxtools-dbg python-egenix-mxtools-doc
The following NEW packages will be installed:
  libapache2-mod-auth-pgsql libdate-manip-perl libyaml-syck-perl logwatch php5-pgsql python-egenix-mxdatetime python-egenix-mxtools python-psycopg2
0 upgraded, 8 newly installed, 0 to remove and 4 not upgraded.
Need to get 3296kB of archives.
After this operation, 18.9MB of additional disk space will be used.
Get:1 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libyaml-syck-perl 1.07-1build1 [82.1kB]
Get:2 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libdate-manip-perl 6.05-1 [2433kB]
Get:3 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main logwatch 7.3.6.cvs20090906-1ubuntu2.1 [402kB]
Get:4 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main php5-pgsql 5.3.2-1ubuntu4.14 [56.9kB]
Get:5 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main python-egenix-mxtools 3.1.3-2ubuntu1 [82.4kB]
Get:6 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main python-egenix-mxdatetime 3.1.3-2ubuntu1 [75.3kB]
Get:7 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main python-psycopg2 2.0.13-2ubuntu2 [144kB]
Get:8 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main libapache2-mod-auth-pgsql 2.0.3-5build2 [21.2kB]
Fetched 3296kB in 0s (7705kB/s)               
Selecting previously deselected package libyaml-syck-perl.
(Reading database ... 44130 files and directories currently installed.)
Unpacking libyaml-syck-perl (from .../libyaml-syck-perl_1.07-1build1_amd64.deb) ...
Selecting previously deselected package libdate-manip-perl.
Unpacking libdate-manip-perl (from .../libdate-manip-perl_6.05-1_all.deb) ...
Selecting previously deselected package logwatch.
Unpacking logwatch (from .../logwatch_7.3.6.cvs20090906-1ubuntu2.1_all.deb) ...
Selecting previously deselected package php5-pgsql.
Unpacking php5-pgsql (from .../php5-pgsql_5.3.2-1ubuntu4.14_amd64.deb) ...
Selecting previously deselected package python-egenix-mxtools.
Unpacking python-egenix-mxtools (from .../python-egenix-mxtools_3.1.3-2ubuntu1_amd64.deb) ...
Selecting previously deselected package python-egenix-mxdatetime.
Unpacking python-egenix-mxdatetime (from .../python-egenix-mxdatetime_3.1.3-2ubuntu1_amd64.deb) ...
Selecting previously deselected package python-psycopg2.
Unpacking python-psycopg2 (from .../python-psycopg2_2.0.13-2ubuntu2_amd64.deb) ...
Selecting previously deselected package libapache2-mod-auth-pgsql.
Unpacking libapache2-mod-auth-pgsql (from .../libapache2-mod-auth-pgsql_2.0.3-5build2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for libapache2-mod-php5 ...
Your apache2 configuration is broken, so we're not restarting it for you.
Setting up libyaml-syck-perl (1.07-1build1) ...
Setting up libdate-manip-perl (6.05-1) ...
Setting up logwatch (7.3.6.cvs20090906-1ubuntu2.1) ...
Setting up php5-pgsql (5.3.2-1ubuntu4.14) ...
Setting up python-egenix-mxtools (3.1.3-2ubuntu1) ...

Setting up libapache2-mod-auth-pgsql (2.0.3-5build2) ...

Processing triggers for python-central ...
Setting up python-egenix-mxdatetime (3.1.3-2ubuntu1) ...

Processing triggers for python-central ...
Setting up python-psycopg2 (2.0.13-2ubuntu2) ...

Processing triggers for python-central ...
update-rc.d: warning: /etc/init.d/rsyslog missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
update-rc.d: warning: /etc/init.d/mysql missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
update-rc.d: warning: /etc/init.d/cron missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
< INFO > ---- Start iRedMail Configurations ----
< INFO > Create SSL certification files.
< INFO > Create required system accounts: vmail, iredapd, iredadmin.
useradd: user 'iredadmin' already exists
useradd: user 'iredapd' already exists
< INFO > Configure Apache web server and PHP.
Can't open /etc/apache2/conf.d/security: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
ERROR: Site default-ssl does not exist!
ERROR: Module ssl does not exist!
Could not create /etc/apache2/mods-enabled/auth_mysql.load: No such file or directory
Can't open /etc/php5/apache2/php.ini: No such file or directory.
Can't open /etc/php5/apache2/php.ini: No such file or directory.
Can't open /etc/php5/apache2/php.ini: No such file or directory.
Can't open /etc/php5/apache2/php.ini: No such file or directory.
Can't open /etc/php5/apache2/php.ini: No such file or directory.
Can't open /etc/php5/apache2/php.ini: No such file or directory.
grep: /etc/php5/apache2/php.ini: No such file or directory
Can't open /etc/php5/apache2/php.ini: No such file or directory.
< INFO > Configure MySQL database server.
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
ERROR 1062 (23000) at line 13 in file: '/home/jlt/iRedMail-0.8.0-beta4/conf/mysql_vmail.sql': Duplicate entry 'interstream.org' for key 'PRIMARY'
< INFO > Configure Postfix.
< INFO > Configure Policyd (postfix policy server, version 1.8).
groupadd: group 'policyd' already exists
useradd: user 'policyd' already exists
ERROR 1049 (42000) at line 5: Unknown database 'postfixpolicyd'
< INFO > Configure Dovecot (pop3/imap server, version 1.2).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new.
Error in config file "/etc/amavis/conf.d/50-user": dkim_key: selector dkim for domain interstream.org already in use
ERROR 1007 (HY000) at line 2: Can't create database 'amavisd'; database exists
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure Roundcube webmail.
/home/jlt/iRedMail-0.8.0-beta4/functions/roundcubemail.sh: line 42: /etc/apache2/conf.d/roundcubemail.conf: No such file or directory
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
ERROR 1007 (HY000) at line 2: Can't create database 'roundcubemail'; database exists
< INFO > Configure Awstats (logfile analyzer for mail and web server).
/home/jlt/iRedMail-0.8.0-beta4/functions/awstats.sh: line 46: /etc/apache2/conf.d/awstats.conf: No such file or directory
/home/jlt/iRedMail-0.8.0-beta4/functions/awstats.sh: line 118: /etc/apache2/conf.d/awstats.conf: No such file or directory
chmod: cannot access `/etc/apache2/conf.d/awstats.conf': No such file or directory
/home/jlt/iRedMail-0.8.0-beta4/functions/awstats.sh: line 179: /etc/apache2/conf.d/awstats.conf: No such file or directory
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
< INFO > Configure iRedAdmin (official web-based admin panel).
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
Can't open /etc/apache2/sites-available/default-ssl: No such file or directory.
/home/jlt/iRedMail-0.8.0-beta4/functions/iredadmin.sh: line 76: /etc/apache2/conf.d/iredadmin.conf: No such file or directory
ERROR 1007 (HY000) at line 2: Can't create database 'iredadmin'; database exists
< INFO > Configure iRedAPD (postfix policy daemon).
< INFO > Configure Fail2ban (authentication failure monitor).

*************************************************************************
* iRedMail-0.8.0-beta4 installation and configuration complete.
*************************************************************************

< Question > Would you like to use firewall rules shipped within iRedMail now?
< Question > File: /etc/default/iptables, with SSHD port: 22. [Y|n]Y
< INFO > Copy firewall sample rules: /etc/default/iptables.
< Question > Restart firewall now (with SSHD port 22)? [y|N]y
< INFO > Restarting firewall ...
* Flushing firewall rules iptables                                                                                                                                                     [ OK ]
* Setting chains to policy ACCEPT                                                                                                                                                              filter                                                                                                                                                                                 [ OK ]
Unloading iptables modules                                                                                                                                                              [ OK ]
* Applying iptables firewall rules                                                                                                                                                     [ OK ]
< Question > Would you like to start postfix now? [y|N]y
* Flushing firewall rules iptables                                                                                                                                                     [ OK ]
* Setting chains to policy ACCEPT                                                                                                                                                              filter                                                                                                                                                                                 [ OK ]
Unloading iptables modules                                                                                                                                                              [ OK ]
* Applying iptables firewall rules                                                                                                                                                     [ OK ]
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service rsyslog restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart rsyslog
rsyslog start/running, process 17356
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
start: Job failed to start
.: 45: Can't open /etc/apache2/envvars
* Stopping Postfix Mail Transport Agent postfix                                                                                                                                        [ OK ]
* Starting Postfix Mail Transport Agent postfix                                                                                                                                        [ OK ]
Restarting Postfix greylisting policy daemon: postfix-policyd.
* Restarting IMAP/POP3 mail server dovecot                                                                                                                                                    If you have trouble with authentication failures,
enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork
This message goes away after the first successful login.
                                                                                                                                                                                        [ OK ]
Stopping amavisd: (not running).
Starting amavisd: Error in config file "/etc/amavis/conf.d/50-user": dkim_key: selector dkim for domain interstream.org already in use
(failed).
* Stopping ClamAV daemon clamd                                                                                                                                                         [ OK ]
* Starting ClamAV daemon clamd                                                                                                                                                                LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
                                                                                                                                                                                        [ OK ]
* Stopping ClamAV virus database updater freshclam                                                                                                                                     [ OK ]
* Starting ClamAV virus database updater freshclam                                                                                                                                     [ OK ]
* Restarting authentication failure monitor fail2ban                                                                                                                                   [ OK ]
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cron restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart cron
cron start/running, process 18646
Stopping iredapd ...
Starting iredapd ...
********************************************************************
* URLs of your web applications:
*
* - Webmail: http://awsmail.interstream.com/mail/ or httpS://awsmail.interstream.com/mail/
*   + Account: www@interstream.org, Password: gamma1
*
* - Admin Panel (iRedAdmin): httpS://awsmail.interstream.com/iredadmin/
*   + Account: postmaster@interstream.org, Password: is2success
*

********************************************************************
* Congratulations, mail server setup complete. Please refer to tip
* file for more information:
*
*   - /home/jlt/iRedMail-0.8.0-beta4/iRedMail.tips
*
* And it's sent to your mail account www@interstream.org.
*
********************************************************************

5

Re: Anyone get iRedMail up on Bitnami Ubuntu?

Dear jlt,

As it shows, this is an override installation. Is it possible to show me the installation log of the FIRST iRedMail installation?

6

Re: Anyone get iRedMail up on Bitnami Ubuntu?

I'll cleanup and re-install. This override was for the beta version. I thought it might work better. Thanks.

7

Re: Anyone get iRedMail up on Bitnami Ubuntu?

Here it is for v7.4 after the cleanup:

Configuration completed.

*************************************************************************
***************************** WARNING ***********************************
*************************************************************************
*                                                                       *
* Please do remember to *MOVE* configuration file after installation    *
* completed successfully.                                               *
*                                                                       *
*   * /home/jlt/iRedMail-0.7.4/config
*                                                                       *
*************************************************************************
< Question > Continue? [y|N]y
Leaving `local diversion of /etc/dbconfig-common/postfix-policyd.conf to /etc/dbconfig-common/postfix-policyd.conf.distrib'
< INFO > Installing package(s): apache2 apache2-mpm-prefork apache2.2-common libapache2-mod-php5 libapache2-mod-auth-mysql php5-cli php5-imap php5-gd php5-mcrypt php5-mysql php5-ldap php5-mhash postfix postfix-pcre awstats mysql-server mysql-client postfix-mysql libapache2-mod-auth-mysql postfix-policyd dovecot-imapd dovecot-pop3d amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm unrar-free ripole libmail-spf-perl python-ldap libapache2-mod-wsgi python-mysqldb python-jinja2 python-netifaces python-webpy python-ldap fail2ban bzip2 acl patch cron tofrodos
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2-mpm-prefork is already the newest version.
apache2.2-common is already the newest version.
libapache2-mod-php5 is already the newest version.
php5-cli is already the newest version.
php5-gd is already the newest version.
php5-mcrypt is already the newest version.
php5-mysql is already the newest version.
Note, selecting php5-common instead of php5-mhash
php5-common is already the newest version.
postfix is already the newest version.
awstats is already the newest version.
mysql-server is already the newest version.
postfix-mysql is already the newest version.
arj is already the newest version.
zoo is already the newest version.
nomarch is already the newest version.
cpio is already the newest version.
lzop is already the newest version.
cabextract is already the newest version.
p7zip is already the newest version.
rpm is already the newest version.
unrar-free is already the newest version.
ripole is already the newest version.
libmail-spf-perl is already the newest version.
python-ldap is already the newest version.
libapache2-mod-wsgi is already the newest version.
python-mysqldb is already the newest version.
python-jinja2 is already the newest version.
python-netifaces is already the newest version.
python-webpy is already the newest version.
python-ldap is already the newest version.
fail2ban is already the newest version.
bzip2 is already the newest version.
acl is already the newest version.
patch is already the newest version.
cron is already the newest version.
tofrodos is already the newest version.
The following extra packages will be installed:
  clamav clamav-base dovecot-common
Suggested packages:
  lha unrar apt-listchanges libnet-ldap-perl dspam clamav-docs daemon ntp razor libnet-ident-perl libio-socket-ssl-perl pyzor
The following packages will be REMOVED:
  courier-imap courier-imap-ssl
The following NEW packages will be installed:
  altermime amavisd-new apache2 clamav clamav-base clamav-daemon clamav-freshclam dovecot-common dovecot-imapd dovecot-pop3d libapache2-mod-auth-mysql libcrypt-openssl-rsa-perl
  libmail-dkim-perl mysql-client php5-imap php5-ldap postfix-pcre postfix-policyd spamassassin
0 upgraded, 19 newly installed, 2 to remove and 4 not upgraded.
Need to get 0B/11.8MB of archives.
After this operation, 24.9MB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 47694 files and directories currently installed.)
Removing courier-imap-ssl ...
* Stopping Courier IMAP-SSL server...                                                                                                                                                  [ OK ]
Removing courier-imap ...
* Stopping Courier IMAP server...                                                                                                                                                      [ OK ]
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Selecting previously deselected package altermime.
(Reading database ... 47664 files and directories currently installed.)
Unpacking altermime (from .../altermime_0.3.10-3_amd64.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.14-5ubuntu8.9_amd64.deb) ...
Selecting previously deselected package clamav-base.
Unpacking clamav-base (from .../clamav-base_0.96.5+dfsg-1ubuntu1.10.04.3_all.deb) ...
Selecting previously deselected package clamav-freshclam.
Unpacking clamav-freshclam (from .../clamav-freshclam_0.96.5+dfsg-1ubuntu1.10.04.3_amd64.deb) ...
Selecting previously deselected package clamav.
Unpacking clamav (from .../clamav_0.96.5+dfsg-1ubuntu1.10.04.3_amd64.deb) ...
Selecting previously deselected package clamav-daemon.
Unpacking clamav-daemon (from .../clamav-daemon_0.96.5+dfsg-1ubuntu1.10.04.3_amd64.deb) ...
Selecting previously deselected package dovecot-common.
Unpacking dovecot-common (from .../dovecot-common_1%3a1.2.9-1ubuntu6.5_amd64.deb) ...
Selecting previously deselected package dovecot-imapd.
Unpacking dovecot-imapd (from .../dovecot-imapd_1%3a1.2.9-1ubuntu6.5_amd64.deb) ...
Selecting previously deselected package dovecot-pop3d.
Unpacking dovecot-pop3d (from .../dovecot-pop3d_1%3a1.2.9-1ubuntu6.5_amd64.deb) ...
Selecting previously deselected package libapache2-mod-auth-mysql.
Unpacking libapache2-mod-auth-mysql (from .../libapache2-mod-auth-mysql_4.3.9-12ubuntu1_amd64.deb) ...
Selecting previously deselected package libcrypt-openssl-rsa-perl.
Unpacking libcrypt-openssl-rsa-perl (from .../libcrypt-openssl-rsa-perl_0.25-1build2_amd64.deb) ...
Selecting previously deselected package libmail-dkim-perl.
Unpacking libmail-dkim-perl (from .../libmail-dkim-perl_0.38-0ubuntu1_all.deb) ...
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.1.61-0ubuntu0.10.04.1_all.deb) ...
Selecting previously deselected package php5-imap.
Unpacking php5-imap (from .../php5-imap_5.3.2-0ubuntu2_amd64.deb) ...
Selecting previously deselected package php5-ldap.
Unpacking php5-ldap (from .../php5-ldap_5.3.2-1ubuntu4.14_amd64.deb) ...
Selecting previously deselected package postfix-policyd.
Unpacking postfix-policyd (from .../postfix-policyd_1.82-2ubuntu5_amd64.deb) ...
Selecting previously deselected package spamassassin.
Unpacking spamassassin (from .../spamassassin_3.3.1-1_all.deb) ...
Selecting previously deselected package amavisd-new.
Unpacking amavisd-new (from .../amavisd-new_1%3a2.6.4-1ubuntu5_all.deb) ...
Selecting previously deselected package postfix-pcre.
Unpacking postfix-pcre (from .../postfix-pcre_2.7.0-1ubuntu0.2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Processing triggers for libapache2-mod-php5 ...
Your apache2 configuration is broken, so we're not restarting it for you.
Setting up altermime (0.3.10-3) ...
Setting up apache2 (2.2.14-5ubuntu8.9) ...

Setting up clamav-base (0.96.5+dfsg-1ubuntu1.10.04.3) ...

Setting up clamav-freshclam (0.96.5+dfsg-1ubuntu1.10.04.3) ...
* Starting ClamAV virus database updater freshclam                                                                                                                                     [ OK ]

Setting up clamav (0.96.5+dfsg-1ubuntu1.10.04.3) ...
Setting up clamav-daemon (0.96.5+dfsg-1ubuntu1.10.04.3) ...
* Clamav signatures not found in /var/lib/clamav
* Please retrieve them using freshclam or install the clamav-data package
* Then run '/etc/init.d/clamav-daemon start'

Setting up dovecot-common (1:1.2.9-1ubuntu6.5) ...

Creating config file /etc/dovecot/dovecot.conf with new version

Creating config file /etc/dovecot/dovecot-ldap.conf with new version

Creating config file /etc/dovecot/dovecot-sql.conf with new version
adduser: Warning: The home directory `/usr/lib/dovecot' does not belong to the user you are currently creating.
Creating generic self-signed certificate:  /etc/ssl/certs/dovecot.pem
(replace with hand-crafted or authorized one if needed).
update-rc.d: warning: dovecot stop runlevel arguments (1) do not match LSB Default-Stop values (0 1 6)
* Starting IMAP/POP3 mail server dovecot                                                                                                                                               [ OK ]

Setting up dovecot-imapd (1:1.2.9-1ubuntu6.5) ...
* Restarting IMAP/POP3 mail server dovecot                                                                                                                                                    If you have trouble with authentication failures,
enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork
This message goes away after the first successful login.
                                                                                                                                                                                        [ OK ]

Setting up dovecot-pop3d (1:1.2.9-1ubuntu6.5) ...
* Restarting IMAP/POP3 mail server dovecot                                                                                                                                                    If you have trouble with authentication failures,
enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork
This message goes away after the first successful login.
                                                                                                                                                                                        [ OK ]

Setting up libapache2-mod-auth-mysql (4.3.9-12ubuntu1) ...
Setting up libcrypt-openssl-rsa-perl (0.25-1build2) ...
Setting up libmail-dkim-perl (0.38-0ubuntu1) ...
Setting up mysql-client (5.1.61-0ubuntu0.10.04.1) ...
Setting up php5-imap (5.3.2-0ubuntu2) ...
Setting up php5-ldap (5.3.2-1ubuntu4.14) ...
Setting up postfix-policyd (1.82-2ubuntu5) ...
dbconfig-common: writing config to /etc/dbconfig-common/postfix-policyd.conf

Creating config file /etc/postfix-policyd.conf with new version
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dbconfig-common: postfix-policyd configure: aborted.
dbconfig-common: flushing administrative password
dpkg: error processing postfix-policyd (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up spamassassin (3.3.1-1) ...
SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin

Setting up amavisd-new (1:2.6.4-1ubuntu5) ...
Creating/updating amavis user account...
Starting amavisd: amavisd-new.

Setting up postfix-pcre (2.7.0-1ubuntu0.2) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding pcre map entry to /etc/postfix/dynamicmaps.cf
/var/lib/dpkg/info/postfix-pcre.postinst: 40: cannot create /etc/postfix/dynamicmaps.cf: Directory nonexistent
dpkg: error processing postfix-pcre (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
postfix-policyd
postfix-pcre
E: Sub-process /usr/bin/dpkg returned an error code (1)
< ERROR > Installation failed, please check the terminal output.

8

Re: Anyone get iRedMail up on Bitnami Ubuntu?

I was able to get Webmin running on Bitnami Ubuntu today. It worked perfectly after resetting the core configuration files to point to the proper locations.

Here's a log of diffs for mysql, apache, and postgresql if it helps to debug the install for iRedMine:

-----------mysql config diff: /etc/webmin/mysql/config------------------------------
4,5c4,5
< stop_cmd=/etc/init.d/mysql stop >/dev/null 2>&1
< mysqldump=/usr/bin/mysqldump
---
> stop_cmd=/etc/init.d/bitnami stop mysql >/dev/null 2>&1
> mysqldump=/opt/bitnami/mysql/bin/mysqldump
7c7
< mysql_libs=/usr/local/mysql/lib
---
> mysql_libs=/opt/bitnami/mysql/lib
9c9
< start_cmd=/etc/init.d/mysql start >/dev/null 2>&1 &
---
> start_cmd=/etc/init.d/bitnami start mysql >/dev/null 2>&1 &
11c11
< mysqlimport=/usr/bin/mysqlimport
---
> mysqlimport=/opt/bitnami/mysql/bin/mysqlimport
15,17c15,17
< my_cnf=/etc/mysql/my.cnf
< mysqlshow=/usr/bin/mysqlshow
< mysql=/usr/bin/mysql
---
> my_cnf=/opt/bitnami/mysql/my.cnf
> mysqlshow=/opt/bitnami/mysql/bin/mysqlshow
> mysql=/opt/bitnami/mysql/bin/mysql
22c22,24
< mysqladmin=/usr/bin/mysqladmin
---
> mysqladmin=/opt/bitnami/mysql/bin/mysqladmin
> pass=XXXXXX
> login=root
-----------apache config diff: /etc/webmin/apache/config------------------------------

1c1
< link_dir=/etc/apache2/sites-enabled
---
> link_dir=/opt/bitnami/apache2/conf/sites-enabled
4,5c4,5
< mime_types=/etc/apache2/mime.types
< access_conf=/etc/apache2/access.conf
---
> mime_types=/opt/bitnami/apache2/conf/mime.types
> access_conf=/opt/bitnami/apache2/conf/access.conf
7,8c7,8
< stop_cmd=/etc/init.d/apache2 stop
< virt_file=/etc/apache2/sites-available
---
> stop_cmd=/etc/init.d/bitnami stop apache
> virt_file=/opt/bitnami/apache2/conf/sites-available
11,13c11,13
< srm_conf=/etc/apache2/srm.conf
< httpd_dir=/etc/apache2
< start_cmd=/etc/init.d/apache2 start
---
> srm_conf=/opt/bitnami/apache2/conf/srm.conf
> httpd_dir=/opt/bitnami/apache2
> start_cmd=/etc/init.d/bitnami start apache
16,18c16,18
< httpd_conf=/etc/apache2/apache2.conf
< defines_file=/etc/apache2/envvars
< apachectl_path=/usr/sbin/apache2ctl
---
> httpd_conf=/opt/bitnami/apache2/conf/httpd.conf
> defines_file=/opt/bitnami/apache2/bin/envvars
> apachectl_path=/opt/bitnami/apache2/bin/apachectl
21,22c21,22
< apply_cmd=/usr/sbin/apache2ctl graceful
< httpd_path=/usr/sbin/apache2
---
> apply_cmd=/opt/bitnami/bin/apachectl graceful
> httpd_path=/opt/bitnami/apache2/bin/httpd

-----------postgresql config diff: /etc/webmin/postgresql/config------------------------------

6c6
< stop_cmd=/etc/init.d/postgresql* stop
---
> stop_cmd=/etc/init.d/bitnami stop postgresql
8,9c8,9
< hba_conf=/etc/postgresql/*/main/pg_hba.conf
< psql=/usr/bin/psql
---
> hba_conf=/opt/bitnami/postgresql/data/pg_hba.conf
> psql=/opt/bitnami/postgresql/bin/psql
13,15c13,15
< start_cmd=/etc/init.d/postgresql* start
< pass=
< dump_cmd=/usr/bin/pg_dump
---
> start_cmd=/etc/init.d/bitnami start postgresql
> pass=XXXXXXXXXXXXXX
> dump_cmd=/opt/bitnami/postgresql/bin/pg_dump
19c19
< rstr_cmd=/usr/bin/pg_restore
---
> rstr_cmd=/opt/bitnami/postgresql/bin/pg_restore
24a25,29
> setup_cmd=
> encoding=
> repository=
> port=
> host=

I should probably know better than if "I can't apt-get" it, I probably shouldn't go through the trouble of learning how to install it...

9

Re: Anyone get iRedMail up on Bitnami Ubuntu?

You can try to update files under iRedMail-x.y.z/conf/, set correct file location for Bitnami, then try again.

Setting up postfix-pcre (2.7.0-1ubuntu0.2) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding pcre map entry to /etc/postfix/dynamicmaps.cf
/var/lib/dpkg/info/postfix-pcre.postinst: 40: cannot create /etc/postfix/dynamicmaps.cf: Directory nonexistent
dpkg: error processing postfix-pcre (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
postfix-policyd
postfix-pcre
E: Sub-process /usr/bin/dpkg returned an error code (1)

You should fix this issue manually before installing iRedMail. For example, install postfix-pcre manually before installing iRedMail.

10

Re: Anyone get iRedMail up on Bitnami Ubuntu?

ok here's a log of more errors:
--- start---
Leaving `local diversion of /etc/dbconfig-common/postfix-policyd.conf to /etc/dbconfig-common/postfix-policyd.conf.distrib'
< INFO > Installing package(s): apache2 apache2-mpm-prefork apache2.2-common libapache2-mod-php5 libapache2-mod-auth-mysql php5-cli php5-imap php5-gd php5-mcrypt php5-mysql php5-ldap php5-mhash postfix postfix-pcre awstats mysql-server mysql-client postfix-mysql libapache2-mod-auth-mysql postfix-policyd dovecot-imapd dovecot-pop3d amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm unrar-free ripole libmail-spf-perl python-ldap libapache2-mod-wsgi python-mysqldb python-jinja2 python-netifaces python-webpy python-ldap fail2ban bzip2 acl patch cron tofrodos

<...>

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
update-rc.d: warning: /etc/init.d/rsyslog missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
update-rc.d: warning: /etc/init.d/mysql missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
update-rc.d: warning: /etc/init.d/cron missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
< INFO > ---- Start iRedMail Configurations ----
< INFO > Create SSL certification files.
< INFO > Configure User/Group: vmail.
< INFO > Configure Apache web server and PHP.
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
ERROR: Site default-ssl does not exist!
ERROR: Module ssl does not exist!
Could not create /etc/apache2/mods-enabled/auth_mysql.load: No such file or directory
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
ERROR 1062 (23000) at line 13 in file: '/home/jlt/iRedMail-0.7.4/conf/mysql_vmail.sql': Duplicate entry 'interstream.org' for key 'PRIMARY'
< INFO > Configure Postfix.
< INFO > Configure Policyd (postfix policy server, version 1.8).
groupadd: group 'policyd' already exists
useradd: user 'policyd' already exists
ERROR 1049 (42000) at line 5: Unknown database 'postfixpolicyd'
< INFO > Configure Dovecot (pop3/imap server).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new.
drop_priv: No such username:
ERROR 1007 (HY000) at line 2: Can't create database 'amavisd'; database exists
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure Roundcube webmail.
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
ERROR 1007 (HY000) at line 2: Can't create database 'roundcubemail'; database exists
< INFO > Configure Awstats (logfile analyzer for mail and web server).
usermod: no changes
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
< INFO > Configure iRedAdmin (official web-based admin panel).
useradd: user 'iredadmin' already exists
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/sites-available/default-ssl: No such file or directory.
ERROR 1007 (HY000) at line 2: Can't create database 'iredadmin'; database exists
< INFO > Configure iRedAPD (postfix policy daemon).
useradd: user 'iredapd' already exists
< INFO > Configure Fail2ban.


It looks like it can't update init properly and I can't seem to find the in the iRedMail config files for the apache "sites-available" location (virt_file=/opt/bitnami/apache2/conf/sites-available in my diff above).

Thanks -- any help would be appreciated.

11

Re: Anyone get iRedMail up on Bitnami Ubuntu?

*) Please update conf/apache_php to use correct file location.
*) To start/stop/restart services, please search '_RC_SCRIPT' in conf/*.

12

Re: Anyone get iRedMail up on Bitnami Ubuntu?

ok - I carefully changed conf/apache_php and re-ran the install. I received no errors. However, I'm now getting a "Forbidden" message when I go to https://mydomain.com/iredadmin/. I'm researching apache configs to see where the problem might be...

13

Re: Anyone get iRedMail up on Bitnami Ubuntu?

Please check Apache log file first. smile

14

Re: Anyone get iRedMail up on Bitnami Ubuntu?

Apologies... I just realized I forgot that. Here's a tail of the apache log:

backupmail.XXXX.org - - [23/Apr/2012:09:18:10 -0700] "GET /server-status?auto HTTP/1.0" 403 215
66.XXX.Y.24 - - [23/Apr/2012:09:18:52 -0700] "GET /iredadmin/ HTTP/1.1" 403 212
66.XXX.Y.24 - - [23/Apr/2012:09:18:53 -0700] "GET /iredadmin/ HTTP/1.1" 403 212
66.XXX.Y.24 - - [23/Apr/2012:09:18:54 -0700] "GET /iredadmin/ HTTP/1.1" 403 212

I think I'm going to "refresh" the install by starting it up again with the corrected conf/* files. And try again.

15

Re: Anyone get iRedMail up on Bitnami Ubuntu?

No, please check ssl_error_log instead.

16

Re: Anyone get iRedMail up on Bitnami Ubuntu?

ok here it is:

[23/Apr/2012:06:00:19 -0700] 66.249.72.82 TLSv1 RC4-SHA "GET /robots.txt HTTP/1.1" 1134
[23/Apr/2012:09:18:00 -0700] 66.XXX.y.24 TLSv1 AES128-SHA "GET /iredadmin.html HTTP/1.1" 1215
[23/Apr/2012:09:18:00 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /interstream.css HTTP/1.1" -
[23/Apr/2012:09:18:00 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /img/background.png HTTP/1.1" -
[23/Apr/2012:09:18:04 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /iredadmin HTTP/1.1" 253
[23/Apr/2012:09:18:04 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /iredadmin/ HTTP/1.1" 212
[23/Apr/2012:09:18:52 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /iredadmin/ HTTP/1.1" 212
[23/Apr/2012:09:18:53 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /iredadmin/ HTTP/1.1" 212
[23/Apr/2012:09:18:54 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /iredadmin/ HTTP/1.1" 212
[23/Apr/2012:09:19:21 -0700] 66.XXX.Y.24 TLSv1 AES128-SHA "GET /drupal/ HTTP/1.1" 8251

17

Re: Anyone get iRedMail up on Bitnami Ubuntu?

jlt wrote:

However, I'm now getting a "Forbidden" message when I go to https://mydomain.com/iredadmin/.

I didn't find related error messages in your posts. Please check Apache setting for iRedAdmin also.

18

Re: Anyone get iRedMail up on Bitnami Ubuntu?

None of it seems to be working... I fully removed iRedMail and then re-installed v7.4 from the tar file. After the initial config, I tried to point the conf/* files to proper locations and then restarted 'cd <tar-extract-dir>; sudo bash ./iRedMail.sh' I then logged the following output:

-------------START---------------------------------

Unpacking replacement mysql-server ...
Setting up mysql-client (5.1.62-0ubuntu0.10.04.1) ...
Setting up mysql-server (5.1.62-0ubuntu0.10.04.1) ...
update-rc.d: warning: /etc/init.d/rsyslog missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
update-rc.d: warning: /etc/init.d/mysql missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
update-rc.d: warning: /etc/init.d/cron missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
< INFO > ---- Start iRedMail Configurations ----
< INFO > Create SSL certification files.
< INFO > Configure User/Group: vmail.
< INFO > Configure Apache web server and PHP.
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
ERROR: Site default-ssl does not exist!
ERROR: Module ssl does not exist!
Could not create /etc/apache2/mods-enabled/auth_mysql.load: No such file or directory
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
ERROR 1062 (23000) at line 13 in file: '/home/jlt/iRedMail-0.7.4/conf/mysql_vmail.sql': Duplicate entry 'interstream.org' for key 'PRIMARY'
< INFO > Configure Postfix.
< INFO > Configure Policyd (postfix policy server, version 1.8).
groupadd: group 'policyd' already exists
useradd: user 'policyd' already exists
ERROR 1049 (42000) at line 5: Unknown database 'postfixpolicyd'
< INFO > Configure Dovecot (pop3/imap server).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new.
Error in config file "/etc/amavis/conf.d/50-user": dkim_key: selector dkim for domain interstream.org already in use
ERROR 1007 (HY000) at line 2: Can't create database 'amavisd'; database exists
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure Roundcube webmail.
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
ERROR 1007 (HY000) at line 2: Can't create database 'roundcubemail'; database exists
< INFO > Configure Awstats (logfile analyzer for mail and web server).
usermod: no changes
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
< INFO > Configure iRedAdmin (official web-based admin panel).
useradd: user 'iredadmin' already exists
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
Can't open /opt/bitnami/apache2/conf/sites-available/default-ssl: No such file or directory.
ERROR 1007 (HY000) at line 2: Can't create database 'iredadmin'; database exists
< INFO > Configure iRedAPD (postfix policy daemon).
useradd: user 'iredapd' already exists
< INFO > Configure Fail2ban.

*************************************************************************
* iRedMail-0.7.4 installation and configuration complete.
*************************************************************************

< Question > Would you like to use firewall rules shipped within iRedMail now?
< Question > File: /etc/default/iptables, with SSHD port: 22. [Y|n]

-------------END---------------------------------

It appears the installer is attempting to re-install mysql and does not know where the apache ssl directory is. I do not see where in the conf files that I'm supposed identify the ssl director, nor do I know why it would attempt to install mysql. I already have it installed and it is running fine. Please help.

Jeff