Site icon Learning & Doing

Cara Blok recepient / Mail sending out di postfix

— buat file sender_access

cd /etc/postfix

nano blacklisted_domains

— isi nya misal ( bisa untuk domain global , atau user account )

abusivecustomer.net REJECT
kucing@customer.net REJECT

 

— masukan ke Data Base

postmap /etc/postfix/blacklisted_domains

— edit / masukan line berikut di main.cf  ( tambahkan diawal baris )

nano /etc/postfix/main.cf

smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/blacklisted_domains, reject_non_fqdn_recipient,

 

— restart service

/etc/init.d/postfix restart

 

— test jika email ke  kucing@customer.net pasti di reject oleh server

Exit mobile version