Senin, 19 Januari 2015

Rejecting Mail From Palsu

#nano  /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf

tambahkan check_sender_access hash:/opt/zimbra/conf/domainrestrict

#nano  /opt/zimbra/conf/domainrestrict

localdomain.com   REJECT You're not me!
anotherlocaldomain.com REJECT You're not me!
 
#/opt/zimbra/postfix/sbin/postmap  /opt/zimbra/conf/domainrestrict
 
#su zimbra
 
$zmmtactl stop

$zmmtactl start 

Done now test it :D
 
#telnet yourdomain.com 25 
 
HELO yourdomain.com 
 
mail from: user@localdomain.com 
 
rcpt to: user2@yourdomain.com 

554 5.7.1 <user@localdomain.com>: Sender address rejected: You're not me!

Blocking Domain Sender ZImbra Configure

#nano /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf 

Tambahkan hash:/opt/zimbra/postfix/conf/reject

# nano /opt/zimbra/postfix/conf/reject 

namadomaian.com REJECT

#/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/reject 

#su zimbra
 $zmmtactl stop && zmmtactl start