maketop’s blog

Just another WordPress weblog

在Debian Lenny中默认装载Exim4,SendMail的配置可以用天书来形容。不过现在可以很轻松的用Exim4来替代SendMail。

在Debian Lenny中直接执行

dpkg-reconfigure exim4-config

将打开对话窗口,在第二个对话框中选择 ‘internet site; mail is sent and received directly using SMTP’。之后先服务器ip中加上你目前的静态IP。然后可以按默认设置进行。

如果你需要使用PHP的sendmail,那么创建sendmail的软链接,

ln -s /usr/sbin/sendmail /usr/sbin/exim4

最后可以创建一个sendmail()函数的例子作为测试。如果是静态IP的,基本不会被认定上为Spam,可以正常接收文件。

Posted by admin on Saturday, October 24th, 2009

Post A Comment

You must be logged in to post a comment.

    Popular Post

    Most Commented Posts

    Random Posts