Package: sendmail-bin Version: 8.14.1-2 Severity: important The postinst script contains a shell function stop () { ... } but this fails when using a Korn shell as /bin/sh, because it is normally defined as shell alias:
$ for a in ash bash dash mksh pdksh ksh93 zsh; do env me=$a $a -c 'stop () { echo $me works; }; stop'; done ash works bash works dash works mksh: syntax error: '(' unexpected pdksh: syntax error: (' unexpected ksh93: syntax error at line 1: (' unexpected zsh works The obvious fix is to change | stop () { into | stop_mta () { and adjust its uses accordingly, which is what I did. Maybe dash should be changed to warn if ksh-reserved words are used like this? I don't know. But the sendmail postinst script should be changed to allow using any bourne/posix compatible shell to be used as /bin/sh, as per Debian policy. PS: Don't look too much at the package-specific info below, I've configured sendmail differently than sendmailconfig wants. -- Package-specific info: Ouput of /usr/share/bug/sendmail-bin/script: ls -alR /etc/mail: /etc/mail: total 528 drwxr-sr-x 7 smmta smmsp 1024 2007-05-15 21:02 . drwxr-xr-x 55 root root 3072 2007-05-15 18:19 .. -rw-r----- 1 root root 372 2007-05-11 04:30 access -rw-r----- 1 root root 65536 2007-05-11 04:30 access.db -rw-r--r-- 1 root root 281 2007-05-11 15:39 address.resolve -rw-r----- 1 root root 3937 2007-05-15 04:02 aliases -rw-r----- 1 root root 49152 2007-05-15 04:03 aliases.db -rw-r--r-- 1 root root 3121 2007-05-15 03:06 databases -rw-r----- 1 root root 1086 2007-05-11 04:30 genericstable -rw-r----- 1 root root 65536 2007-05-11 04:30 genericstable.db -r--r--r-- 1 root root 5663 2007-05-11 04:30 helpfile -rw-r--r-- 1 root root 41962 2007-05-11 04:30 localhost.cf -rw-r----- 1 root root 456 2007-05-11 04:30 local-host-names drwxr-sr-x 2 smmta smmsp 512 2007-05-15 02:49 m4 -rw-r----- 1 root root 664 2007-05-11 04:30 mailertable -rw-r----- 1 root root 65536 2007-05-11 04:31 mailertable.db drwxr-xr-x 2 root root 512 2007-05-15 01:55 peers -rw-r----- 1 root root 596 2007-05-11 04:30 relay-domains drwxr-xr-x 2 root smmsp 512 2007-05-11 15:39 sasl -rw-r--r-- 1 root root 69884 2007-05-15 04:00 sendmail.cf -rw-r--r-- 1 root root 11879 2007-05-15 03:20 sendmail.conf -rw-r--r-- 1 root smmsp 0 2007-05-15 04:07 sendmail.mc -rw-r----- 1 root root 113 2007-05-11 04:30 service.switch -rw-r--r-- 1 root root 180 2007-05-11 15:39 service.switch-nodns -rw------- 1 root root 1024 2007-05-15 21:02 smrandom drwxr-sr-x 2 smmta smmsp 512 2007-05-15 02:49 smrsh -rw-r--r-- 1 root root 2227 2007-05-11 04:31 spamd.conf -rw-r--r-- 1 root root 42481 2007-05-15 21:01 submit.cf -rw------- 1 root root 1024 2007-05-15 21:02 surandom drwxr-xr-x 2 smmta smmsp 512 2007-05-15 02:59 tls -rw-r----- 1 root root 664 2007-05-11 04:30 trusted-users -rw-r----- 1 root root 725 2007-05-11 04:30 virtusertable -rw-r----- 1 root root 65536 2007-05-11 04:31 virtusertable.db /etc/mail/m4: total 4 drwxr-sr-x 2 smmta smmsp 512 2007-05-15 02:49 . drwxr-sr-x 7 smmta smmsp 1024 2007-05-15 21:02 .. -rw-r----- 1 root smmsp 0 2007-05-15 02:49 dialup.m4 -rw-r----- 1 root smmsp 0 2007-05-15 02:49 provider.m4 /etc/mail/peers: total 6 drwxr-xr-x 2 root root 512 2007-05-15 01:55 . drwxr-sr-x 7 smmta smmsp 1024 2007-05-15 21:02 .. -rw-r--r-- 1 root root 328 2007-05-11 15:39 provider /etc/mail/sasl: total 4 drwxr-xr-x 2 root smmsp 512 2007-05-11 15:39 . drwxr-sr-x 7 smmta smmsp 1024 2007-05-15 21:02 .. /etc/mail/smrsh: total 4 drwxr-sr-x 2 smmta smmsp 512 2007-05-15 02:49 . drwxr-sr-x 7 smmta smmsp 1024 2007-05-15 21:02 .. lrwxr-xr-x 1 root smmsp 26 2007-05-15 02:49 mail.local -> /usr/lib/sm.bin/mail.local lrwxr-xr-x 1 root smmsp 17 2007-05-15 02:49 procmail -> /usr/bin/procmail /etc/mail/tls: total 24 drwxr-xr-x 2 smmta smmsp 512 2007-05-15 02:59 . drwxr-sr-x 7 smmta smmsp 1024 2007-05-15 21:02 .. -rw-r--r-- 1 root smmsp 7 2007-05-15 02:59 no_prompt -rw------- 1 root smmsp 1191 2007-05-15 02:59 sendmail-client.cfg -rw-r--r-- 1 root smmsp 1237 2007-05-15 02:59 sendmail-client.crt -rw------- 1 root smmsp 1017 2007-05-15 02:59 sendmail-client.csr -rw------- 1 root smmsp 1675 2007-05-15 02:59 sendmail-common.key -rw------- 1 root smmsp 0 2007-05-15 02:59 sendmail-common.prm -rw------- 1 root smmsp 1191 2007-05-15 02:59 sendmail-server.cfg -rw-r--r-- 1 root smmsp 1237 2007-05-15 02:59 sendmail-server.crt -rw------- 1 root smmsp 1017 2007-05-15 02:59 sendmail-server.csr -rwxr--r-- 1 root root 3154 2007-05-15 03:05 starttls.m4 sendmail.conf: DAEMON_NETMODE="Dynamic"; DAEMON_NETIF="eth0"; DAEMON_MODE="None"; DAEMON_PARMS=""; DAEMON_HOSTSTATS="No"; DAEMON_MAILSTATS="No"; QUEUE_MODE="Daemon"; QUEUE_INTERVAL="10m"; QUEUE_PARMS=""; MSP_MODE="Cron"; MSP_INTERVAL="20m"; MSP_PARMS=""; MSP_MAILSTATS="${DAEMON_MAILSTATS}"; MISC_PARMS=""; CRON_MAILTO="root"; CRON_PARMS=""; LOG_CMDS="No"; HANDS_OFF="Yes"; AGE_DATA=""; DAEMON_RUNASUSER="No"; DAEMON_STATS="${DAEMON_MAILSTATS}"; MSP_STATS="${MSP_MAILSTATS}"; sendmail.mc: -- System Information: Debian Release: lenny/sid Architecture: kfreebsd-i386 (i686) Kernel: kFreeBSD 5.4-1-486 Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/mksh Versions of packages sendmail-bin depends on: ii libc0.1 2.5-7 GNU C Library: Shared libraries ii libdb4.5 4.5.20-3 Berkeley v4.5 Database Libraries [ ii libldap2 2.1.30-13.4 OpenLDAP libraries ii liblockfile1 1.06.1 NFS-safe locking library, includes ii libsasl2-2 2.1.22.dfsg1-10 Authentication abstraction library ii libssl0.9.8 0.9.8e-4 SSL shared libraries ii libwrap0 7.6.dbs-13 Wietse Venema's TCP wrappers libra ii sendmail-base 8.14.1-2 powerful, efficient, and scalable ii sendmail-cf 8.14.1-2 powerful, efficient, and scalable sendmail-bin recommends no packages. Versions of packages sensible-mda depends on: ii libc0.1 2.5-7 GNU C Library: Shared libraries ii procmail 3.22-16 Versatile e-mail processor Versions of packages rmail depends on: ii libc0.1 2.5-7 GNU C Library: Shared libraries ii libldap2 2.1.30-13.4 OpenLDAP libraries -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]