Postfix

Notes for my Postfix mail gateway

Configuring Sendmail on other boxen to use my gateway

  1. close off iptables SMTP to anything other than babar
  2. allow localhost outbound, allow SMTP to babar, block any other SMTP outbound, allow everything else outbound
     -A OUTPUT -o lo -j ACCEPT
     -A OUTPUT -p tcp --dport 25 -d babar.seattlecentral.edu -j ACCEPT
     -A OUTPUT -p tcp --dport 25 -j REJECT --reject-with tcp-reset
     -A OUTPUT -j ACCEPT
  3. make sure you have the sendmail-cf package installed
     yum install sendmail-cf
  4. Put this in /etc/mail/sendmail.mc

     define(`SMART_HOST', `babar.seattlecentral.edu')dnl
  5. run make in /etc/mail

  6. restart sendmail, ala "/etc/rc.d/init.d/sendmail restart".

  7. test


Postfix (last edited 2009-07-15 22:45:33 by dmartin)