Sendmail is a program that runs on most servers. Sendmail provides mail-transfer and delivery methods, including the Simple Mail Transfer Protocol (SMTP). However, it is not necessary to have this sendmail. For those who plan to install postfix as an alternative, the can just uninstall the sendamil service to avoid port conflict during installation. In this post i will show you the simple steps to remove sendmail service on CentOS 5.5.
[root@server ~]# yum remove sendmail Loaded plugins: fastestmirror Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package sendmail.i386 0:8.13.8-8.el5 set to be erased --> Processing Dependency: smtpdaemon for package: fetchmail --> Processing Dependency: smtpdaemon for package: mdadm --> Processing Dependency: smtpdaemon for package: mutt --> Processing Dependency: sendmail = 8.13.8-8.el5 for package: sendmail-cf --> Running transaction check ---> Package fetchmail.i386 0:6.3.6-1.1.el5_3.1 set to be erased ---> Package mdadm.i386 0:2.6.9-3.el5 set to be erased ---> Package mutt.i386 5:1.4.2.2-3.0.2.el5 set to be erased ---> Package sendmail-cf.i386 0:8.13.8-8.el5 set to be erased --> Finished Dependency Resolution Dependencies Resolved ========================================================================================== Package Arch Version Repository Size ========================================================================================== Removing: sendmail i386 8.13.8-8.el5 installed 1.3 M Removing for dependencies: fetchmail i386 6.3.6-1.1.el5_3.1 installed 1.3 M mdadm i386 2.6.9-3.el5 installed 1.8 M mutt i386 5:1.4.2.2-3.0.2.el5 installed 2.9 M sendmail-cf i386 8.13.8-8.el5 installed 925 k Transaction Summary ========================================================================================== Remove 5 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Erasing : fetchmail 1/5 Erasing : mdadm 2/5 Erasing : sendmail 3/5 warning: /var/log/mail/statistics saved as /var/log/mail/statistics.rpmsave Erasing : sendmail-cf 4/5 Erasing : mutt 5/5 Removed: sendmail.i386 0:8.13.8-8.el5 Dependency Removed: fetchmail.i386 0:6.3.6-1.1.el5_3.1 mdadm.i386 0:2.6.9-3.el5 mutt.i386 5:1.4.2.2-3.0.2.el5 sendmail-cf.i386 0:8.13.8-8.el5 Complete!