1. How to reproduce: Install postfix v2.0.14 r54. Execute ``/sbin/SuSEconfig --module postfix'' as superuser, without /usr/sbin in PATH. (Or, simply examine /sbin/conf.d/SuSEconfig.postfix) 2. This is not working: SuSEconfig.postfix assumes, and does not verify, that postconf command is in its command search path. If the command is not found, SuSEconf returns successful exit code (0) after failing repeatedly to execute the command. If any executable file named postconf is in the command search path of the user who executes SuSEconfig, (e.g., $HOME/bin/postconf exists and is executable), SuSEconfig executes whichever postconf is found first, most likely with superuser privileges, and prepends any output from the command to /etc/postfix/main.cf. 3. Error messages and logfiles For clarity, I inserted an empty line before each command and indented all command output by four spaces. pmocek@hostname:~> uname -a Linux hostname 2.4.21-192-smp4G #1 SMP Wed Feb 18 19:27:48 UTC 2004 i686 i686 i386 GNU/Linux pmocek@hostname:~> rpm -q -i postfix Name : postfix Relocations: (not relocateable) Version : 2.0.14 Vendor: SuSE Linux AG, Nuernberg, Germany Release : 54 Build Date: Wed 15 Oct 2003 06:27:26 AM PDT Install date: Tue 02 Mar 2004 01:09:23 PM PST Build Host: G192.suse.de Group : Productivity/Networking/Email/Servers Source RPM: postfix-2.0.14-54.src.rpm Size : 6726357 License: IBM Public License Signature : DSA/SHA1, Wed 15 Oct 2003 06:32:48 AM PDT, Key ID a84edae89c800aca Packager : http://www.suse.de/feedback URL : http://www.postfix.org/ Summary : A fast, secure, and flexible mailer Description : Postfix aims to be an alternative to the widely-used sendmail program. Authors: -------- Wietse Venema TLS Extension: Lutz Jänicke Distribution: SuSE Linux 9.0 (i586) pmocek@hostname:~> echo $PATH /home/pmocek/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin pmocek@hostname:~> sudo /sbin/SuSEconfig --module postfix Starting SuSEconfig, the SuSE Configuration Tool... Running module postfix only Reading /etc/sysconfig and updating the system... Executing /sbin/conf.d/SuSEconfig.postfix... /sbin/conf.d/SuSEconfig.postfix: line 138: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 139: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 140: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 141: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 142: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 143: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 144: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 145: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 146: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 150: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 151: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 152: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 153: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 154: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 155: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 156: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 157: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 158: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 161: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 175: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 178: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 191: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 197: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 202: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 208: postconf: command not found Setting up postfix local as MDA... /sbin/conf.d/SuSEconfig.postfix: line 249: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 250: postconf: command not found Setting SPAM protection to "off"... /sbin/conf.d/SuSEconfig.postfix: line 307: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 308: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 309: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 310: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 311: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 312: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 321: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 339: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 356: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 368: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 375: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 383: postconf: command not found /sbin/conf.d/SuSEconfig.postfix: line 383: postconf: command not found Finished. pmocek@hostname:~> echo $? 0 pmocek@hostname:~> cat <$HOME/bin/postconf > #!/bin/sh > message="This is \$0. My UID is \$UID and my EUID is \$EUID. \$(date)" > echo "\$message" >>/tmp/demonstrate_suseconfig_postfix_bug > echo "# comment from \$0: \$message" > EOF pmocek@hostname:~> cat $HOME/bin/postconf #!/bin/sh message="This is $0. My UID is $UID and my EUID is $EUID. $(date)" echo "$message" >>/tmp/demonstrate_suseconfig_postfix_bug echo "# comment from $0: $message" pmocek@hostname:~> chmod +x $HOME/bin/postconf pmocek@hostname:~> cat /tmp/demonstrate_suseconfig_postfix_bug cat: /tmp/demonstrate_suseconfig_postfix_bug: No such file or directory pmocek@hostname:~> ~/bin/postconf # comment from /home/pmocek/bin/postconf: This is /home/pmocek/bin/postconf. My UID is 500 and my EUID is 500. Tue Apr 13 12:31:49 PDT 2004 pmocek@hostname:~> cat /tmp/demonstrate_suseconfig_postfix_bug This is /home/pmocek/bin/postconf. My UID is 500 and my EUID is 500. Tue Apr 13 12:31:49 PDT 2004 pmocek@hostname:~> head -n 3 /etc/postfix/main.cf # # ----------------------------------------------------------------------- # NOTE: Many parameters have already been added to the end of this file pmocek@hostname:~> sudo /sbin/SuSEconfig --module postfix Starting SuSEconfig, the SuSE Configuration Tool... Running module postfix only Reading /etc/sysconfig and updating the system... Executing /sbin/conf.d/SuSEconfig.postfix... Setting up postfix local as MDA... Setting SPAM protection to "off"... Finished. pmocek@hostname:~> echo $? 0 pmocek@hostname:~> head -n 3 /etc/postfix/main.cf comment from /home/pmocek/bin/postconf: This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 comment from /home/pmocek/bin/postconf: This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 comment from /home/pmocek/bin/postconf: This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 pmocek@hostname:~> cat /tmp/demonstrate_suseconfig_postfix_bug This is /home/pmocek/bin/postconf. My UID is 500 and my EUID is 500. Tue Apr 13 12:31:49 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 pmocek@hostname:~> PATH=/usr/sbin:$PATH pmocek@hostname:~> echo $PATH /usr/sbin:/home/pmocek/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin pmocek@hostname:~> sudo /sbin/SuSEconfig --module postfix Starting SuSEconfig, the SuSE Configuration Tool... Running module postfix only Reading /etc/sysconfig and updating the system... Executing /sbin/conf.d/SuSEconfig.postfix... Setting up postfix local as MDA... Setting SPAM protection to "off"... *** WARNING *** unknown parameter POSTFIX_ADD_MAILBOX_SIZE_LIMIT ignored *** WARNING *** *** WARNING *** unknown parameter POSTFIX_ADD_MESSAGE_SIZE_LIMIT ignored *** WARNING *** Finished. pmocek@hostname:~> echo $? 0 pmocek@hostname:~> head -n 3 /etc/postfix/main.cf comment from /home/pmocek/bin/postconf: This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 comment from /home/pmocek/bin/postconf: This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004 comment from /home/pmocek/bin/postconf: This is /home/pmocek/bin/postconf. My UID is 0 and my EUID is 0. Tue Apr 13 12:33:02 PDT 2004