一、对域名设置MX记录

二、安装准备

1、关闭selinux

vi /etc/selinux/config

SELINUX=disabled
2、iptables防火墙端口设置

# iptables -I INPUT -s 0.0.0.0/0 -p udp --dport 11211 -j DROP

  iptables -I INPUT -s zabbix服务器IP地址 -p tcp --dport 10050 -j ACCEPT
  iptables -I INPUT -s 公司出网IP -p tcp --dport 9800 -j ACCEPT
  iptables -I INPUT -s 公司出网IP -p tcp --dport 7071 -j ACCEPT
  iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 25 -j ACCEPT
  iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 443 -j ACCEPT
  iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 465 -j ACCEPT
  iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 587 -j ACCEPT
  iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 993 -j ACCEPT
  iptables -I INPUT -s 0.0.0.0/0 -p tcp --dport 995 -j ACCEPT

有其他端口需要加入,请根据所需加入防火墙

3、关闭postfix服务,避免25端口被占用

# service postfix stop

# chkconfig postfix off
4、配置主机名

# vi /etc/sysconfig/network

HOSTNAME=mail.uglyliu.com

5、配置hosts

# vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.16.50.95 mail.uglyliu.com mail
6、空间要求

Zimbra会安装到/opt目录,请确保/opt目录有至少5G的可用容量

7、系统参数配置

 vi /etc/sysctl.conf

net.ipv4.tcp_tw_recycle = 1

三、安装zimbra

前面域名和服务器配置好了的话,执行./install.sh脚本顺利的话,5分钟安装完,然后就可以使用https://mail.uglyliu.com访问邮件服务器了

  yum -y install nc libaio unzip
