您的位置:首页 > 其它

postfix简单安装和使用

2017-01-06 14:27 309 查看
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. 检查邮件一般会在垃圾箱中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  postfix