BTW ... here's the changes I made to /etc/init.d/sendmail. Running "sendmail -L sm-msp-que -Ac" for the client ueue puts .pid file in /var/spool/clientmqueue instead of /var/run. The original script touched a /var/run/sm-client.pid and chowned it to smmsp (why not mail?), but since it didn't contain the PID #, the stop script failed. I commented out those two lines and added a mv and chmod line of my own, after the daemon function call. Here:
if ! test -f /var/run/sm-client.pid ; then
gprintf "Starting sm-client: "
# touch /var/run/sm-client.pid # <-- HERE
# chown smmsp:smmsp /var/run/sm-client.pid # <-- HERE
daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
$([ -n "$QUEUE" ] && echo -q$QUEUE)
RETVAL=$?
sleep 5
mv /var/spool/clientmqueue/sm-client.pid /var/run # <-- HERE
chown mail:mail /var/run/sm-client.pid # <-- HERE
echo
I think it still has a problem on systems running the client only daemon (DAEMON=no in /etc/sysconfig/sendmail), so I still have to work on that. Oh, and I made another change. The /etc/init.d/sendmail script wasn't checking the DAEMON variable, so it was starting the listening process no matter what. So I added a "[ $DAEMON = "yes" ] &&" in a couple of spots:
[ $DAEMON = "yes" ] && gprintf "Starting %s: " "$prog"
/usr/bin/newaliases > /dev/null 2>&1
if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
make -C /etc/mail -s
else
for i in virtusertable access domaintable mailertable ; do
if [ -f /etc/mail/$i ] ; then
makemap hash /etc/mail/$i < /etc/mail/$i
fi
done
fi
[ $DAEMON = "yes" ] && daemon /usr/sbin/sendmail -bd \
$([ -n "$QUEUE" ] && echo -q$QUEUE)
That's it.
Cory wrote:
I could use some help with msec. I found in the documentation how you can use the /etc/security/msec/perm.local file to allow for modifying permissions of a file. My problem is with modifying a file. I've got a firewall running at security level 3. I want to modify some files like /etc/syslogd.conf and /etc/issue{.net}; However, msec keeps "undoing" my changes.
Any help would be greately appreciated.
Thanks,
Cory
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com