tar xf zcs-8.8.6_GA_1906.RHEL7_64..tgz
cd zcs-8.8.6_GA_1906.RHEL7_64. && ./install.sh
[root@mail zcs-8.6.0_GA_1153.RHEL6_64.]# ./install.sh Operations logged to /tmp/install.log.
Checking for existing installation...
zimbra-ldap...NOT FOUND
zimbra-logger...NOT FOUND
zimbra-mta...NOT FOUND
zimbra-dnscache...NOT FOUND
zimbra-snmp...NOT FOUND
zimbra-store...NOT FOUND
zimbra-apache...NOT FOUND
zimbra-spell...NOT FOUND
zimbra-convertd...NOT FOUND
zimbra-memcached...NOT FOUND
zimbra-proxy...NOT FOUND
zimbra-archiving...NOT FOUND
zimbra-core...NOT FOUND PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU
FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING
THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY
THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS
AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT. License Terms for the Zimbra Collaboration Suite:
http://www.zimbra.com/license/zimbra-public-eula-2-5.html Do you agree with the terms of the software license agreement? [N] y Checking for prerequisites...
FOUND: NPTL
FOUND: nc-1.84-
FOUND: sudo-1.8.6p3-
FOUND: libidn-1.18-
FOUND: gmp-4.3.-
FOUND: libaio-0.3.-
FOUND: libstdc++-4.4.-
FOUND: unzip-6.0- Checking for suggested prerequisites...
FOUND: perl-5.10.
FOUND: sysstat
FOUND: sqlite
Prerequisite check complete. Checking for installable packages Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-dnscache
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy Select the packages to install Install zimbra-ldap [Y] y Install zimbra-logger [Y] y Install zimbra-mta [Y] y Install zimbra-dnscache [Y] n Install zimbra-snmp [Y] y Install zimbra-store [Y] y Install zimbra-apache [Y] y Install zimbra-spell [Y] y Install zimbra-memcached [Y] y Install zimbra-proxy [Y] y
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete. Installing:
zimbra-core
zimbra-ldap
zimbra-logger
zimbra-mta
zimbra-dnscache
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell
zimbra-memcached
zimbra-proxy The system will be modified. Continue? [N] y Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/ld.so.conf...done.
Cleaning up /etc/security/limits.conf...done. Finished removing Zimbra Collaboration Server. Installing packages zimbra-core......zimbra-core-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-ldap......zimbra-ldap-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-logger......zimbra-logger-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-mta......zimbra-mta-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-dnscache......zimbra-dnscache-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-snmp......zimbra-snmp-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-store......zimbra-store-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-apache......zimbra-apache-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-spell......zimbra-spell-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-memcached......zimbra-memcached-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
zimbra-proxy......zimbra-proxy-8.6.0_GA_1153.RHEL6_64-.x86_64.rpm...done
Operations logged to /tmp/zmsetup07282015-.log
Installing LDAP configuration database...done.
Setting defaults... DNS ERROR resolving MX for mail.uglyliu.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] yes
Create domain: [mail.uglyliu.com] uglyliu.com
MX: mail.corp.net (172.16.50.95) Interface: 172.16.50.95
Interface: 127.0.0.1
Interface: ::
done.
Checking for port conflicts Main menu ) Common Configuration:
) zimbra-ldap: Enabled
) zimbra-logger: Enabled
) zimbra-mta: Enabled
) zimbra-dnscache: Enabled
) zimbra-snmp: Enabled
) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@corp.net
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.zjw4edgp@corp.net
+Enable automated spam training: yes
+Spam training user: spam.esltmqcu@corp.net
+Non-spam(Ham) training user: ham.tjpi5o5qf@corp.net
+SMTP host: mail.uglyliu.com
+Web server HTTP port:
+Web server HTTPS port:
+Web server mode: https
+IMAP server port:
+IMAP server SSL port:
+POP server port:
+POP server SSL port:
+Use spell check server: yes
+Spell server URL: http://mail.uglyliu.com:7780/aspell.php
+Enable version update checks: TRUE
+Enable version update notifications: TRUE
+Version update notification email: admin@corp.net
+Version update source email: admin@corp.net
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes ) zimbra-spell: Enabled
) zimbra-proxy: Enabled
) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit Address unconfigured (**) items (? - help) Store configuration ) Status: Enabled
) Create Admin User: yes
) Admin user to create: admin@corp.net
** ) Admin Password UNSET
) Anti-virus quarantine user: virus-quarantine.zjw4edgp@corp.net
) Enable automated spam training: yes
) Spam training user: spam.esltmqcu@corp.net
) Non-spam(Ham) training user: ham.tjpi5o5qf@corp.net
) SMTP host: mail.corp.net
) Web server HTTP port:
) Web server HTTPS port:
) Web server mode: https
) IMAP server port:
) IMAP server SSL port:
) POP server port:
) POP server SSL port:
) Use spell check server: yes
) Spell server URL: http://mail.corp.net:7780/aspell.php
) Enable version update checks: TRUE
) Enable version update notifications: TRUE
) Version update notification email: admin@corp.net
) Version update source email: admin@corp.net
) Install mailstore (service webapp): yes
) Install UI (zimbra,zimbraAdmin webapps): yes Select, or 'r' for previous menu [r] Password for admin@corp.net (min characters): [RxKIO9HeN] admin123 //设置管理员admin的密码 Store configuration ) Status: Enabled
) Create Admin User: yes
) Admin user to create: admin@corp.net
) Admin Password set
) Anti-virus quarantine user: virus-quarantine.zjw4edgp@corp.net
) Enable automated spam training: yes
) Spam training user: spam.esltmqcu@corp.net
) Non-spam(Ham) training user: ham.tjpi5o5qf@corp.net
) SMTP host: mail.corp.net
) Web server HTTP port:
) Web server HTTPS port:
) Web server mode: https
) IMAP server port:
) IMAP server SSL port:
) POP server port:
) POP server SSL port:
) Use spell check server: yes
) Spell server URL: http://mail.corp.net:7780/aspell.php
) Enable version update checks: TRUE
) Enable version update notifications: TRUE
) Version update notification email: admin@corp.net
) Version update source email: admin@corp.net
) Install mailstore (service webapp): yes
) Install UI (zimbra,zimbraAdmin webapps): yes Select, or 'r' for previous menu [r] r Main menu ) Common Configuration:
) zimbra-ldap: Enabled
) zimbra-logger: Enabled
) zimbra-mta: Enabled
) zimbra-dnscache: Enabled
) zimbra-snmp: Enabled
) zimbra-store: Enabled
) zimbra-spell: Enabled
) zimbra-proxy: Enabled
) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit *** CONFIGURATION COMPLETE - press 'a' to apply
Select from menu, or press 'a' to apply config (? - help) a
Save configuration data to a file? [Yes] yes
Save config in file: [/opt/zimbra/config.]
Saving config in /opt/zimbra/config....done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup07282015-.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Creating SSL zimbra-store certificate...done.
Creating new zimbra-ldap SSL certificate...done.
Creating new zimbra-mta SSL certificate...done.
Creating new zimbra-proxy SSL certificate...done.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...done.
Installing Proxy SSL certificate...done.
Initializing ldap...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Setting BES searcher password...done.
Creating server entry for mail.corp.net...done.
Setting Zimbra IP Mode...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.corp.net...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting Master DNS IP address(es)...done.
Setting DNS cache tcp lookup preference...done.
Setting DNS cache udp lookup preference...done.
Setting DNS tcp upstream preference...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.corp.net...done.
Adding mail.corp.net to zimbraMailHostPool in default COS...done.
Creating domain corp.net...done.
Setting default domain name...done.
Creating domain corp.net...already exists.
Creating admin account admin@corp.net...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.esltmqcu@corp.net...done.
Creating user ham.tjpi5o5qf@corp.net...done.
Creating user virus-quarantine.zjw4edgp@corp.net...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.corp.net...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
com_zimbra_webex...done.
com_zimbra_phone...done.
com_zimbra_ymemoticons...done.
com_zimbra_attachcontacts...done.
com_zimbra_clientuploader...done.
com_zimbra_linkedinimage...done.
com_zimbra_proxy_config...done.
com_zimbra_tooltip...done.
com_zimbra_viewmail...done.
com_zimbra_attachmail...done.
com_zimbra_mailarchive...done.
com_zimbra_adminversioncheck...done.
com_zimbra_cert_manager...done.
com_zimbra_date...done.
com_zimbra_bulkprovision...done.
com_zimbra_url...done.
com_zimbra_email...done.
com_zimbra_srchhighlighter...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done. You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
The VERSION of zcs installed (8.6.0_GA_1153_RHEL6_64)
The ADMIN EMAIL ADDRESS created (admin@corp.net) Notify Zimbra of your installation? [Yes] No Setting up zimbra crontab...done. Moving /tmp/zmsetup07282015-.log to /opt/zimbra/log Configuration complete - press return to exit [root@mail zcs-8.6.0_GA_1153.RHEL6_64.]#

