zoukankan      html  css  js  c++  java
  • 快速搭建邮件系统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的积累” 博客,转载请与作者联系!

  • 相关阅读:
    MySQLSource-Flume
    Flume
    Hive| ETL清洗& 查询练习
    Hive-04 压缩| 存储
    Hive-03 查询
    Hive-02 DDL| DML
    shell基本用法
    Hive-01 配置| 架构原理
    HDFS-HA高可用 | Yarn-HA
    react-路由和Ant design
  • 原文地址:https://www.cnblogs.com/tinghae/p/14979340.html
Copyright © 2011-2022 走看看