Configuring outgoing email for sendmail and postfix
Configuring sendmail on VM at CSE
- yum -y install sendmail-cf,
- cd /etc/mail,
- In sendmail.mc:
- Enable SMART_HOST and set to smtp.cse.unsw.edu.au
- Disable EXPOSED_USER (root)
- Enable MASQUERADE_AS and set to cse.unsw.edu.au
- Enable FEATURE masquerade_envelope
- Disable MAILER procmail
- ./make,
- service sendmail restart,
- Check /var/log/maillog and destination mailbox
PostFix on a VM
- If IPv6 is disabled, in /etc/postfix/main.cf change inet_protocols to ipv4
- In /etc/postfix/main.cf, may need to set relayhost to [smtp.cse.unsw.edu.au] for CSE