Author Topic: config exim ใน debian ให้ส่งเมลออกภายนอกได้  (Read 5443 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2141
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
config exim ใน debian ให้ส่งเมลออกภายนอกได้
ก็ไม่ใช่เรื่องยาก ครับ
ง่ายๆ แค่

1.เข้าใจการทำงานระบบเมล
2.เข้าใจเรื่อง dns
3.ทำการ config exim ใน debian

ผมขอข้ามไปข้อสามเลยละกันครับผม เพราะข้อ 1 และ 2 เป็นเรื่องพื้นฐานที่ ผู้ดูแลระบบต้องรู้อยู่แล้ว ^^

#dpkg-reconfigure exim4-config

เลือกเป็น
General type of mail configuration:  internet site; mail is sent and received directly using SMTP
system mail name : mail.xxx.com
IP-addresses to listen on for incoming SMTP connections:  127.0.0.1  #ตัวนี้คือ network interface ไหนที่จะให้ exim ไปผูกด้วย
Other destinations for which mail is accepted: mail.xxx.com  #ปลายทางจากที่ไหนบ้างที่จะให้รับค่า
Domains to relay mail for:  ไม่ต้องใส่ค่า <blank>   # ต้องการตั้งให้ domain ไหนมีการ relay บ่ ? ถ้าไม่มีก็ไม่ต้องใส่
Machines to relay mail for: ไม่ต้องใส่ค่า <blank>   # ต้องการตั้งให้ เครื่อง ไหนมีการ relay บ่ ? ถ้าไม่มีก็ไม่ต้องใส่
Keep number of DNS-queries minimal (Dial-on-Demand)?  NO
Delivery method for local mail:  Maildir format in home directory
Split configuration into small files?  : NO

เรียบร้อยแล้วก็จะ restart service exim ให้ 1 รอบโดยอัตโนมัติ
แล้วก็ลองเทสได้เลยครับผม ^^

log ดูได้จาก
#tail -f /var/log/exim/mainlog