Package: postfix
Version: 2.8.3-1
Severity: normal

Postfix does not copy my certificates located in /etc/cert to the corret
directory /var/spool/postfix/etc/cert, but instead into
/var/spool/postfix/etc/cert/etc/cert
This breaks my postfix config.

I changed the startup script manually to set the correct path.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.39.1 (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages postfix depends on:
ii  adduser 3.112+nmu2                       add and remove users and groups
ii  debconf 1.5.39                           Debian configuration management sy
ii  dpkg    1.16.0.3                         Debian package management system
ii  libc6   2.13-4                           Embedded GNU C Library: Shared lib
ii  libdb5. 5.1.25-10                        Berkeley v5.1 Database Libraries [
ii  libsasl 2.1.24~rc1.dfsg1+cvs2011-05-23-2 Cyrus SASL - authentication abstra
ii  libssl1 1.0.0d-2                         SSL shared libraries
ii  lsb-bas 3.2-27                           Linux Standard Base 3.2 init scrip
ii  netbase 4.45                             Basic TCP/IP networking system
ii  ssl-cer 1.0.28                           simple debconf wrapper for OpenSSL

Versions of packages postfix recommends:
ii  python                        2.6.6-14   interactive high-level object-orie

Versions of packages postfix suggests:
ii  bsd-mai 8.1.2-0.20100314cvs-1            simple mail user agent
pn  dovecot <none>                           (no description available)
ii  icedove 3.1.10-1                         mail/news client with RSS and inte
ii  kmail [ 4:4.4.11.1+l10n-1                full featured graphical email clie
ii  libsasl 2.1.24~rc1.dfsg1+cvs2011-05-23-2 Cyrus SASL - pluggable authenticat
ii  mutt [m 1.5.21-5                         text-based mailreader supporting M
pn  postfix <none>                           (no description available)
pn  postfix <none>                           (no description available)
pn  postfix <none>                           (no description available)
pn  postfix <none>                           (no description available)
pn  postfix <none>                           (no description available)
ii  procmai 3.22-19                          Versatile e-mail processor
pn  resolvc <none>                           (no description available)
pn  sasl2-b <none>                           (no description available)
pn  ufw     <none>                           (no description available)

-- Configuration Files:
/etc/init.d/postfix changed:
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/postfix
NAME=Postfix
TZ=
unset TZ
SYNC_CHROOT="y"
test -f /etc/default/postfix && . /etc/default/postfix
test -x $DAEMON && test -f /etc/postfix/main.cf || exit 0
. /lib/lsb/init-functions
running() {
    queue=$(postconf -h queue_directory 2>/dev/null || echo /var/spool/postfix)
    if [ -f ${queue}/pid/master.pid ]; then
        pid=$(sed 's/ //g' ${queue}/pid/master.pid)
        # what directory does the executable live in.  stupid prelink systems.
        dir=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* -> //; 
s/\/[^\/]*$//')
        if [ "X$dir" = "X/usr/lib/postfix" ]; then
            echo y
        fi
    fi
}
case "$1" in
    start)
        log_daemon_msg "Starting Postfix Mail Transport Agent" postfix
        RUNNING=$(running)
        if [ -n "$RUNNING" ]; then
            log_end_msg 0
        else
            # if you set myorigin to 'ubuntu.com' or 'debian.org', it's wrong, 
and annoys the admins of
            # those domains.  See also sender_canonical_maps.
            MYORIGIN=$(postconf -h myorigin | tr 'A-Z' 'a-z')
            if [ "X${MYORIGIN#/}" != "X${MYORIGIN}" ]; then
                MYORIGIN=$(tr 'A-Z' 'a-z' < $MYORIGIN)
            fi
            if [ "X$MYORIGIN" = Xubuntu.com ] || [ "X$MYORIGIN" = Xdebian.org 
]; then
                log_failure_msg "Invalid \$myorigin ($MYORIGIN), refusing to 
start"
                log_end_msg 1
                exit 1
            fi
            # see if anything is running chrooted.
            NEED_CHROOT=$(awk '/^[0-9a-z]/ && ($5 ~ "[-yY]") { print "y"; 
exit}' /etc/postfix/master.cf)
            if [ -n "$NEED_CHROOT" ] && [ -n "$SYNC_CHROOT" ]; then
                # Make sure that the chroot environment is set up correctly.
                oldumask=$(umask)
                umask 022
                queue_dir=$(postconf -h queue_directory)
                cd "$queue_dir"
                # copy the CA path if specified
                ca_path=$(postconf -h smtp_tls_CApath)
                case "$ca_path" in
                    '') :;; # no ca_path
                    $queue_dir/*) :;;  # skip stuff already in chroot
                    *)
                        if test -d "$ca_path"; then
                            dest_dir="$queue_dir/${ca_path#/}" new=0
                            if test -d "$dest_dir"
                                # write to a new directory ...
                                then dest_dir="$dest_dir.NEW" && new=1
                                else mkdir --parent ${dest_dir%/*}
                            fi
                            # handle files in subdirectories
                            find "$ca_path" -print0 | cpio -0pdL 
/var/spool/postfix/
                            if [ "$new" = 1 ]; then
                                # and replace the old directory
                                rm -r "${dest_dir%.NEW}"
                                mv "$dest_dir" "${dest_dir%.NEW}"
                            fi
                        fi
                        ;;
                esac
                                    
                # if there is a CA file, copy it
                ca_file=$(postconf -h smtp_tls_CAfile)
                case "$ca_file" in
                    $queue_dir/*) :;;  # skip stuff already in chroot
                    '') # no ca_file
                        # or copy the bundle to preserve functionality
                        ca_bundle=/etc/ssl/certs/ca-certificates.crt
                        if [ -f $ca_bundle ]; then
                            mkdir --parent "$queue_dir/${ca_bundle%/*}"
                            cp -L "$ca_bundle" "$queue_dir/${ca_bundle%/*}"
                        fi
                        ;;
                    *)
                        if test -f "$ca_file"; then
                            dest_dir="$queue_dir/${ca_path#/}"
                            mkdir --parent "$dest_dir"
                            cp -L "$ca_file" "$dest_dir"
                        fi
                        ;;
                esac
                                
                # if we're using unix:passwd.byname, then we need to add 
etc/passwd.
                local_maps=$(postconf -h local_recipient_maps)
                if [ "X$local_maps" != "X${local_maps#*unix:passwd.byname}" ]; 
then
                    if [ "X$local_maps" = 
"X${local_maps#*proxy:unix:passwd.byname}" ]; then
                        sed 's/^\([^:]*\):[^:]*/\1:x/' /etc/passwd > etc/passwd
                        chmod a+r etc/passwd
                    fi
                fi
                FILES="etc/localtime etc/services etc/resolv.conf etc/hosts \
                    etc/nsswitch.conf etc/nss_mdns.config"
                for file in $FILES; do 
                    [ -d ${file%/*} ] || mkdir -p ${file%/*}
                    if [ -f /${file} ]; then rm -f ${file} && cp /${file} 
${file}; fi
                    if [ -f  ${file} ]; then chmod a+rX ${file}; fi
                done
                rm -f usr/lib/zoneinfo/localtime
                mkdir -p usr/lib/zoneinfo
                ln -sf /etc/localtime usr/lib/zoneinfo/localtime
                if [ "$(echo /lib/libnss_*so*)" != "/lib/libnss_*so" ]; then
                    rm -f lib/libnss_*so*
                    tar cf - /lib/libnss_*so* 2>/dev/null |tar xf -
                fi
                if [ "$(echo /lib/*/libnss_*so*)" != "/lib/*/libnss_*so" ]; then
                    rm -f lib/*/libnss_*so*
                    tar cf - /lib/*/libnss_*so* 2>/dev/null |tar xf -
                fi
                umask $oldumask
            fi
            if start-stop-daemon --start --exec ${DAEMON} -- quiet-quick-start; 
then
                log_end_msg 0
            else
                log_end_msg 1
            fi
        fi
    ;;
    stop)
        RUNNING=$(running)
        log_daemon_msg "Stopping Postfix Mail Transport Agent" postfix
        if [ -n "$RUNNING" ]; then
            if ${DAEMON} quiet-stop; then
                log_end_msg 0
            else
                log_end_msg 1
            fi
        else
            log_end_msg 0
        fi
    ;;
    restart)
        $0 stop
        $0 start
    ;;
    
    force-reload|reload)
        log_action_begin_msg "Reloading Postfix configuration"
        if ${DAEMON} quiet-reload; then
            log_action_end_msg 0
        else
            log_action_end_msg 1
        fi
    ;;
    status)
        RUNNING=$(running)
        if [ -n "$RUNNING" ]; then
           log_success_msg "postfix is running"
           exit 0
        else
           log_success_msg "postfix is not running"
           exit 3
        fi
    ;;
    flush|check|abort)
        ${DAEMON} $1
    ;;
    *)
        log_action_msg "Usage: /etc/init.d/postfix 
{start|stop|restart|reload|flush|check|abort|force-reload|status}"
        exit 1
    ;;
esac
exit 0

/etc/network/if-up.d/postfix [Errno 2] No such file or directory: 
u'/etc/network/if-up.d/postfix'

-- debconf information:
  postfix/mailname: /etc/mailname
  postfix/tlsmgr_upgrade_warning:
  postfix/retry_upgrade_warning:
  postfix/append_dot_mydomain: false
  postfix/db2_db3_upgrade: true
* postfix/world_writable_maildrop: false
  postfix/relayhost:
  postfix/procmail:
  postfix/bad_recipient_delimiter:
  postfix/rfc1035_violation: false
  postfix/mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  postfix/protocols:
* postfix/master_upgrade_warning: true
* postfix/db_upgrade_warning: true
* postfix/dynamicmaps_upgrade_warning: true
  postfix/recipient_delim: +
* postfix/main_mailer_type: No configuration
  postfix/transport_map_warning:
  postfix/kernel_version_warning:
  postfix/chattr: false
  postfix/root_address:
  postfix/mydomain_warning:
  postfix/destinations:
  postfix/nqmgr_upgrade_warning:
  postfix/not_configured:
  postfix/mailbox_limit: 0



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to