บทที่ 12 ไคลเอนต์, กรุ๊ปแวร์ และ CLI Admin: #pUsers

ตั้งค่า Outlook สำหรับ Windows: บัญชี Exchange ผ่าน MAPI over HTTP (ส่วนเสริมเซิร์ฟเวอร์) หรือ IMAP & CalDAV/CardDAV

ด้วยส่วนเสริมเซิร์ฟเวอร์ Outlook & ActiveSync® แบบเลือกเพิ่ม (+€99 / ปีต่อเซิร์ฟเวอร์ ตามคำขอ) Microsoft Outlook แบบคลาสสิกสำหรับ Windows (Microsoft 365 Apps, Outlook 2016 ถึง LTSC 2024) จะเชื่อมต่อโดยตรงในรูปแบบบัญชี "Exchange" ผ่าน Autodiscover และ MAPI over HTTP โดยอีเมล, ปฏิทิน, รายชื่อผู้ติดต่อ, งาน, บันทึกย่อ, สมุดที่อยู่ส่วนกลาง และการส่งอีเมลทำงานได้แบบเนทีฟโดยไม่ต้องใช้ add-in ใดๆ สำหรับ Thunderbird, eM Client รวมถึงระดับ Free หรือ Business (ที่ไม่ได้ใช้ส่วนเสริมเซิร์ฟเวอร์) สามารถใช้งาน IMAP/SMTP ร่วมกับ CalDAV และ CardDAV ได้ (ใน Outlook แบบคลาสสิกผ่าน add-in โอเพนซอร์ส CalDav Synchronizer) อุปกรณ์มือถือบน iOS และ Android เชื่อมต่อผ่าน Exchange ActiveSync (ส่วนเสริมเซิร์ฟเวอร์) หรือ IMAP ร่วมกับ CalDAV/CardDAV

เคล็ดลับการดำเนินงานและหมายเหตุสถาปัตยกรรม

โดยค่าเริ่มต้น ชื่อผู้ใช้คือที่อยู่อีเมลเต็ม (เปิดใช้งานได้ใน Admin: ชื่อผู้ใช้แบบสั้นหรือ DOMAIN\\username สไตล์ Exchange) หากเปิดใช้งานการลงชื่อเข้าใช้แบบสองปัจจัย (2FA) สำหรับบัญชี ให้เปิด Webmail -> Settings -> 2FA, Passkeys & Password -> Device & App Passwords, สร้างรหัสผ่านแอปเฉพาะสำหรับ Outlook และป้อนลงในที่ที่ Outlook หรือ CalDav Synchronizer ขอรหัสผ่าน เมื่อเลิกใช้งานแล็ปท็อป คุณจะเพิกถอนเฉพาะรหัสผ่านแอปนั้นอันเดียว

โหมดการเชื่อมต่อ & การตั้งค่าเซิร์ฟเวอร์โดยสรุป (MAPI/HTTP, IMAP/DAV & ActiveSync)

ชื่อโฮสต์คือชื่อเซิร์ฟเวอร์ของการติดตั้ง nextxch ของคุณ เช่น mail.company.com (Autodiscover ที่ autodiscover.company.com) สำหรับกล่องจดหมายที่โฮสต์บน mail.nextxch.com ให้ป้อน mail.nextxch.com

Reference / Configuration
A) Classic Outlook for Windows as an Exchange account (Outlook server add-on, on request)
   Account type:           Exchange (automatic via Autodiscover + MAPI over HTTP)
   Email / user name:      anna.weber@company.com (optionally DOMAIN\anna.weber or Kerberos)
   Password:               account password, App Password if 2FA is enabled
   Native scope:           mail, calendar, contacts, tasks, notes, GAL, free/busy, MailTips

B) IMAP/SMTP + CalDAV/CardDAV (Thunderbird, eM Client, or Free/Business without the server add-on)
   Incoming (IMAP):        mail.company.com   Port 993   Encryption: SSL/TLS
   Outgoing (SMTP):        mail.company.com   Port 465   SSL/TLS (or Port 587 STARTTLS)
   SMTP authentication:    required, same credentials as incoming (SPA: off)
   CalDAV / CardDAV:       https://mail.company.com/.well-known/caldav  and  /.well-known/carddav

C) Mobile iOS & Android (server add-on: Exchange ActiveSync · all tiers: IMAP + DAV)
   Exchange ActiveSync:    Server mail.company.com · Port 443 · SSL/TLS (push for mail, calendar, contacts, notes, tasks)
   Hosted mailboxes:       mail.nextxch.com instead of mail.company.com

