ms won't return from ssh

Randy Fishel randyf at SIBERNET.COM
Thu Sep 26 23:21:48 IST 2002


  Your answer is in what the "-bd" option does in sendmail (or mostly,
what will happen if it is missing).

rf

>
> 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