Configuring outgoing email for sendmail and postfix

Configuring sendmail on VM at CSE

  1. yum -y install sendmail-cf,
  2. cd /etc/mail,
  3. In
    • Enable SMART_HOST and set to
    • Disable EXPOSED_USER (root)
    • Enable MASQUERADE_AS and set to
    • Enable FEATURE masquerade_envelope
    • Disable MAILER procmail
  4. ./make,
  5. service sendmail restart,
  6. Check /var/log/maillog and destination mailbox

PostFix on a VM

  • If IPv6 is disabled, in /etc/postfix/ change inet_protocols to ipv4
  • In /etc/postfix/, may need to set relayhost to [] for CSE