Archive for the ‘Administration’ Category


Blacklist and Whitelist with Amavisd

การทำ Blacklist และ Whitelist โดยการใช้ Amavisd ในระบบ ZIMBRA แทนการทำ Postfix Blacklist/Whitelist ขั้นตอนการ configure มีดังนี้ 1. ทำการแก้ไขไฟล์ /opt/zimbra/conf/amavis.conf.in และเพิ่มข้อความด้านล่างเข้าไป read_hash(\%whitelist_sender, ‘/etc/zimbra/whitelist’); read_hash(\%blacklist_sender, ‘/etc/zimbra/blacklist’); 2. สร้างไฟล์ whitelist, blacklist และ spamlovers ด้วยคำสั่ง # touch /etc/zimbra/whitelist # touch /etc/zimbra/blacklist 3. ใส่ email หรือ domain ไปยังไฟล์ที่ต้องการ block หรือ bypass ดังตัวอย่าง 3.1 Blacklist: เพิ่ม email หรือ domain ที่ต้องการ Block ไปยังไฟล์ […]


How to block external email from domains or individual email

วิธีการตั้งค่าให้ระบบ ZIMBRA ทำการ reject email จากภายนอกไม่ให้สามารถส่งเข้าไปยัง user ภายในระบบได้ หรือการทำ blacklist email สามารถทำตามขั้นตอนได้ดังนี้ 1. ตั้งค่า smtpd_sender_restrictions ดังตัวอย่างด้านล่าง ZIMBRA 7: รันคำสั่ง $ zmlocalconfig -e postfix_smtpd_sender_restrictions=”hash:/opt/zimbra/postfix/conf/postfix_reject_sender” ZIMBRA 8.0: เพิ่ม “client_sender_access hash:/opt/zimbra/postfix/conf/postfix_reject_sender” เข้าไปยังไฟล์ /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf ZIMBRA 8.5 และ 8.6: แก้ไขไฟล์ /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf โดยเพิ่มข้อความด้านล่างไปที่บรรทัดที่ 2 %%contains VAR:zimbraMtaSmtpdSenderRestrictions check_sender_access lmdb:/opt/zimbra/postfix/conf/postfix_reject_sender%% และรันคำสั่ง $ zmprov ms `zmhostname` +zimbraMtaSmtpdSenderRestrictions “check_sender_access lmdb:/opt/zimbra/postfix/conf/postfix_reject_sender” 2. สร้างไฟล์ /opt/zimbra/postfix/conf/postfix_reject_sender โดยที่ภายในไฟล์มีลิสต์ของ […]


How to change the recipient of the “daily report”

โดย default แล้ว ZIMBRA จะทำการส่ง email daily report ของระบบไปยัง email [email protected] แต่ถ้าหากต้องการแก้ไขให้ ZIMBRA ทำการส่ง daily report ของระบบไปยัง email อื่นแทน สามารถทำได้ดังนี้ รันคำสั่ง zmlocalconfig -e [email protected] โดยที่ [email protected] คือ email ใหม่ที่ต้องการให้ ZIMBRA ส่งหา ถ้าหากต้องการตรวจสอบดูว่าตอนนี้ได้ตั้งค่าให้ส่ง daily report ของระบบไปยัง email ไปยัง email อะไรก็สามารถใช้คำสั่ง zmlocalconfig smtp_destination


การกำหนด Whitelist/Blacklist บน ZIMBRA 8.5/8.6

ใน ZIMBRA 8.5 หรือใหม่กว่า ได้มีการเปลี่ยนแปลง configuration สำหรับการกำหนด blacklist และ whitelist ใหม่ ดังนั้นถ้าหากต้องการเพิ่ม whitelist/blacklist สามารถทำได้ดังนี้ Whitelist สร้างไฟล์ /opt/zimbra/conf/postfix_rbl_override เพิ่ม IP mail server หรือ hostname ของ mail server ที่ต้องการเพิ่มใน whitelist และตามด้วย “OK” ดังตัวอย่าง 1.2.3.4 OK หรือ mail.ezymailhosting.com OK รัน postmap เพื่อทำการสร้าง lmdb postmap /opt/zimbra/conf/postfix_rbl_override ทำการ apply config เข้าสู่ระบบ ZIMBRA ด้วยคำสั่ง zmprov mcf +zimbraMtaRestriction ‘check_client_access lmdb:/opt/zimbra/conf/postfix_rbl_override’ Blacklist […]