四、zimbra基本命令

# su – zimbra
. 启动zimbra
zmcontrol start . 停止zimbra
zmcontrol stop . 查看zimbra服务状态
zmcontrol status . 列出所有用户:
[zimbra@mail ~]$ zmprov -l gaa . 列出指定用户详细信息:
[zimbra@mail ~]$ zmprov -l ga liuhuihuang@uglyliu.com . 列出所有的邮件组列表:
[zimbra@mail ~]$ zmprov gadl . 导出某个邮件组的所有成员列表:
[zimbra@mail ~]$ zmprov gdlm groupname@uglyliu.com

[zimbra@mail ~]$ zmprov gdl groupname@uglyliu.com | grep zimbraMailForwardingAddress: | awk {'print $2'} . 忘记admin管理员密码重置:
[zimbra@mail ~]$ zmprov sp admin@uglyliu.com . 创建邮件组
[zimbra@mail~]$ zmprov cdl groupname@uglyliu.com . 给某个邮件组加用户:
[zimbra@mail ~]$ zmprov adlm groupname@uglyliu.com liuhuihuang@uglyliu.com . 从某个邮件组中移除用户:
[zimbra@mail ~]$ zmprov rdlm groupname@uglyliu.com liuhuihuang@uglyliu.com

#默认情况下(即只创建群组,并添加用户,没有用zmprov授权),所有用户都可以向该域名下创建的所有群组发邮件,明确授权某些用户可以发邮件之后,其它用户将不能向该群组发邮件

#为了使用授权命令,需要启用Milter Server

启用方法:管理控制台----> 全局设定 -----> MTA ------> Milter Server启用

 

1.授权user1,user4用户向group1@uglyliu.com发邮件

zmprov grr dl group1@uglyliu.comusr user1@uglyliu.com sendToDistList

zmprov grr dl group1@uglyliu.com usr user4@uglyliu.com sendToDistList

2.取消user1向群组group1@zijan.com发邮件权限

zmprov rvr dl group1@uglyliu.comusr user1@uglyliu.comsendToDistList

注意:授权向群组发邮件的用户与该用户在不在改群组中没有关系

3.查看某个群组的授权用户

zmprov gg -t dl 邮件组地址

