สร้างไฟล์ header_checks /etc/postfix
-----------------------------------------------------------
/^To:.*domain\.co\.th/ OK
/^To:.*\.*/ REJECT You are not allowed to send mail outside the company.
/^Cc:.*domain\.co\.th/ OK
/^Cc:.*\.*/ REJECT You are not allowed to send mail outside the company.
/^Bcc:.*domain\.co\.th/ OK
/^Bcc:.*\.*/ REJECT You are not allowed to send mail outside the company.
-----------------------------------------------------------
#postmap /etc/postfix/header_checks
#vim /etc/postfix/main.cf
เพิ่ม header_checks = regexp:/etc/postfix/header_checks เข้าไปในไฟล์ main.cf
#/etc/init.d/postfix reload
#tail -f /var/log/mail.log ดู Log mail
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment