We will use postfix to achieve this. In this example emails will be relayed through another existing mail server in your local network. 1. Remove sendmail and install postfix. yum remove sendmail
yum install postfix 2. Set postfix as the default Mail Transfer Agent. alternatives — set mta /usr/sbin/postfix If you get this error: ‘/usr/sbin/postfix has not been configured as an alternative for mta’ then…