1

Topic: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

Hi everyone,

I installed iReadMail 0.6.1 on a Ubuntu 10.04.1 LTS today.

It's a totally fresh install and I started with a minimal install of Ubuntu 10.04.1 LTS.
The only thing I installed before iRedMail was OpenSSH-server and OpenSSH-client.

Everything seems to be fine and I checked that mySQL is running and phpmyadmin is working.
I checked the iRedMail.tips to confirm the passwords.

From roundcube i just got "Login Failed" when I try to login with the www@ address.

When I try to login on PostfixAdmin with the postmaster@ address i got this:

-------------------------------------------------------------------------------------------------
DEBUG INFORMATION:
Connect: Access denied for user 'vmailadmin'@'localhost' (using password: YES)

Please check the documentation and website for more information.

Postfix Admin
Forums
-------------------------------------------------------------------------------------------------


And when I go to https://192.168.1.6/awstats/awstats.pl (192.168.1.6 is the temporary IP of my server)
I first got a login window and when I try to login i got this:

-------------------------------------------------------------------------------------------------
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.14 (Ubuntu) Server at 192.168.1.6 Port 443
-------------------------------------------------------------------------------------------------


Thanks in advance!

Kind regards

----

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

2

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

From 'postconf -n' I get this:

config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
mailbox_command = /usr/lib/dovecot/deliver
smtpd_sasl_path = dovecot-auth
smtpd_sasl_type = dovecot
virtual_transport = dovecot


Seems to be fine I think?

3

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

Please post original error log in /var/log/mail.log, /var/log/dovecot.log, so that we can help troubleshoot this issue.

4 (edited by ippif 2010-10-28 17:24:11)

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

Thanks for your reply Zhang!

Sections from /var/logs/mail.log:

Oct 14 18:06:19 mail amavis[957]: No decoder for       .tnef
Oct 14 18:06:19 mail amavis[957]: Internal decoder for .tnef
Oct 14 18:06:19 mail amavis[957]: No decoder for       .exe  tried: unrar-free; arj, unarj
Oct 14 18:06:19 mail amavis[957]: Using primary internal av scanner code for ClamAV-clamd
Oct 14 18:06:19 mail amavis[957]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Oct 14 18:06:19 mail amavis[957]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.39, libdb 4.8
Oct 14 18:06:33 mail postfix/master[1424]: daemon started -- version 2.7.0, configuration /etc/postfix
Oct 14 18:09:09 mail roundcube: [14-Oct-2010 18:09:09 +0200]: IMAP Error: Authentication for www@address.se failed (LOGIN): "a001 NO [UNAVAILABLE] Temporary authentication failure." (POST /mail/?_task=&_action=login)
Oct 14 18:39:58 mail roundcube: [14-Oct-2010 18:39:58 +0200]: IMAP Error: Authentication for www@address.se failed (LOGIN): "a001 NO [UNAVAILABLE] Temporary authentication failure." (POST /mail/?_task=&_action=login)
Oct 14 18:56:33 mail postfix/qmgr[1444]: 863EEA9F76: from=<root@mail.localdomain>, size=6369, nrcpt=1 (queue active)
Oct 14 18:56:34 mail postfix/qmgr[1444]: 94C9EA9F6E: from=<root@mail.localdomain>, size=1137, nrcpt=1 (queue active)
Oct 14 18:56:54 mail postfix/smtp[1785]: 94C9EA9F6E: to=<www@address.se>, relay=none, delay=6048, delays=6027/0.11/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=address.se type=MX: Host not found, try again)
Oct 14 18:56:54 mail postfix/smtp[1784]: 863EEA9F76: to=<www@address.se>, relay=none, delay=6048, delays=6027/0.29/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=address.se type=MX: Host not found, try again)
Oct 14 19:00:56 mail amavis[797]: starting.  /usr/sbin/amavisd-new at mail.address.se amavisd-new-2.6.4 (20090625), Unicode aware
Oct 14 19:00:56 mail amavis[797]: Perl version               5.010001
Oct 14 19:00:57 mail amavis[960]: Net::Server: Group Not Defined.  Defaulting to EGID '116 116'
Oct 14 19:00:57 mail amavis[960]: Net::Server: User Not Defined.  Defaulting to EUID '107'


