Package: postfix
Version: 2.8.5-1.1
Severity: important

No idea why the Postfix package creates /etc/aliases if the file doesn't
exist. The postinst script probably should check `postconf -h alias_database`
output. And it will hopefully do nothing if the output looks like
`${indexed}aliases'.

The `postalias: fatal: open /etc/postfix/aliases: No such file or directory'
problem is caused by my setup. There is no /etc/postfix/aliases file. There
are this files, among a Makefile and some other files:
        -rw-r--r-- 1 root root 2539 Dec  7 02:44 /etc/postfix/aliases.cdb
        -rw-r--r-- 1 root root  202 Dec  7 02:44 /etc/postfix/aliases.in

Because of the failed postalias command the Postfix packages is left 
unconfigured. As a consequence Postfix will not be started again …


Best Regards,
Pascal

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages postfix depends on:
ii  adduser                3.113
ii  debconf [debconf-2.0]  1.5.41
ii  dpkg                   1.16.1.2
ii  libc6                  2.13-21
ii  libdb5.1               5.1.25-11
ii  libsasl2-2             2.1.25.dfsg1-2
ii  libssl1.0.0            1.0.0e-3
ii  lsb-base               3.2-28
ii  netbase                4.47
ii  ssl-cert               1.0.28

Versions of packages postfix recommends:
ii  python  2.7.2-9

Versions of packages postfix suggests:
pn  bsd-mailx [mail-reader]        8.1.2-0.20111106cvs-1
pn  dovecot-common                 1:2.0.15-1
pn  dovecot-core [dovecot-common]  1:2.0.15-1
pn  icedove [mail-reader]          3.1.16-1
pn  libsasl2-modules               2.1.25.dfsg1-2
pn  mutt [mail-reader]             1.5.21-5
pn  postfix-cdb                    2.8.5-1.1
pn  postfix-ldap                   <none>
pn  postfix-mysql                  <none>
pn  postfix-pcre                   2.8.5-1.1
pn  postfix-pgsql                  2.8.5-1.1
pn  procmail                       <none>
pn  resolvconf                     <none>
pn  sasl2-bin                      <none>
pn  sylpheed [mail-reader]         3.2.0~beta4-1
pn  ufw                            <none>

-- debconf information excluded
…
Preparing to replace postfix-pgsql 2.8.3-1 (using 
.../postfix-pgsql_2.8.5-1.1_amd64.deb) ...
Unpacking replacement postfix-pgsql ...
Preparing to replace postfix 2.8.3-1 (using .../postfix_2.8.5-1.1_amd64.deb) ...
Stopping Postfix Mail Transport Agent: postfix.
Stopping Postfix Mail Transport Agent: postfix.
Unpacking replacement postfix ...
…
Installing new version of config file /etc/init.d/postfix ...
Installing new version of config file /etc/resolvconf/update-libc.d/postfix ...
setting inet_protocols: ipv4,ipv6
###
# Huh? wtf ... where?
###
/etc/aliases does not exist, creating it.

Postfix is now set up with the changes above.  If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
postalias: fatal: open /etc/postfix/aliases: No such file or directory
dpkg: error processing postfix (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postfix-cdb:
 postfix-cdb depends on postfix (= 2.8.5-1.1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-cdb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-pcre:
 postfix-pcre depends on postfix (= 2.8.5-1.1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-pcre (--configure):
 dependency problems - leaving unconfigured
…
dpkg: dependency problems prevent configuration of postfix-pgsql:
 postfix-pgsql depends on postfix (= 2.8.5-1.1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-pgsql (--configure):
 dependency problems - leaving unconfigured
…
Errors were encountered while processing:
 postfix
 postfix-cdb
 postfix-pcre
 postfix-pgsql
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up postfix (2.8.5-1.1) ...
setting inet_protocols: ipv4,ipv6
### once more ###
# Huh? wtf ... where?
###

Postfix is now set up with the changes above.  If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed.  To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
postalias: fatal: open /etc/postfix/aliases: No such file or directory
dpkg: error processing postfix (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postfix-cdb:
 postfix-cdb depends on postfix (= 2.8.5-1.1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-cdb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-pgsql:
 postfix-pgsql depends on postfix (= 2.8.5-1.1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-pgsql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postfix-pcre:
 postfix-pcre depends on postfix (= 2.8.5-1.1); however:
  Package postfix is not configured yet.
dpkg: error processing postfix-pcre (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 postfix
 postfix-cdb
 postfix-pgsql
 postfix-pcre
…

Reply via email to