Menu

#1 Sendmail 8.12.x modification of /etc/rc.d/init.d/sendmail

open
nobody
5
2005-01-27
2005-01-27
Wes Kozeny
No

I believe I have no more than two general problems. I'm
running:
RedHat Linux 9.0
Sendmail version 8.12.8
ClamAV as a milter from Sendmail
SpamAssassin

mail log on start up indicates - no reference to the
database:
Jan 26 15:19:52 ns2 MailScanner[4569]: MailScanner E-
Mail Virus Scanner version 4.37.7 starting...
Jan 26 15:19:52 ns2 MailScanner[4569]: Config: calling
custom init function MailWatchLogging
Jan 26 15:19:54 ns2 MailScanner[4569]: Enabling
SpamAssassin auto-whitelist functionality...
Jan 26 15:19:55 ns2 MailScanner[4569]: Using locktype
= flock

Since I can see the MySQL header information in the
GUI for MailScanner, I believe MailScanner it is properly
accessing MySQL, just nothing there yet.

My /etc/rc.d/init.d/sendmail looks nothing like the one in
the install documentation. Thus, I am a bit uncertain
how to modify it to start the required two instances of
Sendmail. So my main problem is that MailScanner is
not in a position to work with the queues properly.
Here's the pertinent part of my /etc/rc.d/init.d/sendmail
file:

start() {
# Start daemons.

echo -n $"Starting $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 /usr/sbin/sendmail $([ "x$DAEMON" =
xyes ] && echo -bd) \ $([ -n "$QUEUE" ]
&& echo -q$QUEUE)
RETVAL=$?
echo
[ $RETVAL -eq 0 ] &&
touch /var/lock/subsys/sendmail

if \! test -f /var/run/sm-client.pid ; then
echo -n $"Starting sm-client: "
touch /var/run/sm-client.pid
chown smmsp:smmsp /var/run/sm-client.pid
daemon --check sm-client /usr/sbin/sendmail -

L sm-msp-queue -Ac \ -q$SMQUEUE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-
client
fi

return $RETVAL

}

stop() {
# Stop daemons.
echo -n $"Shutting down $prog: "
killproc sendmail
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -
f /var/lock/subsys/sendmail
if test -f /var/run/sm-client.pid ; then
echo -n $"Shutting down sm-client: "
killproc sm-client
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -
f /var/run/sm-client.pid
[ $RETVAL -eq 0 ] && rm -
f /var/lock/subsys/sm-client
fi
return $RETVAL
}

Any help would be greatly appreciated.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.