Oct 15 06:35:26 mail postfix/local[3220]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 06:35:27 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3220 exit status 1
Oct 15 06:35:27 mail postfix/master[1427]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Oct 15 06:36:13 mail postfix/qmgr[1459]: 863EEA9F76: from=<root@mail.localdomain>, size=6369, nrcpt=1 (queue active)
Oct 15 06:36:13 mail postfix/qmgr[1459]: 94C9EA9F6E: from=<root@mail.localdomain>, size=1137, nrcpt=1 (queue active)
Oct 15 06:36:27 mail postfix/local[3225]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 06:36:28 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3225 exit status 1
Oct 15 06:36:28 mail postfix/master[1427]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Oct 15 06:36:34 mail postfix/smtp[3223]: 863EEA9F76: to=<www@address.se>, relay=none, delay=48028, delays=48008/0.02/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=address.se type=MX: Host not found, try again)
Oct 15 06:36:34 mail postfix/smtp[3224]: 94C9EA9F6E: to=<www@address.se>, relay=none, delay=48028, delays=48007/0.02/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=address.se type=MX: Host not found, try again)
Oct 15 06:37:28 mail postfix/local[3228]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 06:37:29 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3228 exit status 1
Oct 15 06:37:29 mail postfix/master[1427]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Oct 15 06:38:29 mail postfix/local[3229]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 06:38:30 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3229 exit status 1
Oct 15 06:38:30 mail postfix/master[1427]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Oct 15 06:39:30 mail postfix/local[3239]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 06:39:31 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3239 exit status 1

Oct 15 07:44:34 mail postfix/local[3339]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 07:44:35 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3339 exit status 1
Oct 15 07:44:35 mail postfix/master[1427]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Oct 15 07:45:35 mail postfix/local[3340]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 07:45:36 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3340 exit status 1
Oct 15 07:45:36 mail postfix/master[1427]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Oct 15 07:46:13 mail postfix/qmgr[1459]: 863EEA9F76: from=<root@mail.localdomain>, size=6369, nrcpt=1 (queue active)
Oct 15 07:46:13 mail postfix/qmgr[1459]: 94C9EA9F6E: from=<root@mail.localdomain>, size=1137, nrcpt=1 (queue active)
Oct 15 07:46:33 mail postfix/smtp[3342]: 863EEA9F76: to=<www@address.se>, relay=none, delay=52227, delays=52207/0.02/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=address.se type=MX: Host not found, try again)
Oct 15 07:46:33 mail postfix/smtp[3343]: 94C9EA9F6E: to=<www@address.se>, relay=none, delay=52227, delays=52207/0.02/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=address.se type=MX: Host not found, try again)
Oct 15 07:46:36 mail postfix/local[3346]: fatal: open database /etc/aliases.db: No such file or directory
Oct 15 07:46:37 mail postfix/master[1427]: warning: process /usr/lib/postfix/local pid 3346 exit status 1
Oct 15 07:46:37 mail postfix/master[1427]: warning: /usr/lib/postfix/local: bad command startup -- throttling
Oct 15 07:47:37 mail postfix/local[3347]: fatal: open database /etc/aliases.db: No such file or directory



And this is the whole /var/logs/dovcote.log:

