[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] zmailer script patch



Hi,

in ZMailer 2.99.56, if I configure smtpserver for multihoming
(by making smtpserver.conf a directory), smtpserver won't
start if the directory contains directories (such as "RCS").
The following patch should fix this (if it is not already
fixed in CVS):

------------ cut here ------------------ 8< ------------------
--- zmailer	2004/01/28 20:50:27	1.1
+++ zmailer	2004/03/23 06:39:47
@@ -190,12 +190,18 @@
                             fi
                             cd $MAILSHARE/smtpserver.conf
                             for serv in *; do
-                                SMTPOPTIONS_SAVE=$SMTPOPTIONS
-                                if [ -f .$serv ]; then
-                                    SMTPOPTIONS=`eval echo \`cat .$serv\``
-                                fi
-                                smtpserver $setZCONFIG $SMTPOPTIONS -C $serv -I .pid.smtpserver/$serv
-                                SMTPOPTIONS=$SMTPOPTIONS_SAVE
+                                if [ -f "$serv" ]; then	# not CVS, RCS, etc.
+				    case "$serv" in
+				    *,v) ;;
+				    *)			# not *,v either, ok
+					SMTPOPTIONS_SAVE=$SMTPOPTIONS
+					if [ -f .$serv ]; then
+					    SMTPOPTIONS=`eval echo \`cat .$serv\``
+					fi
+					smtpserver $setZCONFIG $SMTPOPTIONS -C $serv -I .pid.smtpserver/$serv
+					SMTPOPTIONS=$SMTPOPTIONS_SAVE
+				    esac
+				fi
                             done
                         fi
                         ;;
------------ cut here ------------------ 8< ------------------

Best regards,
-- 
Ambrose LI Cheuk-Wing  <a.c.li@ieee.org>

http://ada.dhs.org/~acli/
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi