How to configure sendmail/postfix to relay or forward emails via an SMTP server
- Uninstall sendmail
- Install postfix
yum install postfix
# or
apt-get install postfix
- Configure postfix
sudo vim /etc/postfix/main.cf
Add:
relayhost = smtp.devil.com
yum install postfix
# or
apt-get install postfix
sudo vim /etc/postfix/main.cf
Add:
relayhost = smtp.devil.com