yamrajsingh / iredmail

Automatically exported from code.google.com/p/iredmail
0 stars 0 forks source link

Hiccup w/ postfix-policyd on debian 5.0.6 with iRedMail 0.6.1 #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow http://code.google.com/p/iredmail/wiki/Installation_on_Debian
2. Use mysql backend
3. Follow steps for using existin MySQL
4. bash iRedMail.sh

What is the expected output? What do you see instead?
Hangs with this:
Setting up postfix-policyd (1.82-2) ...
dbconfig-common: writing config to /etc/dbconfig-common/postfix-policyd.conf
*** WARNING: ucf was run from a maintainer script that uses debconf, but
             the script did not pass --debconf-ok to ucf. The maintainer
             script should be fixed to not stop debconf before calling ucf,
             and pass it this parameter. For now, ucf will revert to using
             old-style, non-debconf prompting. Ugh!

             Please inform the package maintainer about this problem.

Creating config file /etc/dbconfig-common/postfix-policyd.conf with new version

Creating config file /etc/postfix-policyd.conf with new version
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: 
NO).
unable to connect to mysql server.
error encountered creating user:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: 
NO)
dbconfig-common: postfix-policyd configure: aborted.
dbconfig-common: flushing administrative password
dpkg: error processing postfix-policyd (--configure):
 subprocess post-installation script returned error exit status 1
...
Errors were encountered while processing:
 postfix-policyd
E: Sub-process /usr/bin/dpkg returned an error code (1)
< ERROR > Installation failed, please check the terminal output.

What version of the product are you using? On what operating system?
v0.6.1
Debian 5.0.6 with a Rackspace cloud server.

Please provide any additional information below.
Workaround:
I gather that the problem is that postfix-policyd doesn't like how it's being 
scripted.
I noticed if I now run
aptitude upgrade
the postfix-policyd package re-attempts to install, now with a curses 
interface. Say yes and give the root mysql password.
rerun 'bash iRedMail.sh' and it seems to pick up where it left off and finish. 

Original issue reported on code.google.com by david.le...@gmail.com on 25 Sep 2010 at 6:56

GoogleCodeExporter commented 8 years ago
This is postfix-policyd package issue. We reported to Debian & Ubuntu before, 
no way to solve it yet.

Also, if you run 'apt-get update && apt-get upgrade' before installing 
iRedMail, it will not happen.

Original comment by michaelb...@gmail.com on 26 Sep 2010 at 12:59