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 : 

  1. 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
     
     

  2. Tambah domain yg ingin diblock dlm fail /etc/postfix/access

    yahoo.com.tw                           REJECT
    hinet.com                                   REJECT 
     

  3. pastukan run kan command ni.. postmap hash:/etc/postfix/access
  4. Done !

~ by kill9pid on September 8, 2009.

Leave a Reply