[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] how to auto-start mailscanner again



> After getting all the spam code configured in my sendmail.cf and it is
> correctly working, my mailscanner no longer starts. I manually started it
> with:
> cd /var/spool/mqueue
> rmdir q1 q2 q3 q4
> /etc/rc.d/init.d/mailscanner restart
>
> and it started correctly.
> My question is:
> Do I need to modify something to make sure mailscanner starts, if a
re-boot
> is necessary, or will it automatically re-start, as does sendmail?
>
> Thanks
>


On a few boxes that I have installed Mailscanner on.

chkconfig --level 35 sendmail off
/etc/rc.d/init.d/sendmail stop
mv /etc/rc.d/init.d/sendmail /etc/rc.d/init.d/sendmail.old
mv /etc/rc.d/init.d/Mailscanner /etc/rc.d/init.d/sendmail
/etc/rc.d/init.d/sendmail start
chkconfig --level 35 sendmail on

I do this so that when the Cobalt flips out about mail, it will restart
the correct one, and NOT restart just plain old sendmail.  If you do NOT
rename it, or create a symlink, it will just start the old sendmail, which
defeats what you set out to accomplish.

Thanks,
Brian