Remove sendmail with
# yum erase sendmail
Install Post fix
# rpm -Uvh postfix
Edit the file /etc/postfix/main.cf. Ensure that only the following inet interfaces line appears:
inet_interfaces = localhost