หากคุณใช้งาน RBLs เช่น spamhaus.org บนระบบ ZIMBRA เพื่อทำการ block spam บางครั้งคุณจะพบปัญหาว่า mail server ลูกค้าโดน black list จากระบบ RBLs และไม่สามารถส่งหาระบบเราได้ เนื่องจากโดนตรวจสอบว่าเข้าข่าย spam จึงได้ทำการเพิ่มเข้าไปใน black list ของระบบ
ถ้าหากต้องการให้ลูกค้าที่ติด blacklist ยังสามารถส่ง email เข้ามายังระบบเราได้ สามารถทำได้ตามขั้นตอนด้านล่างนี้ครับ
- ทำการสร้างไฟล์ /opt/zimbra/conf/postfix_rbl_override ด้วยคำสั่ง
vi /opt/zimbra/conf/postfix_rbl_override
ภายในสามารถใส่เป็น IP ของ mail server หรือ mail server name และตามด้วย “OK” ดังตัวอย่าง1.2.3.4 OK
หรือ
mail.ezymailhosting.com OK - รันคำสั่ง postmap เพื่อทำการ สร้างไฟล์ hash ที่ใช้สำหรับ postfix
postmap /opt/zimbra/conf/postfix_rbl_override
- แก้ไขไฟล์ /opt/zimbra/conf/postfix_recipient_restrictions.cf ใน ZIMBRA 7 และไฟล์ /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf สำหรับ ZIMBRA 8
ZIMBRA 7
vi /opt/zimbra/conf/postfix_recipient_restrictions.cf
ZIMBRA 8
vi /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf
ใต้คำว่า
reject_unauth_destinationให้เพิ่ม
check_client_access hash:/opt/zimbra/conf/postfix_rbl_overrideตัวอย่างเช่น
permit_mynetworks
reject_unauth_destination
check_client_access hash:/opt/zimbra/conf/postfix_rbl_override
reject_unlisted_recipient - ทำการ restart MTA server ด้วยคำสั่ง
zmmtactl restart
Recent Comments