Block incoming mail using postfix
Mail Server : Redhat + Postfix
Mukadimah : Dalam kes aku, mail server aku biasanya di’attack’ dari.. hinet.com, dan yahoo.com.tw.
Tutorial :
- Edit atau tambah line baru dlm fail /etc/postfix/main.cf
smtpd_sender_restrictions = hash:/etc/postfix/access
reject_unauth_destination = hash:/etc/postfix/access
- Tambah domain yg ingin diblock dlm fail /etc/postfix/access
yahoo.com.tw REJECT
hinet.com REJECT
- pastukan run kan command ni.. postmap hash:/etc/postfix/access
- Done !

Leave a Reply