8 replies
by ivan
If You use Redhat or Mandrake:
1. rpm -q sendmail - print full name of sendmail pakage (ex: sendmail-8.9.3-20)
2. rpm -e sendamail-8.9.3-20 - erase sendmail pakage.
For disable sendmail just remove start script from /etc/rc.d/init.d (or /etc/init.d, relay your version Linux)
by vuitanh
First off congrats on choosing qmail myself I feel its a way more secure and flexible smtp AND POP server.
Once you start the install of qmail if you read through, as all people should, :) the README and INSTALL files you will come accross the instructions. It is as simple as just yanking the rpm's and calling it a day especially if you want the programs made to run with sendmail to still function properly. Lets face it most distros are built around sendmail being the smtp server.
this isa little excerpt from the instructions on removing sendmail from your box:
Read INSTALL.boot. You must replace the sendmail invocation in your boot scripts with an appropriate qmail invocation.
Kill the sendmail daemon. You should first kill -STOP the daemon; if any children are running, you should kill -CONT, wait, kill -STOP again, and repeat. If there aren't any children, kill -TERM and then kill -CONT.
Replace sendmail with a link to qmail's ``sendmail'' wrapper:
# mv /usr/lib/sendmail /usr/lib/sendmail.bak
# ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
Set up qmail-smtpd in /etc/inetd.conf (all on one line):
smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env
tcp-env /var/qmail/bin/qmail-smtpd
Reboot. (Or kill -HUPyour inetd and make sure the qmail daemons are running.)
Try to flush the sendmail queue:
# /usr/lib/sendmail.bak -q
You can safely run sendmail.bak -q (or even sendmail.bak -q15m) while qmail is running. Do this until the sendmail queue is empty.This may take several days.
Disable all the sendmail and binmail programs in your system. The safest approach is to chmod 0 everything. Some locations to check:
/usr/sbin/sendmail, /usr/lib/sendmail.bak,
/usr/lib/sendmail.mx, /bin/mail, /usr/libexec/mail.local.
Looks a little scary at first but if you just follow instructions the install should go real smooth for you.
Man it so feels good when you kill SendMail :^)
BTW where it says It is as simple as just yanking the rpm's should say:
It is not as simple as yanking RPMS and calling it a day.
Also check out http://www.inter7.com for some cool open source programs that work with qmail.
by vuitanh
by rob2000
If uninstalling the rpm is not what you want to do, you can kill the pid.
"ps x"
then look for sendmail it is almost always at 25. the next command you are to use is kill. to the left of the list is the # of the pid. at the command line it willlook like this "$kill 445" now do a "ps x" one more time if you see sendmail you did not get the right id of the pid.
the nice thing about this command is you can still have sendmail when you what it back with out mounting the cd and reinstallin the rpm.
this is a command that is used in all version that I know of .
happy computing.
by vuitanh
by vuitanh
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending