xirochanh
January 10th, 2011, 07:56 AM
I have an ubuntu box (server edition 10.10) installed on a PC at my home, behind a NAT - i guess, so I don't have a public IP as well as valid domain mapped to it.
Can I test the mail function of PHP? I like to test sending mail to yahoo, gmail...
I tried sendmail package, then the script take very long time to finish and got some errors like "no qualified domain name" in the /var/log/mail.err file.
Then, I tried postfix, which is supposed to replace totally sendmail. In php.ini file, sendmail_path is still /usr/sbin/sendmail -t -i. The mail() function return true immediately but without any message received. If I change to sendmail_path to /usr/sbin/postfix -t -i, mail function return false. I don't know where to catch error log of postfix
Any suggestion for my situation is highly appreciated. I need to test all functions before putting my server into data center.
Thanks
Can I test the mail function of PHP? I like to test sending mail to yahoo, gmail...
I tried sendmail package, then the script take very long time to finish and got some errors like "no qualified domain name" in the /var/log/mail.err file.
Then, I tried postfix, which is supposed to replace totally sendmail. In php.ini file, sendmail_path is still /usr/sbin/sendmail -t -i. The mail() function return true immediately but without any message received. If I change to sendmail_path to /usr/sbin/postfix -t -i, mail function return false. I don't know where to catch error log of postfix
Any suggestion for my situation is highly appreciated. I need to test all functions before putting my server into data center.
Thanks