您的位置:首页 > 其它

debian发邮件

2015-10-10 20:12 225 查看
1.确认安装mail

执行邮件发送命令

echo "mail content"|mail -s test helloworld@xx.com

发现邮箱并无邮件

查看log

/var/mail/ 目录下

可以看到如下语句

Mailing to remote domains not supported

2.修改配置文件

原来debianexim4缺省是不支持往internet上发信的

于是编辑下配置文件/etc/exim4/update-exim4.conf.conf



dc_eximconfig_configtype=’local’

改成

dc_eximconfig_configtype=’internet’

再重起exim4

/etc/init.d/exim4 stop;/etc/init.d/exim4 start

3.测试



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: