maketop’s blog

Just another WordPress weblog

Archive for October, 2009

在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,可以正常接收文件。

Comments (0) Posted on Saturday, October 24th, 2009

执行apt-get install 的时候提示

E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.

错误。

解决方式

mkdir -p /var/cache/apt/archives/partial

或者

touch /var/cache/apt/archives/lock
Comments (0) Posted on Friday, October 9th, 2009

    Popular Post

    Most Commented Posts

    Random Posts