ms won't return from ssh

Eric H erich at OLYPEN.COM
Thu Sep 26 22:42:24 IST 2002


When I run a command like from mymachine:

mymachine# ssh myothermachine /usr/local/sbin/restart.sendmail

It will run the restart.sendmail script but it won't return back to
the prompt, or more importantly the other script which ordinarily calls
restart.sendmail.

cat /usr/local/sbin/restart.sendmail
# stop everything
killall -9 sendmail
killall -9 mailscanner

# start everything
# incoming sendmail
/usr/sbin/sendmail -bd -ODeliveryMode=queueonly
-OQueueDirectory=/var/spool/mqueue.in

# outgoing sendmail
/usr/sbin/sendmail -q5m

# mailscanner
#/usr/local/MailScanner/bin/check_mailscanner
/usr/local/MailScanner/bin/mailscanner /usr/local/MailScanner/etc/mailscanner.conf

However, this returns just fine, which is what I running before
implementing mailscanner:

#!/bin/bash
kill `head -1 /var/run/sendmail.pid`
sleep 3
/usr/sbin/sendmail -bd -q5m

Any ideas? I'm stumped. It has something to do with mailscanner, not
check_mailscanner. Version 3.22-13, btw.

Regards,
Eric



More information about the MailScanner mailing list