Skip to content


ubuntu快速搭建简易邮件收发系统

第一步:安装软件
sudo apt-get install postfix

第二步:修改几个关键配置详细
配置文件位置:/etc/postfix
shell>cd /etc/postfix
shell>vi main.cf

主要参数:
mydomain=test.com //你发送邮件时显示的后缀 @后面的字符
mydestination=test.com,localhost… //当发送邮件 里,什么后缀的邮件直接发到本机服务器
inet_interfaces=all //邮件系统监听的方式 all表示监听所有的互联网邮件,还可以只监听局域网邮件之类

注意inet_interfaces参数要重启postfix可能生效,因为如果参数值为all,则要打开 smtp

第三步:测试
安装:mutt发送邮件:
shell> sudo apt-get install mutt
shell> mutt //发送邮件

第四步:监视log

邮件默认日志 保存路径为: /var/log/mail.log
监视之: tail /var/log/mail.log -f

第5步:注意
您自已的邮件系统发出去的邮件很可能成为垃圾邮件,要是发的时候看不着,也到垃圾堆里面找找个,呵呵

Posted in linux, 技术.

Tagged with , .


2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. 推背图 says

    不错,学习了

  2. 果沟 says

    欢迎观临



Some HTML is OK

or, reply to this post via trackback.