[转]Ubuntu 7.10下 使用 Sendmai l发送邮件的配置

首先需要安装 sendmail

sudo apt-get install sendmail

然后运行:
sudo -s
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

修改
sendmail.cf 中的

DMxxxx


DMyourdomain.com

之后

运行
sudo /etc/init.d/sendmail restart

测试一下
echo ok |mail -s 'ok'  <email>

是不是就可以发送邮件了。
This article is posted by on , link is .

Leave a reply