centos6.8安装并配置zimbra的更多相关文章

  1. Centos6.8安装并配置VNC

    一般服务器都会在IDC或云端,为了可以看到服务器的图形化界面,需要安装配置VNC,本例为Centos6.8上安装配置VNC. [root@hostname ~]#yum install -y tige ...

  2. CentOS6.6安装及配置vsftpd文件服务器

    1.安装vsftpd和db4-utils,后者用来生成密码库文件,命令如下: # yum install -y vsftpd db4* 2.修改SELINUX,命令如下: # vim /etc/sys ...

  3. CentOS6.5 安装Sphinx 配置MySQL数据源

      前提安装完mysql,并创建测试表和数据 DROP TABLE IF EXISTS `documents`; CREATE TABLE IF NOT EXISTS `documents` ( `i ...

  4. CentOS6.4 安装Sphinx 配置MySQL数据源

    前提安装完mysql,并创建测试表和数据 DROP TABLE IF EXISTS `documents`; CREATE TABLE IF NOT EXISTS `documents` ( `id` ...

  5. Centos6.5安装与配置Tomcat-8的方法

    环境要求: 系统: [root@Wulaoer ~]# cat /proc/version Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bs ...

  6. CentOS6.5 安装并配置vsftpd

    一.获取root权限 su 输入root密码 二.检查是否安装 rpm -qa | grep vsftpd 如果安装,会显示安装版本号,没有就什么都不显示 三.若已安装过vsftpd,先卸载.卸载前, ...

  7. CentOS6—HAProxy安装与配置

    概述 Haproxy下载地址:http://pkgs.fedoraproject.org/repo/pkgs/haproxy/ 关闭SElinux.配置防火墙 1.vi /etc/selinux/co ...

  8. CentOS6.5安装与配置Mysql数据库

    from:http://www.centoscn.com/mysql/2014/1211/4290.html 一.mysql简介 说到数据库,我们大多想到的是关系型数据库,比如mysql.oracle ...

  9. CentOS6.6安装heartbeat配置资源切换操作笔记实现高可用(原创)

    参考资料:http://www.centoscn.com/CentosServer/cluster/2015/0605/5604.html   背景需求: 使用heartbeat来做HA集群,并且把n ...

随机推荐

  1. 软工Hello World!团队第二周博客汇总

    2017.10.20-2017.10.26 Scrum会议: 第一天:http://www.cnblogs.com/liusx0303/p/7704482.html 第二天:http://www.cn ...

  2. 欢迎来怼--第二十一次Scrum会议

    一.小组信息 队名:欢迎来怼 小组成员 队长:田继平 成员:李圆圆,葛美义,王伟东,姜珊,邵朔,冉华 小组照片 二.开会信息 时间:2017/11/2 17:05~17:15,总计10min. 地点: ...

  3. 软工实践-Alpha 冲刺 (1/10)

    队名:起床一起肝活队 组长博客:博客链接 作业博客:班级博客本次作业的链接 组员情况 组员1(队长):白晨曦 过去两天完成了哪些任务 描述: 学习了UI设计软件的使用,了解了项目开发的具体流程. 展示 ...

  4. 关于char, wchar_t, TCHAR, _T(),L,宏 _T、TEXT,_TEXT、L

    char :单字节变量类型,最多表示256个字符, wchar_t :宽字节变量类型,用于表示Unicode字符, 它实际定义在<string.h>里:typedef unsigned s ...

  5. iOS- 无处不在,详解iOS集成第三方登录(SSO授权登录<无需密码>)

    1.前言   不多说,第三登录无处不在!必备技能,今天以新浪微博为例. 这是上次写的iOS第三方社交分享:http://www.cnblogs.com/qingche/p/3727559.html 可 ...

  6. 《Effective C#》快速笔记(三)- 使用 C# 表达设计

    目录 二十一.限制类型的可见性 二十二.通过定义并实现接口替代继承 二十三.理解接口方法和虚方法的区别 二十四.用委托实现回调 二十五.用事件模式实现通知 二十六.避免返回对内部类对象的引用 二十七. ...

  7. vector中数据进行去重和排序

    , , , , , , ,}; std::vector<int> vec(a, a+sizeof(a)/sizeof(int) ); std::sort(vec.begin(), vec. ...

  8. jquery计算器(改良版)

    代码: <!Doctype html> <html> <meta charset="UTF-8"> <title>计算器</t ...

  9. [计算机网络] DNS何时使用TCP协议,何时使用UDP协议

    DNS同时占用UDP和TCP端口53是公认的,这种单个应用协议同时使用两种传输协议的情况在TCP/IP栈也算是个另类.但很少有人知道DNS分别在什么情况下使用这两种协议. 先简单介绍下TCP与UDP. ...

  10. 从HR 到SBP其实还有很长的一段路要走

    战略性业务伙伴 Strategic business partners 关于这本书,一般是因为好奇,从HR到BP的角色,再到这个SBP,其实是一段没有走过的很虚的过程,不过总归是需要灯塔,即使偶尔只是 ...