Email Hosting คืออะไร?
Email Hosting คือบริการที่ให้คุณมี email address ที่ใช้ชื่อโดเมนของตัวเอง เช่น [email protected] แทนที่จะใช้ [email protected] ซึ่งดูเป็นมืออาชีพกว่ามาก
Shared Hosting ส่วนใหญ่มาพร้อม Email Hosting ในตัว ทำงานบน mail server เดียวกับ web server และจัดการผ่าน cPanel ได้ง่าย รองรับโปรโตคอล IMAP, POP3 และ SMTP มาตรฐาน ทำให้ใช้ได้กับ email client ทุกโปรแกรม
สร้าง Email Account ใน cPanel
- เข้า cPanel > Email > Email Accounts
- คลิก "Create" หรือ "+ Create"
- กรอก Username (เช่น
info,contact,sales) - เลือก Domain (ถ้ามีหลาย domain)
- ตั้ง Password ที่แข็งแรง
- กำหนด Storage Space หรือปล่อย Unlimited
- คลิก Create
Email address ที่ได้จะเป็น [email protected]
ข้อมูล IMAP/SMTP ของ cPanel
# ข้อมูล Incoming Mail (IMAP)
Server: mail.yourdomain.com
Port: 993 (SSL/TLS) หรือ 143 (STARTTLS)
Security: SSL/TLS
Username: [email protected]
Password: รหัสผ่านที่ตั้ง
# ข้อมูล Incoming Mail (POP3) - ทางเลือก
Server: mail.yourdomain.com
Port: 995 (SSL/TLS) หรือ 110 (ไม่เข้ารหัส)
Security: SSL/TLS
# ข้อมูล Outgoing Mail (SMTP)
Server: mail.yourdomain.com
Port: 465 (SSL/TLS) หรือ 587 (STARTTLS)
Security: SSL/TLS หรือ STARTTLS
Authentication: Required (ใส่ username/password)
Username: [email protected]
Password: รหัสผ่านที่ตั้ง
ตั้งค่าบน Gmail (Add Other Account)
Gmail สามารถรับและส่ง email จากบัญชีภายนอกได้โดยไม่ต้องเปิด email client อื่น
ขั้นตอนเพิ่ม email account ใน Gmail
- เปิด Gmail > Settings (ไอคอนเฟือง) > See all settings
- ไปที่แท็บ "Accounts and Import"
- ใน "Check mail from other accounts" คลิก "Add a mail account"
- กรอก email address:
[email protected]แล้ว Next - เลือก "Import emails from my other account (POP3)" แล้ว Next
- กรอกข้อมูล:
- Username:
[email protected] - Password: รหัสผ่าน email
- POP Server:
mail.yourdomain.com - Port: 995
- เลือก "Always use a secure connection (SSL)"
- Username:
- คลิก Add Account
- เลือก "Yes, I want to be able to send mail as [email protected]"
- กรอกข้อมูล SMTP:
- SMTP Server:
mail.yourdomain.com - Port: 587
- Username:
[email protected] - Password: รหัสผ่าน email
- เลือก TLS
- SMTP Server:
- คลิก Add Account > รับ verification code จาก email แล้วกรอก
ตั้งค่าบน Microsoft Outlook
Outlook สำหรับ Windows/macOS
- เปิด Outlook > File > Add Account
- กรอก email:
[email protected] - คลิก Advanced options > Let me set up my account manually
- เลือก IMAP
- กรอกข้อมูล Incoming Mail:
- Server:
mail.yourdomain.com - Port: 993
- Encryption: SSL/TLS
- Server:
- กรอกข้อมูล Outgoing Mail:
- Server:
mail.yourdomain.com - Port: 587
- Encryption: STARTTLS
- Server:
- กรอก Password แล้วคลิก Connect
ตรวจสอบ Email ทำงานถูกต้อง
# ตรวจสอบ MX record ของโดเมน
dig yourdomain.com MX +short
# ทดสอบ SMTP connection
telnet mail.yourdomain.com 587
# หรือใช้ curl ทดสอบ SMTP
curl -v --ssl-reqd \
--mail-from "[email protected]" \
--mail-rcpt "[email protected]" \
--upload-file /dev/null \
smtp://mail.yourdomain.com:587 \
--user "[email protected]:yourpassword"
# ตรวจสอบ IMAP connection
curl -v imaps://mail.yourdomain.com:993 \
--user "[email protected]:yourpassword"
แก้ปัญหาที่พบบ่อย
Error: "Authentication failed" — Login ไม่ได้
Username หรือ Password ไม่ถูกต้อง หรือ SMTP authentication ไม่ได้เปิดใช้งาน
# ตรวจสอบ:
# 1. Username ต้องเป็น full email address: [email protected]
# 2. Password ต้องตรงกับที่ตั้งใน cPanel > Email Accounts
# 3. ถ้าใช้ Gmail อาจต้องเปิด "Less secure app access" หรือใช้ App Password
# 4. ตรวจสอบว่า SSL/TLS port ถูกต้อง (993 สำหรับ IMAP, 587 สำหรับ SMTP)
Error: "Can't send email" — ส่งออกไม่ได้
SMTP port ถูก block หรือ outgoing email ถูก spam filter block
# ทดสอบว่า port 587 เปิดอยู่
nc -zv mail.yourdomain.com 587
# ถ้า port 587 ถูก block ลอง port 465 แทน
# Port 465: SSL/TLS (direct secure connection)
# Port 587: STARTTLS (upgrade จาก plaintext)
# ตรวจสอบว่า IP ของ hosting ไม่ได้อยู่ใน blacklist
# เข้า https://mxtoolbox.com/blacklists.aspx
# กรอก IP address ของ mail server
Email ถูกส่งเข้า Spam folder
Email ที่ส่งจาก hosting ส่วนตัวมักถูก spam filter กรอง เพราะไม่มี SPF/DKIM/DMARC records
# ตรวจสอบ SPF record
dig yourdomain.com TXT | grep spf
# เพิ่ม SPF record ใน DNS (ใน cPanel > Zone Editor)
# Type: TXT
# Name: yourdomain.com
# Value: "v=spf1 include:yourhostingspf.com ~all"
# (ดูค่าที่ถูกต้องจาก hosting provider)
# ตั้งค่า DKIM ใน cPanel > Email > Email Deliverability
# คลิก Repair เพื่อให้ cPanel ตั้งค่า DKIM ให้อัตโนมัติ
Error: "Certificate error" เมื่อเชื่อมต่อ mail server
SSL certificate ของ mail server ไม่ match กับ hostname ที่ใช้
# mail.yourdomain.com อาจไม่มี SSL certificate ตรงๆ
# ลองใช้ hostname ของ server แทน เช่น
# server123.hostingprovider.com
# หรือเข้า cPanel > Email > Email Accounts
# คลิก Connect Devices เพื่อดูข้อมูล connection ที่ถูกต้อง
# ระบบจะแนะนำ server hostname ที่มี valid SSL
คำถามที่พบบ่อย
IMAP กับ POP3 ควรใช้อันไหน?
แนะนำ IMAP เสมอ เพราะ IMAP เก็บ email บน server และซิงค์กับทุกอุปกรณ์ ถ้าอ่านบนมือถือ email จะถูกทำเครื่องหมายว่าอ่านแล้วบน PC ด้วย POP3 เหมาะสำหรับกรณีต้องการดาวน์โหลด email มาเก็บบนเครื่องเดียวและลบจาก server
Email Hosting จาก Hosting Provider ดีพอไหม หรือควรใช้ Google Workspace?
สำหรับบริษัทขนาดเล็กหรือเว็บส่วนตัว Email Hosting จาก cPanel เพียงพอมาก ส่วน Google Workspace เหมาะสำหรับทีมงานที่ต้องการ Shared Calendar, Drive, Meet และเครื่องมือ collaboration ราคา 6 USD/user/เดือนขึ้นไป
Email Quota เต็มทำอย่างไร?
ลบ email เก่าที่ไม่ต้องการ โดยเฉพาะ email ที่มีไฟล์แนบขนาดใหญ่ หรือขยาย quota ใน cPanel > Email Accounts > Manage > Storage Space นอกจากนี้ควรตั้งค่า auto-delete สำหรับ trash และ spam folder ให้ลบอัตโนมัติทุก 30 วัน