Package: postfix
Version: 2.3.7-1
Severity: normal
Tags: patch

If postfix/root_address is empty, I get a broken aliases file. The
patch below fixes it.

--- postfix.postinst~   2007-03-02 09:24:19.000000000 +0100
+++ postfix.postinst    2007-03-02 09:42:46.000000000 +0100
@@ -129,7 +129,7 @@
 add_root_alias() {
     db_get postfix/root_address && root_addr="$RET"
     ret=$(echo $RET | tr '[A-Z]' '[a-z]')
-    if [ "$ret" != "none" ] || [ -z "$ret"] ; then
+    if [ "$ret" != "none" ] || [ ! -z "$ret"] ; then
        echo "adding root: $RET alias"
        echo "root:     $RET" >> /etc/aliases
        echo "adding postmaster: $RET alias"


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)


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

Reply via email to