1.确认安装mail
执行邮件发送命令
echo "mail content"|mail -s test helloworld@xx.com
发现邮箱并无邮件
查看log
/var/mail/ 目录下
可以看到如下语句
Mailing to remote domains not supported
2.修改配置文件
原来debian的exim4缺省是不支持往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.测试