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

[cobalt-users] Re: Mailscanner and Sendmail "conflicting"



> Just to make sure I won't wreck the box, can you confirm this is about
> (backing up first, obviously !), copying the Mailscanner file found in
> /etc/rc.d/init.d/ and saving it under the name sendmail in that same dir ?

First, rename the sendmail script to something else:

SSH into RaQ as admin
su - root
cd /etc/rc.d/init.d
mv sendmail sendmail.orig

Then put the mailscanner script in its place:

cp mailscanner sendmail

> Won't it wreck anything else ? What if a process really needs to call
> sendmail, not Mailscanner, won't that cause some harm ?

The background processes are started at boot depending on the "run level" of 
the server. RaQ defaults to run level 3, so in /etc/rc.d/rc3.d are symbolic 
links to the startup scripts that are desired for that run level.  The 
symlinks all start with Sxx, where "S" means Start and xx are numbers to 
determine the sequence things are started in (FYI the "Kxx" scripts mean 
"kill process whatever at initiation of run level whatever" - so if you jump 
to another run level -- e.g., "init 1" for single user mode -- it will kill 
stuff that is running in run level 3 that's not supposed to be running at run 
level 1).  Sendmail is usually S80sendmail, but if you go to /etc/rc.d/rc3.d 
and do an "ls -lF" you'll see /etc/rc.d/rc3.d/S80sendmail is really just a 
link to /etc/rc.d/init.d/sendmail.

So by putting the mailscanner start script in place of the sendmail start 
script in /etc/rc.d/init.d, the symlink in /etc/rc.d/rc3.d remains in place 
but points to a script that actually starts mailscanner.

Sendmail still gets started, but as a by-product of the mailscanner process 
starting (I believe).