วันนี้นั่งแก้ปัญหา 550 Sender Verify Failed สรุปแล้ว ยังไม่รู้ว่าปัญหาเกิดจากจุดไหนกันแน่ เพราะมีหลายกรณีที่เกิดขึ้นได้ ตั้งแต่
- Domain Keys กับ SPF Record ที่ใช้ในการส่งเมล์
- cPanel Issue
ปัญหาของเราเกิดแค่เวลาส่งออกจากโดเมน JOMYUT.NET ไปยัง groups.jomyut.net ซึ่งทำงานอยู่คนละเซิร์ฟเวอร์กัน สรุปตอนนี้หายแล้ว แต่หาสาเหตุไม่ได้ :S สิ่งที่แก้ไขไปมีดังนี้
- เอา Domain Keys ของ jomyut.net ออกไป
- เปลี่ยน SPF Record ของ jomyut.net จาก version 2 -> version 1
- groups.jomyut.net. NS ns1.hostbery.com (ชี้ไป query จาก mail server อีกที)
- groups.jomyut.net. MX 10 groups.jomyut.net. (ทำ Cache)
- เปลี่ยน hostmaster fields ใน DNS เป็น เหมือนกับ ns1.hostbery.com
- cPanel สลับไปมา ระหว่าง Always Accept Local mail (จาก Issue ที่เขาแก้ได้ในเนต)
- cPanel เปลี่ยน MX Record ของ groups.jomyut.net. priority 0 เป็น priority 10
- DirectAdmin (jomyut.net) เซต new Zone สำหรับ groups.jomyut.net point ไปที่ us1.hostbery.com
สักพักก็ใช้ได้. อืมมมม งงๆแฮะ
ปกติ Ubuntu จะใช้คำสั่ง service ไม่ได้ วิธีการ Follow ดังนี้
1. ติดตั้ง Package : root# aptitude install sysvconfig
จากนั้น ทำการสร้าง Symbolic link
2. ln -s /usr/sbin/service /sbin/service
เสร็จเรียบร้อย
กรณีนี้ใช้แก้ปัญหาของ Directadmin ใน System Monitor ไม่สามารถ Start/stop service ได้
Current version of DirectAdmin (a hosting control panel software) didn’t build a php compiler with IMAP features, if you would like to compile custom PHP compiler to install web application such as eTicket, osTicket, SugarCRM and so on… you can build by DirectAdmin script as below
- For Apache 1 with no suPHP, configuration file at /usr/local/directadmin/custombuild/configure/ap1
- For Apache 2 with no suPHP, configuration file at /usr/local/directadmin/custombuild/configure/ap2
- For Apache with suPHP, configuration file at /usr/local/directadmin/custombuild/configure/suphp
Edit configuration up on your PHP compiler version, for me use configure.php5. Insert into the last line
"–with-imap-ssl" \
"–with-imap"
Save and quit.
Now, install some library may needs to compile new PHP compiler. For Ubuntu use below command
# sudo apt-get install libc-client-dev libc6-dev ca-certificates
Now, build new PHP compiler
# cd /usr/local/directadmin/custombuild/
# ./build php d
Try <?php phpinfo(); ?> on your web server, you should see imap extension.
วันนี้ทำการติดตั้ง suPHP กับ DirectAdmin ต้องเปลี่ยน PHP จาก CLI -> CGI แล้วก็ปรับ Mode ของ Directory ที่มีอยู่ รายละเอียดมีดังนี้
- cd /usr/local/directadmin/custombuild/
- ./build update
- ./build clean
- ./build suphp
- แก้ไขไฟล์ options.conf
-> เปลี่ยน PHP จาก CLI -> CGI
- ./build php
- เสร็จแล้ว ก็ไปปรับ Directory ห้าม Mode เกิน 755 และ User ของไฟล์ PHP จะต้องเป็น user:user