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.修改配置文件
原来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.测试
执行邮件发送命令
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.测试
相关文章推荐
- iOS runTime机制简单理解
- 【codevs2144】砝码称重2,哈希什么的都去死吧
- iOS基石(零) - 准备
- 腐蚀与膨胀
- Linux学习13_配置yum,nc,telnet
- Photoshop简单切图
- Objective-C中的NSArray和NSMutableArray
- 中断-整体流程
- 【小米校招笔试】假如已知有n个人和m对好友关系(存于数字r)。如果两个人是直接或间接的好友(好友的好友的好友...),则认为他们属于同一个朋友圈,请写程序求出这n个人里一共有多少个朋友圈。
- gearman worker源码分析(1)
- hive1.2.1安装详解(亲测有效)
- Objective-C语法之NSArray和NSMutableArray
- 栈的顺序存储方式的C语言实现
- 二叉搜索树——算法导论(14)
- yii中rights安装
- 【计算机视觉】检测面切断和规范化
- 结构体做函数参数2
- iOS开发中一些常见的并行处理
- const vector iterator
- hdu4414Finding crosses 水题