我正在运行Ubuntu 9.10 LAMP并试图用
PHP进行简单的电子邮件测试,但我没有收到任何电子邮件.
@H_404_21@mail("myemail@gmail.com","eric-linux test","test") or die("can't send mail");
sendmail_path = /usr/lib/sendmail -t -i
$sudo ps aux | grep sendmail eric 2486 0.0 0.4 8368 2344 pts/0 T 14:52 0:00 sendmail -s “Hello world” myemail@gmail.com eric 8747 0.0 0.3 5692 1616 pts/2 T 16:18 0:00 sendmail eric 8749 0.0 0.3 5692 1636 pts/2 T 16:18 0:00 sendmail start eric 9190 0.0 0.3 5692 1636 pts/2 T 19:12 0:00 sendmail start eric 9192 0.0 0.3 5692 1616 pts/2 T 19:12 0:00 sendmail eric 9425 0.0 0.3 5692 1620 pts/1 T 19:37 0:00 sendmail eric 9427 0.0 0.3 6584 1636 pts/1 T 19:37 0:00 sendmail restart eric 9429 0.0 0.3 5692 1636 pts/1 T 19:38 0:00 /usr/lib/sendmail restart eric 9432 0.0 0.1 3040 804 pts/1 R+ 19:38 0:00 grep --color=auto sendmail
当我运行$sendmail启动它只是挂在那里什么都不做.
我也安装了postfix以查看它是否会有所帮助,但事实并非如此.
我试图看到端口25:
eric@eric-linux:~$telnet localhost 25 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 eric-linux ESMTP Postfix (Ubuntu)
谢谢