码迷,mamicode.com
首页 > 其他好文 > 详细

postfix简单安装和使用

时间:2017-01-06 17:28:18      阅读:271      评论:0      收藏:0      [点我收藏+]

标签:postfix

1. 安装postfix,执行命令

sudo apt-get update
sudo apt-get install mailutils

2. 配置postfix,编辑/etc/postfix/main.cf,修改

inet_interfaces = all

inet_interfaces = loopback-only


3. 重启postfix服务

sudo service postfix restart


4. 测试发邮件

echo "This is the body of the email" | mail -s "This is the subject line" example@qq.com

5. 检查邮件一般会在垃圾箱中

本文出自 “zyzdbk” 博客,谢绝转载!

postfix简单安装和使用

标签:postfix

原文地址:http://zyzdbk.blog.51cto.com/7396452/1889687

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!