1. Classic Outlook: บัญชี Exchange ผ่าน Autodiscover & MAPI over HTTP (ส่วนเสริมเซิร์ฟเวอร์)

ด้วยส่วนเสริมเซิร์ฟเวอร์ Outlook & ActiveSync® แบบเลือกเพิ่ม (+€99 / ปีต่อเซิร์ฟเวอร์ ตามคำขอ) Outlook แบบคลาสสิกสำหรับ Windows จะตั้งค่าบัญชีโดยอัตโนมัติผ่าน Autodiscover ส่วน Apple Mail, Calendar และ Contacts รวมถึง Outlook สำหรับ Mac จะใช้ EWS และอุปกรณ์มือถือจะใช้ Exchange ActiveSync

Reference / Configuration
1. Control Panel -> Mail (Microsoft Outlook) -> Show Profiles -> Add (or in Outlook: File -> Add Account)
2. Enter your name, email address (anna.weber@company.com), and password or App Password -> Next
3. Outlook discovers MAPI over HTTP (/mapi/emsmdb, /mapi/nspi) and EWS (/EWS/Exchange.asmx) automatically via autodiscover.company.com
4. Finish -> start Outlook (both Cached Exchange Mode and Online Mode are supported)

Supported capabilities (MAPI over HTTP + EWS):
  - Mail (Online & Cached Mode), inbox server rules, categories / labels
  - Calendar incl. recurring series, modified occurrences, meeting invitations & free/busy
  - Contacts incl. contact photos & Global Address List (NSPI / GAL)
  - Tasks plus writable StickyNotes (read, create, edit, move, copy) & custom Notes folders
  - Search Folders with live unread/item counts in the folder tree ("Unread Mail", "For Follow Up", saved searches) & Reminders
  - MailTips while composing (incl. internal GAL EX recipients, out of office, mailbox full, list member counts, external recipients)
  - Out-of-Office assistant (separate replies for internal and external audiences)
  - Send As and Send on Behalf with permission enforcement
  - Retention and Archive Tags ("Never archive", "Archive after N days", "Delete after N days")
  - Shared mailboxes, folder permissions, Online Archive, and Public Folders

2. Classic Outlook, Thunderbird หรือ eM Client: ตั้งค่าบัญชี IMAP (Free & Business)

หากไม่มีคีย์ Enterprise (หรือใน Thunderbird และ eM Client) ให้เชื่อมต่ออีเมลผ่าน IMAPS/SMTPS หาก autodiscover.<your-domain> หรือ autoconfig.<your-domain> ชี้มาที่เซิร์ฟเวอร์ ไคลเอนต์จะเสนอการตั้งค่า IMAP และ SMTP โดยอัตโนมัติ

Reference / Configuration
1. File -> Add Account -> enter the email address
2. Expand "Advanced options" -> "Let me set up my account manually" -> Connect
3. Choose account type "IMAP"
4. Incoming mail:  server mail.company.com · port 993 · encryption SSL/TLS
   Outgoing mail:  server mail.company.com · port 465 · encryption SSL/TLS
                   (or port 587 · encryption STARTTLS)
   Do NOT enable "Require logon using Secure Password Authentication (SPA)"
5. Enter the password or App Password -> Connect -> Done

Change later: File -> Account Settings -> Account Settings -> select account -> Repair / Change

3. ปฏิทิน, รายชื่อติดต่อ & งานใน classic Outlook โดยไม่มี Enterprise (CalDav Synchronizer)

CalDav Synchronizer เป็นส่วนเสริมโอเพนซอร์สฟรี (AGPL) สำหรับ Outlook แบบคลาสสิกสำหรับ Windows ซึ่งมีอยู่ที่ caldavsynchronizer.org เป็นโครงการอิสระ nextxch ไม่มีส่วนเกี่ยวข้องใดๆ สร้างโปรไฟล์การซิงค์หนึ่งโปรไฟล์สำหรับปฏิทิน รายชื่อติดต่อ และงาน

Reference / Configuration
1. Install CalDav Synchronizer and restart Outlook
2. Ribbon "CalDav Synchronizer" -> "Synchronization Profiles" -> "+" (add profile)
3. Choose profile type "Generic CalDAV/CardDAV"
4. Select the Outlook folder, e.g. "Calendar (This computer only)" of the IMAP account
   or a new, empty folder