Oct 14 17:15:46 dovecot: Info: Dovecot v1.2.9 starting up (core dumps disabled)
Oct 14 17:15:46 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 1 seconds before retry
Oct 14 17:17:34 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 5 seconds before retry
Oct 14 17:17:34 auth-worker(default): Error: sql(www@address.e,127.0.0.1): Password query failed: Not connected to database
Oct 14 17:17:41 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<www@address.e>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 14 17:37:58 dovecot: Warning: Killed with signal 15 (by pid=13018 uid=0 code=kill)
Oct 14 17:37:58 imap-login: Warning: Killed with signal 15 (by pid=13018 uid=0 code=kill)
Oct 14 17:37:58 auth-worker(default): Warning: Killed with signal 15 (by pid=13018 uid=0 code=kill)
Oct 14 17:37:58 auth(default): Warning: Killed with signal 15 (by pid=13018 uid=0 code=kill)
Oct 14 17:39:05 dovecot: Info: Dovecot v1.2.9 starting up (core dumps disabled)
Oct 14 17:39:05 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 1 seconds before retry
Oct 14 17:41:36 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 5 seconds before retry
Oct 14 17:41:36 auth-worker(default): Error: sql(postmaster@address.se,127.0.0.1): Password query failed: Not connected to database
Oct 14 17:41:43 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<postmaster@address.se>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 14 17:41:50 auth-worker(default): Error: sql(www@address.se,127.0.0.1): Password query failed: Not connected to database
Oct 14 17:41:57 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<www@address.se>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 14 17:46:28 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 75 seconds before retry
Oct 14 17:46:28 auth-worker(default): Error: sql(www@address.se,127.0.0.1): Password query failed: Not connected to database
Oct 14 17:46:35 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<www@address.se>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 14 18:05:30 auth(default): Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 pop3-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 pop3-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 managesieve-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 managesieve-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 imap-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 imap-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 auth-worker(default): Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 managesieve-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 dovecot: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 pop3-login: Warning: Killed with signal 15 (by pid=2695 uid=0 code=kill)
Oct 14 18:05:30 dovecot: Warning: I/O leak: 0x7ff80f92a470 (21)
Oct 14 18:06:34 dovecot: Info: Dovecot v1.2.9 starting up (core dumps disabled)
Oct 14 18:06:34 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 1 seconds before retry
Oct 14 18:09:07 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 5 seconds before retry
Oct 14 18:09:07 auth-worker(default): Error: sql(www@address.se,127.0.0.1): Password query failed: Not connected to database
Oct 14 18:09:14 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<www@address.se>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 14 18:39:56 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 75 seconds before retry
Oct 14 18:39:56 auth-worker(default): Error: sql(www@address.se,127.0.0.1): Password query failed: Not connected to database
Oct 14 18:40:03 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<www@address.se>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct 14 19:00:02 dovecot: Warning: Killed with signal 15 (by pid=2295 uid=0 code=kill)
Oct 14 19:00:02 managesieve-login: Warning: Killed with signal 15 (by pid=2295 uid=0 code=kill)
Oct 14 19:00:02 auth-worker(default): Warning: Killed with signal 15 (by pid=2295 uid=0 code=kill)
Oct 14 19:01:13 dovecot: Info: Dovecot v1.2.9 starting up (core dumps disabled)
Oct 14 19:01:13 auth-worker(default): Error: mysql: Connect failed to localhost (vmail): Access denied for user 'vmail'@'localhost' (using password: YES) - waiting for 1 seconds before retry


Thanks!

5

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

So many error messages.
MySQL is not running.
Postfix misses some files.

Did you install iRedMail by following installation guide STRICTLY? any error message during installation?

6

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

I can see that it's a lot of errors now, missed to check the logs before...

The only thing I didn't follow strictly was to delete the configfile directly.

I tried to install iRedMail 0.6.1 on a Ubuntu 10.04.1 LTS installed with a "standard" CD-rom and than with the miniCD version.

I feel that the easiest way to solve this is to start over again and try to understand what went wrong.
Will update this tread, maybe we all can learn from this.

Kind regards

7

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

Hm, just one thing, I remember that I got a line said something like "/etc/postfix/main.cf missing, no directory or file", but then it just installed the rest an I could find that file when I checked for it.

8

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

I guess installing a new Ubuntu and iRedMail is easier than troubleshoot them, if possible.

9

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

I'm installing Ubuntu now, miniCD and this time with ext4 instead of ext3. Someone said ext4 worked and not RaiserFS, so I'll try that.

Just a wonder, while installing Ubuntu 10.04.1 LTS server you'll get a question how you want to configure postfix. Last time I  choose the no configuration alternative, Is that right?

10

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

Hi again,

Installed Ubuntu 10.04.1 LTS , and didn't even install SSH before installing iRedMail 0.6.1.

During the installation of iRedMail 0.6.1 i got this error like 50 times:
postconf: fatal: open /etc/postfix/main.cf for reading: No such file or directory

I got this line one time:
head: cannot open `/etc/mailname' for reading: No suchfile or directory

After "* iRedMail-0.6.1 installation and configuration complete." I got this:
grep: /etc/ssh/sshd_config: No such file or directory

Then the installation finish.

11

Re: Login unable to Roundcube/PostfixAdmin/Awstats - fresh installation

It WORKS! smile

Okay, for some reason it didn't work last time but now it is.

This is the difference between the first installation that didn't work and the second that worked:

- ext4 instead of ext3
- didn't instal OpenSSH-server/OpenSSH-client before installing iRedMail-0.6.1
- As passwords i just used small letters this time and no special characters, e.g. 1st time "Pa55w0rD!", 2st time "password", for MySQL/postmaster/www
- Finishing the installation with updated firewall rules but didn't start postfix before deleating iRedMail-0.6.1/config
- After deleating iRedMail-0.6.1/config I rebooted the server and then I tried connecting to Roundcube/PostfixAdmin/Awstats and It all worked fine smile