บทนำ
Sangfor SCP รองรับการตั้งค่า SMTP Server เพื่อใช้ในการส่ง Alert ผ่าน Email ทำให้ผู้ดูแลระบบสามารถติดตามสถานะการทำงานของ Cluster ได้ตลอดเวลา บทความนี้อธิบายวิธีการตั้งค่า SMTP Server บน SCP โดยใช้ Gmail เป็นตัวอย่าง
ข้อกำหนดเบื้องต้น
- ตั้งค่า DNS ให้กับ HCI และ SCP กรณีที่ SMTP Server เป็น URL (เช่น smtp.gmail.com)
- SCP และ HCI จะต้องสามารถเชื่อมต่อ Internet ได้ (เพื่อเข้าถึง SMTP Server)
- หาก SCP ไม่มีการตั้งค่า DNS จะสามารถใส่ได้เฉพาะ IP Address ของ SMTP Server เท่านั้น
ขั้นตอนการตั้งค่า SMTP Server บน SCP
ขั้นตอนที่ 1: เข้าสู่ระบบ SCP แล้วไปที่ Resources > Management > System > SMTP Server
ขั้นตอนที่ 2: กรอกข้อมูลดังนี้
- Sender Address: Email ที่ต้องการใช้ส่ง
- SMTP Server: smtp.gmail.com (หรือ SMTP Server อื่นที่ใช้งาน)
- Encryption Protocol: เลือกตามที่ SMTP Server รองรับ
- Port: 465 หรือ 587
- เปิดใช้งาน Authentication required แล้วกรอก Username (Email) และ Password
ขั้นตอนการสร้าง App Password สำหรับ Gmail
หากใช้ Gmail เป็น SMTP Server จะต้องสร้าง App Password เพื่อใช้แทน Password ปกติ โดยทำตามขั้นตอนดังนี้
ขั้นตอนที่ 1: ไปที่ https://support.google.com/mail/answer/185833?hl=en แล้วทำตามขั้นตอน
ขั้นตอนที่ 2: เปิดใช้งาน 2-Step Verification โดยไปที่ Google Account > Security > 2-Step Verification
ขั้นตอนที่ 3: เมื่อเปิด 2-Step Verification แล้ว ให้ Download application และทำการ sync ระหว่าง app กับโทรศัพท์
ขั้นตอนที่ 4: ไปที่ Security > How you sign in to Google > 2-Step Verification > App Passwords
ขั้นตอนที่ 5: เลือก App และ Device แล้วกด GENERATE
ขั้นตอนที่ 6: Copy password ที่ได้ไปใส่ในช่อง Password ของ Authentication required บน SCP แล้วกด Send Test Email เพื่อทดสอบ
การตั้งค่า Alert Notification บน HCI
หลังจากตั้งค่า SMTP Server บน SCP เรียบร้อยแล้ว สามารถตั้งค่าการแจ้งเตือนผ่าน Email บน HCI ได้ โดยไปที่ System > Alerts > Alert Notification
หมายเหตุ
- หาก Verification ด้วย Email Password ไม่ผ่าน ให้ลองใช้ Email Client Authorization Code แทน
- หาก SCP ไม่ได้ตั้งค่า DNS จะต้องใส่ IP Address ของ SMTP Server แทน URL
- สามารถตั้งค่า Recipient Email Address ได้ที่เมนู Resources > Monitor Center > Alerts > Alert Notifications
ข้อคิดเห็น
0 ข้อคิดเห็น
โปรด ลงชื่อเข้าใช้ เพื่อแสดงข้อคิดเห็น