5. Enter the DAV URL:
     Calendar:  https://mail.company.com/dav/calendars/anna.weber@company.com/default/
     Contacts:  https://mail.company.com/dav/addressbooks/anna.weber@company.com/default/
     Tasks:     https://mail.company.com/dav/calendars/anna.weber@company.com/tasks/
   Discovery: https://mail.company.com/.well-known/caldav
              https://mail.company.com/.well-known/carddav
6. Username:      anna.weber@company.com
   Password:      account password or App Password (with 2FA)
   Email address: anna.weber@company.com
7. "Test or discover settings" -> confirm connection and resource
8. Synchronization mode: "Outlook <-> Server (Two-Way)" · interval e.g. 5 minutes
9. Save with OK; repeat steps 2 to 8 for contacts and tasks

4. Protocol matrix by client & note on the new Outlook for Windows

สำคัญสำหรับอธิปไตยของข้อมูล: Outlook ใหม่สำหรับ Windows ซิงค์บัญชี IMAP ผ่านคลาวด์ของ Microsoft โดยประมวลผลข้อมูลประจำตัวและเนื้อหากล่องเมลบนเซิร์ฟเวอร์ของ Microsoft ด้วย Microsoft® Cloud Guard ในหน้าผู้ดูแลระบบ คุณสามารถตรวจจับและเลือกบล็อกการเข้าสู่ระบบแบบซิงค์คลาวด์ดังกล่าวต่อโดเมนหรือทั่วทั้งเซิร์ฟเวอร์ได้

Reference / Configuration
Client                              Mail                    Calendar, contacts, tasks & notes
----------------------------------  ----------------------  ---------------------------------------
Outlook for Windows (classic)       Exchange (MAPI/HTTP)    Exchange (MAPI/HTTP, incl. notes)
  without Enterprise (Free/Biz)     IMAP + SMTP             CalDAV/CardDAV (CalDav Synchronizer)
Outlook for Windows (new)           IMAP + SMTP (MS cloud)  not available (see Cloud Guard)
Outlook for iOS and Android         Exchange ActiveSync     Exchange ActiveSync
iPhone and iPad                     ActiveSync or IMAP      ActiveSync or CalDAV/CardDAV
Android (Gmail, Samsung, DAVx5)     ActiveSync or IMAP      ActiveSync or CalDAV/CardDAV (DAVx5)
macOS (Mail, Calendar, Contacts)    Exchange (EWS) or IMAP  Exchange (EWS) or CalDAV/CardDAV
Thunderbird / eM Client             IMAP + SMTP             CalDAV/CardDAV (built in)
Browser                             Webmail /mail/          Webmail /mail/

iPhone, iPad and macOS: setup profile via QR code or link, see chapter 10

การตั้งค่า ค่าเริ่มต้น และแนวปฏิบัติที่ดีที่สุด

