`
ajinn
  • 浏览: 34321 次
文章分类
社区版块
存档分类
最新评论

快速搭建邮件系统postfix

 
阅读更多

由于公司邮件系统准备迁移,一直在准备方案。其中有一个方案就是自己来搭建postfix。而我就表示任务有点大了。

简单的搭建邮件系统:

1.只需要一个linux系统即可,我的linux服务器ip是192.168.0.173。如果是自己实验,配置yum源。然后

yum -y install postfix* httpd* dovecot*

2.hostname mail.hello.com

3.vi /etc/postfix/main.cf  修改如下几行

  1. 69 myhostname = mail.hello.com  
  2. 77 mydomain = hello.com  
  3. 110 inet_interfaces = all 
  4. 155 mydestination = $myhostname, $mydomain
  5. 92 myorigin = $myhostname  
  6. 93 myorigin = $mydomain 

 

4.关闭sendmail,启动postfix。启动dovecot

service sendmail stop

service postfix start

netstat -an | grep :25

service dovecot restart

5.新建两个用户。tom和 jerry。用户添加好后,别忘了:postmap /etc/postfix/virtual(否则可能不会生效)

在客户端win7验证下:

查看收信:

现在我们再linux上,安装postfix的网页端

yum -y install squirrelmail*

service httpd restart

在win7上访问:http://192.168.0.173/webmail

 

本文出自 “濛sir的积累” 博客,转载请与作者联系!

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics