[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4757: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4759: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4761: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
mvpskill.com | Forum • แสดงกระทู้ - การอนุญาติ ให้อุปกรณ์ต่างๆ ส่ง E-Mail ไปยังนอกองค์กร
หน้า 1 จากทั้งหมด 1

การอนุญาติ ให้อุปกรณ์ต่างๆ ส่ง E-Mail ไปยังนอกองค์กร

โพสต์โพสต์แล้ว: ศุกร์ 24 ม.ค. 2014 11:13 pm
โดย Tidtee St Litano
ว่ากันด้วยหลายๆ องค์กรคงมีระบบ E-mail ตัวเอง และมีอุปกรณ์ต่างๆ เช่น Printer, Wireless, Storage ฯลฯ อุปกรณ์เหล่านี้สามารถส่งสถานะออกไปผ่าน SMTP ได้
ถ้าส่ง SMTP ภายในองค์กรเอง ส่งได้สบายอยู่แล้ว แต่ถ้าออกไปยังนอกองค์กรล่ะ เช่น Outlook.com ฯลฯ ต้องทำอย่างไรมาดูกัน
exchange-2013-smtp-relay.png
exchange-2013-smtp-relay.png (13.1 KiB) เปิดดู 17049 ครั้ง

ขั้นแรกเลยเปิด Exchange Management Shell ขึ้นมาเลย (ตัวอย่างที่ผมทำนี้เป็น Exchange 2007 แต่คำสั่งใช้ได้ทุก Version ค๊าบบ)
Shell1.JPG
Shell1.JPG (46.23 KiB) เปิดดู 17049 ครั้ง

แล้วพิมพ์คำสั่งนี้ลงไปครับ หรือ Copy ไปก็ได้ครับ
New-ReceiveConnector -Name "xxxxx" -Usage Custom -PermissionGroups AnonymousUsers -Bindings <ip address> -RemoteIpRanges <ip address>

**** ตรง –Name คือชื่อ Receive connector ที่ต้องการจะตั้ง
**** ตรง –Bindings คิอ Ip address ของ SMTP Server หรือ Hub/Cas
**** ตรง –RemoteIpRanges คือ Ip address ของอุปกรณ์ที่ต้องการส่ง SMTP ออกไป ค๊าบบบบ

Shell2.JPG
Shell2.JPG (73.23 KiB) เปิดดู 17049 ครั้ง

หลังจาก สร้าง ReceiveConnector เรียบร้อยแล้ว ก็ต้องทำให้ Connect ตัวนี้ ปล่อยของออกด้านนอกได้ ตามด้านล่าง ค๊าบบบ

Get-ReceiveConnector "xxxx" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"

*** Get-ReceiveConnector "xxxx" คือ ชื่อ Receive Connect ที่เราสร้างที่ต้องการให้อุปกรณ์ ส่ง Mail ออกไปข้าง ค๊าบบบ
จากนั้น Enter ลงไป เบาๆ ที่ปุ่ม

จากนั้น Test ส่ง SMTP จากอุปกรณ์ โลดครับ

*** เพิ่มเติมอย่านำคำสั่งแก้ที่ default receive connector เพราะเป็นการ open relay ให้ผู้ไม่หวังดีอาศัย exchange ของเราเป็นเครื่องส่ง spam ได้ครับ

PS. เขียนครั้งแรกครับผิดพลาดยังไงขออภัยด้วย ค๊าบบ
Credit : K. Thanyapon Sananakin (อาจารย์ ตุ่น)