การตั้งค่า / ตำแหน่ง คำอธิบาย ค่าเริ่มต้น แนวปฏิบัติที่ดีที่สุดในการผลิต
Exchange (MAPI over HTTP · Classic Outlook) Classic Outlook สำหรับ Windows (Microsoft 365 Apps, Outlook 2016 ถึง LTSC 2024) เชื่อมต่อบัญชีประเภท Exchange แบบเนทีฟผ่าน MAPI over HTTP และ EWS (ด้วยส่วนเสริมเซิร์ฟเวอร์แบบเลือกเพิ่ม): อีเมล, ปฏิทิน, รายชื่อผู้ติดต่อ, งาน, โน้ตช่วยจำแบบเขียนได้, สมุดที่อยู่ส่วนกลาง, สถานะว่าง/ไม่ว่าง, MailTips, การส่งในนาม (Send As) / การส่งแทน (Send on Behalf), โฟลเดอร์การค้นหาพร้อมจำนวนรายการแบบเรียลไทม์, แท็กการเก็บรักษา, กล่องจดหมายร่วม, คลังเก็บถาวรออนไลน์ และโฟลเดอร์สาธารณะ ใช้งานได้โดยไม่ต้องติดตั้ง add-in ใดๆ Server-Add-on · Autodiscover เพียงเพิ่มบัญชีด้วยที่อยู่อีเมลและรหัสผ่านของคุณ (หรือรหัสผ่านแอป / Kerberos); autodiscover.<your-domain> จะต้องชี้ไปที่เซิร์ฟเวอร์และต้องเปิดใช้งาน MAPI สำหรับโดเมนนั้น
Posteingang: IMAP, Port 993, SSL/TLS E-Mail, Ordner und Lesestatus über IMAPS mit TLS ab dem ersten Byte. Spezielle Ordner (Gesendet, Entwürfe, Papierkorb, Spam) werden vom Server über IMAP SPECIAL-USE angekündigt. 993 · SSL/TLS ใช้พอร์ต 993 กับ SSL/TLS พอร์ต 143 กับ STARTTLS เป็นเพียงตัวเลือกสำรองและต้องเปิดใช้งานแยกต่างหากในไฟร์วอลล์
Postausgang: SMTP, Port 465 (SSL/TLS) oder 587 (STARTTLS) การส่งสำหรับผู้ใช้ที่ตรวจสอบสิทธิ์แล้ว พอร์ต 465 เข้ารหัสทันที (implicit TLS); พอร์ต 587 เริ่มต้นด้วยข้อความธรรมดาและอัปเกรดเป็น TLS ผ่าน STARTTLS ก่อนการตรวจสอบสิทธิ์ 465 · SSL/TLS ใน Outlook ให้เปิดใช้งาน "เซิร์ฟเวอร์ขาออกของฉันต้องมีการตรวจสอบสิทธิ์" และใช้ข้อมูลประจำตัวเดียวกับจดหมายขาเข้า พอร์ต 25 สำหรับการส่งแบบเซิร์ฟเวอร์ต่อเซิร์ฟเวอร์เท่านั้น
Benutzername & App-Passwort (2FA) โปรโตคอลไคลเอนต์ทั้งหมดเข้าสู่ระบบด้วยอีเมลฉบับเต็ม (หรือชื่อผู้ใช้แบบสั้นหรือ DOMAIN\\username ตามเลือก) เมื่อเปิดใช้งาน 2FA รหัสผ่านปกติจะถูกปฏิเสธสำหรับโปรโตคอลไคลเอนต์ E-Mail-Adresse สร้างรหัสผ่านแอปแยกต่างหากต่ออุปกรณ์และโปรแกรม (Webmail -> การตั้งค่า -> 2FA, Passkeys & Password) เพื่อให้คุณสามารถเพิกถอนการเข้าถึงแต่ละรายการได้อย่างเฉพาะเจาะจง
CalDAV-Kalender: /dav/calendars/<adresse>/default/ Default calendar of the mailbox for CalDav Synchronizer, Thunderbird, and other CalDAV clients (VEVENT, including invitations and recurring series). https://<host>/dav/calendars/<adresse>/default/ ตรวจสอบด้วยปุ่ม "Test or discover settings" ใน CalDav Synchronizer หรืออีกทางเลือกหนึ่งคือ https://<host>/.well-known/caldav ก็เพียงพอเป็นจุดเริ่มต้นสำหรับการค้นหา
CardDAV-Kontakte: /dav/addressbooks/<adresse>/default/ Default address book of the mailbox (vCard 3.0/4.0) for CalDav Synchronizer, Thunderbird, macOS and DAVx5. https://<host>/dav/addressbooks/<adresse>/default/ ใช้โฟลเดอร์ผู้ติดต่อ Outlook เฉพาะสำหรับการซิงค์ เพื่อไม่ให้ผู้ติดต่อในเครื่องของบัญชีอื่นปะปนกัน การค้นหา: https://<host>/.well-known/carddav
CalDAV-Aufgaben: /dav/calendars/<adresse>/tasks/ รายการงาน (VTODO) ของกล่องจดหมาย รายการงานเดียวกับในเว็บเมลและบนโทรศัพท์ https://<host>/dav/calendars/<adresse>/tasks/ สร้างโปรไฟล์ที่สามใน CalDav Synchronizer และเลือกโฟลเดอร์งานของ Outlook
New Outlook · Microsoft® Cloud Guard Outlook ใหม่สำหรับ Windows ไม่รองรับ MAPI over HTTP รองรับ nextxch ผ่าน IMAP เท่านั้นโดยไม่มี CalDAV/CardDAV และส่งผ่านข้อมูลประจำตัวและอีเมลผ่านคลาวด์ของ Microsoft Microsoft® Cloud Guard ในหน้าผู้ดูแลระบบจะตรวจจับการเข้าสู่ระบบซิงค์คลาวด์ของ Microsoft ผ่าน IMAP, POP3, SMTP และ ActiveSync ต่อบัญชีและโดเมน และสามารถเลือกบล็อกต่อโดเมนหรือทั่วทั้งเซิร์ฟเวอร์ได้ Cloud Guard (/admin/) สำหรับอธิปไตยของข้อมูลและกรุ๊ปแวร์เต็มรูปแบบ ให้ใช้ Outlook แบบคลาสสิก (MAPI over HTTP หรือ CalDav Synchronizer), Thunderbird, eM Client หรือ nextxch Webmail (/mail/)