ปัญหาส่งเมลล์ครับ

คือใช้ php mail function แล้วเหมือนมันจะส่งได้แค่ hotmail และ gmail
ส่งไปที่ contact@domain.com ไม่ได้อ่ะครับ
โดยฝั่ง reciever ที่ลองเป็นระบบ google apps และ iceWarp ครับ
แต่ถ้า contact@domain.com เป็นตัวเองหรืออยู่ใน server เดียวกันไม่มีปัญหาอ่ะครับ

ดูเหมือนมันจะส่งเข้าหา email ที่ไม่ได้แก้ค่า mx ได้อ่ะครับ
น่าจะประมาณนั้นนะ

เช็ค mail ค้างจาก directadmin พบว่าไม่มีครับ
monitor การส่ง email ก้ขึ้นคำว่า Completed

ผมจะเริ่มเช็คจากจุดไหนดีครับ ส่งจาก interface ได้ปกติครับ
แต่ส่งด้วย php แล้วมีปัญหา

เพิ่มเติมนิดนึงครับ คือส่ง mail เข้า mail ที่เป็น google apps จาก directadmin ตอนสร้าง user อะไรแบบนี้ส่งได้ครับ
แต่ถ้าใช้ php mailer จะส่งไม่ได้อ่ะครับ

มันเข้าไปใน อีเมลย์ขยะเปล่าครับ.

Account ที่ใช้ googleapp ตั้งค่าถูกหรือเปล่าครับ

11 Uncheck the box beside Use this server to handle my emails.
If not, change the MX record and uncheck this option.
Then, click Save.

http://www.google.com/support/a/bin/answer.py?hl=en&answer=61162

แก้ตามที่ท่าน KKE บอกแล้วนะครับ mx ที่ผมใส่ไม่ตรงกับค่อยตรงกับ link ซะทีเดียว
ส่วน Uncheck the box beside Use this server to handle my emails. ทำไปตั้งแต่เมื่อคืนแล้วครับ

คือปัญหาตอนนี้เหมือนจะไม่ใช่ที่ส่งเมลล์โดยใช้ php คือผมลงส่งเมลล์จาก

test [at] neverdiehost.com ซึ่งเป็นระบบ email ธรรมดาของ directadmin โดยใช้ squirrelMail
ไปยัง test [at] samuiinsight.tv ซึ่งเป็นระบบ email ของ IceWarp ปรากฏว่าส่งไม่ได้ครับ

แต่ใช้ google apps, hotmail, gmail ส่งเข้า test [at] samuiinsight.tv ได้นะครับ
ส่วน error ที่ขึ้นเป็นแบบนี้


This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

host mail.samuiinsight.tv [61.19.248.23]: 501 5.7.1 <test@neverdiehost.com>…
Sender IP must resolve

เช็ค reverse dns ครับ

ขอบคุณมากๆ เลยครับ

ทำ reverse dns ตามที่ท่าน KKE บอกมาแล้วครับ
พบว่าส่งเมลล์ไปยัง info [at] starzsamui.co.th ด้วย squiremail ได้
แต่ส่งด้วย php ไม่ได้ เริ่มเช็คที่ตรงไหนดีครับ

ป.ล. nfo [at] starzsamui.co.th เป็น thmail ของ thnic นะครับ
ตรง local mail server ผมเอา
option นี้ออก

Use this server to handle my emails.
If not, change the MX record and uncheck this option

ถูกแล้วใช่ไหมครับ

ตอนลง DA ได้กำหนด hostname ตรงกับ hostname ของ server หรือป่าววเทออ

ดูใน /etc/sysconfig/network
และ Administrator Settings ใน da ตรงกันนะครับ
ต้องดูที่ตรงอื่นอีกหรือเปล่าครับ คุณหนึ่ง

ตอนนี้แก้ไขได้แล้วครับ พอดี hostname ของ server ไม่ตรงกับที่แจ้งทาง cat ให้ทำ reverse dns

เอ…ปัญหาจากโปรแกรม sendmail มากกว่ามั้งครับ เพราะ php mailer ใช้ sendmail program.