White list for ZIMBRA to bypass RBLs

หากคุณใช้งาน RBLs เช่น spamhaus.org บนระบบ ZIMBRA เพื่อทำการ block spam บางครั้งคุณจะพบปัญหาว่า mail server ลูกค้าโดน black list จากระบบ RBLs และไม่สามารถส่งหาระบบเราได้ เนื่องจากโดนตรวจสอบว่าเข้าข่าย spam จึงได้ทำการเพิ่มเข้าไปใน black list ของระบบ ถ้าหากต้องการให้ลูกค้าที่ติด blacklist ยังสามารถส่ง email เข้ามายังระบบเราได้ สามารถทำได้ตามขั้นตอนด้านล่างนี้ครับ


ปัญหาแสดงไม่เต็มจอ Zimbra Web Client 8.x และ Google Chrome

เมื่อ Google Chrome ได้ออก version ใหม่ออกมาเมื่อวันที่ 2 September 2015 ก็ทำให้ Zimbra Web Client version 8.6, 8.5, 8.0 มีการแสดงผลหน้าจอไม่ถูกต้อง คือ แสดงผลไม่เต็มจอในส่วนของ mail preview ซึ่งปัญหานี้เกิดทุก OS ไม่ว่าจะเป็น Mac, Linux และ windows ดังภาพ


How to fix “Error: Queue report unavailable – mail system is down”

หากระบบ Zimbra ไม่สามารถรับส่งเมล์ได้ แต่ webmail, POP, IMAP ยังสามารถทำงานได้ปรกติอยู่ และได้ทำการตรวจสอบ log พบ error “fatal: Queue report unavailable – mail system is down” ดังตัวอย่าง zimbra@zm:~$ tail /var/log/mail.log May 22 11:08:00 zcs postfix/postqueue[19195]: fatal: Queue report unavailable – mail system is down สาเหตุ


How to list members in distribution lists

Script สำหรับการลิสต์รายชื่อ user ที่อยู่ในทุก distribution list ที่อยู่ในระบบ โดยแสดงผลเป็นราย distribution list ดังตัวอย่าง ======= GROUP: dist1 ============= user1 ezy, [email protected] user3 ezy, [email protected] user5 ezy, [email protected] ======= GROUP: allgroup ============= administrator, [email protected] Peerapach, [email protected] ======= GROUP: dist2 ============= euro1, [email protected] euro2, [email protected] Script สำหรับการลิสต์รายชื่อ user ที่อยู่ในทุก distribution list ที่อยู่ในระบบ


How to resolves zmconfigd service can’t start on ZIMBAR 8.5

ถ้าหากท่านได้ทำการ install zimbra 8.5.0 บน Centos 7 หรือ Red Hat Enterprise 7 แล้ว zmconfigd ไม่สามารถ start ขึ้นมาใช้งานได้ ดังตัวอย่าง [zimbra@ezymailhosting ~]$ zmcontrol status Host mail.amarz.net amavis Running antispam Running antivirus Running dnscache Running ldap Running logger Running mailbox Running memcached Running mta Running opendkim Running proxy Running service webapp Running snmp Running spell Running stats […]


How to change HELO hostname

EHLO (หรือ HELO) เป็นการระบุตัวตนในการเชื่อมต่อครั้งแรกของ SMTP protocol และ zimbra สามารถที่จะเปลี่ยน EHLO (หรือ HELO) ไปยัง smtp server อื่นได้ และยังสามารถตั้ง banner สำหรับการตอบรับจาก smtp server หรือ client อื่นๆได้ อีกด้วย การเปลี่ยน HELO เข้าใช้งาน zimbra user su – zimbra เปลี่ยนค่า config zmlocalconfig -e postfix_smtp_helo_name = ‘mail.domain.com’ รันคำสั่งด้านล่างเพื่อให้สามารถใช้งานได้ทันที postconf -e smtp_helo_name = ‘mail.domain.com’ การเปลี่ยน greeting banner message เข้าใช้งาน zimbra user su […]