Wednesday, 1 June 2011

How to remove Sendmail from linux OS?

Follow these simple steps to remove sendmail from your machine.

Step 1

Remove the default RPMS.

sendmail
sendmail-cf
sendmail-doc 
 

[root@local /root]# rpm -e sendmail sendmail-cf sendmail-doc 

If a dependency issue comes in, please use the following command.
error: removing these packages would break dependencies
  
[root@local /root]# rpm -e sendmail sendmail-cf sendmail-doc --nodeps 


Step 2


Ensure all the sendmail processes were removed completely. 
If not kill the process using the process ID.

[root@local /root]# ps -aux|grep 'sendmail'

You can use kill <processID> or killall sendmail to terminate all other processes.

1 comment: