หากตั้งกฎ forward ใน Outlook 365/Office 365 ส่งอีเมลทั้งหมดไป GMAIL หรือ external email account อื่น แตส่งไม่สำเร็จ error "Remote Server returned '550 5.7.520 Access denied, Your organization does not allow external forwarding" ให้อ่านต่อไปนี้เพื่อแก้ไขครับ
หลายเดือนก่อนผมเปิด auto-forward ใน Outlook 365 ส่งอีเมล Office 365 ทั้งหมดไป Gmail ทำงานได้ดีหลายเดือน แต่วันนี้กฎ forward หยุดทำงานโดยไม่มีเหตุผลชัดเจน พร้อม error:
"Delivery has failed to these recipients or groups: xxx@gmail.com Your message wasn't delivered because the recipient's email provider rejected it. Diagnostic information for administrators: Generating server: SN6PR0102MB3373.prod.exchangelabs.com @xxx.com Remote Server returned '550 5.7.520 Access denied, Your organization does not allow external forwarding. Please contact your administrator for further assistance. AS(7555)'"
วิธีแก้: Office 365 Forwarding Not Working Delivery failed Your organization does not allow external forwarding 550 5.7.520 Access Denied
Error นี้อาจเกิดจาก:
- เหตุผลที่ 1: เปิด email forwarding ให้มากกว่า 10 recipients แก้โดยสร้าง distribution group รวม recipients ไว้ แล้ว forward ไป distribution list แทน เพราะ Office 365 ไม่อนุญาต auto-forward ไปเกิน 10 email addresses
- เหตุผลที่ 2: Email forwarding ถูกปิด ใน Office 365 Outbound Spam filter policies แก้โดยเปิด email forwarding ใน Outbound Spam filter policies ด้วยวิธีด้านล่าง
วิธีที่ 1: แก้ไข Outbound Spam Filter Policy ใน Office 365 Admin Center
แก้ไข default antispam filter settings ใน Office 365 Admin center:
- Login Office 365 Admin center เปิด Office Security & Compliance (Protection settings > https://protection.office.com/homepage)
- ขยาย Threat Management ซ้ายมือ คลิก Policy
3. ใน Threat Policies คลิก Anti-spam

- ใน Anti-spam settings ขยาย Outbound spam filter policy คลิก Edit Policy *
* หมายเหตุ: หากต้องการเปิด external email forwarding สำหรับ user เฉพาะ ไปวิธีที่ 2

- ใน 'Outbound spam filter policy' settings ตั้งค่า Automatic Forwarding เป็น On-Forwarding is enabled คลิก Save

วิธีที่ 2: เปิด External Forwarding สำหรับ User เฉพาะใน Office 365
เปิด email forwarding สำหรับ mailboxes เฉพาะใน Office 365 anti-spam settings:
- ใน Office 365 antispam filter settings คลิก Create an outbound policy

- ตั้ง Name สำหรับ policy ใหม่ แล้ว:
ก. ตั้ง Automatic Forwarding เป็น On-Forwarding is enabled
ข. คลิก Add a condition

ค. เลือก Sender is แล้วเลือก users ที่จะ apply outbound policy ใหม่
ง. คลิก Save เสร็จ

วิธีที่ 3: แก้ไข Outbound Spam Filter Policy ผ่าน PowerShell ใน Office 365
เปิด email forwarding ใน Outbound Spam Filter policy ด้วย PowerShell ใช้คำสั่ง: *
- Set-HostedOutboundSpamFilterPolicy -Identity Default -AutoForwardingMode On
* หมายเหตุ: คำสั่งข้างต้นเปิด email forwarding ใน outbound spam filter policy ชื่อ "Default" (source: https://docs.microsoft.com/en-us/powershell/module/exchange/set-hostedoutboundspamfilterpolicy?view=exchange-ps)
เสร็จแล้ว! แจ้งมาได้เลยว่าคู่มือนี้ช่วยได้ไหมครับ โปรดกดไลก์และแชร์เพื่อช่วยคนอื่นๆ นะครับ