เซิร์ฟเวอร์เครื่องนี้ ติดตั้ง Gentoo + Qmail นะครับ แต่ว่า อยู่มาวันหนึ่ง มีปัญหาเกิดขึ้นมากมาย เนื่องจากว่า dns ที่ไปฝากไว้ เขาเกิดเปลี่ยนที่อยู่กระทันหัน และมีสาเหตุอีกหลายๆ ประการครับ ซึ่งข้อความแสดงข้อผิดพลาดนี้ เกิดจากการใช้เว็บเมลล์ที่ชื่อว่า squirrelmail ในการส่งครับ ซึ่งทีแรกก็นึกว่า dns จะมีปัญหา เพราะพึ่งอัพเสร็จ
ปัญหาก็คือ ข้างนอกสามารถส่งเมลล์เข้ามาหาเราได้ แต่ว่า เราไม่สามารถส่งเมลล์ออกสู่ภายนอกได้เลยครับ
Hi. This is the qmail-send program at myhost.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[email protected]>: Sorry, I couldn't find any host named gmail.com. (#5.1.2)
Received: (qmail 19339 invoked from network); 14 Feb 2007 16:48:55 +0000 Received: from unknown (HELO www.myhost.org) (127.0.0.1)
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
ดูจากลักษณะข้อผิดพลาดทั้งหมด ก็พบว่า ผมต้องไปแก้ตัว squirrelmail ตรงเมนู smtp server จากเดิมที่เป็น
localhost:25
ก็แก้ให้เป็น
mail.myserver.org:25
โดย mail.myserver.org ต้องเป็น mx record ของ dns ครับ ซึ่งตอนที่เจอปัญหา เจอบรรทัดนี้แหละถึงรู้ว่าต้องแก้ที่จุดไหนนะ
(HELO www.myhost.org) (127.0.0.1)
:-)
ไม่มีความเห็น