Postfix
Notes for my Postfix mail gateway
To regenerate the aliases db, run newaliases.
Generic db generator is postmap.
- I've created a Makefile in /etc/postfix which updates the aliases db and the allowed_recipients db.
Configuring Sendmail on other boxen to use my gateway
- close off iptables SMTP to anything other than babar
- 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
- make sure you have the sendmail-cf package installed
yum install sendmail-cf
Put this in /etc/mail/sendmail.mc
define(`SMART_HOST', `babar.seattlecentral.edu')dnl
run make in /etc/mail
restart sendmail, ala "/etc/rc.d/init.d/sendmail restart".
- test
