CentOS6.4 安装zimbra邮件系统
时间:2015-07-18 02:16 来源:linux.it.net.cn 作者:IT
[root@weyeenet ~]# nslookup mial.weyeenet.net
Server: 192.168.0.36
Address: 192.168.0.36#53
Name: mial.weyeenet.net
Address: 192.168.3.26
[root@weyeenet ~]# nslookup
> set type=mx
> weyeenet.net
Server: 192.168.0.36
Address: 192.168.0.36#53
weyeenet.net mail exchanger = 10 mail.weyeenet.net.
[root@weyeenet ~]# service postfix stop
Shutting down postfix: [ OK ]
[root@weyeenet ~]# chkconfig postfix off
[root@weyeenet ~]# yum -y install libidn11 curl fetchmail libpcre3 libgmp3c2 libxml2 libstdc++6 openssl perl sysstat libtool-ltdl compat-libstdc* nc file unzip libaio
[root@weyeenet ~]# tar xf zcs-8.5.0_GA_3042.RHEL6_64.20140828192005.tgz
[root@weyeenet ~]# cd zcs-8.5.0_GA_3042.RHEL6_64.20140828192005
[root@weyeenet zcs-8.5.0_GA_3042.RHEL6_64.20140828192005]# ./install.sh --platform-override
[zimbra@mail root]$ su zimbra
[zimbra@mail root]$ zmprov ms weyeenet.net zimbraPop3ProxyBindPort 111
[zimbra@mail root]$ zmprov ms weyeenet.net zimbraPop3BindPort 110
[zimbra@mail root]$ zmprov ms weyeenet.net zimbraPop3ProxyBindPort 7110
[zimbra@mail root]$ zmcontrol restart
[d:\~]$ telnet 192.168.3.26 25
Connecting to 192.168.3.26:25...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
220 weyeenet.net ESMTP Postfix
ehlo weyeenet.net
250-weyeenet.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit221 2.0.0 Bye
[zimbra@mail root]$ zmprov modifyServer mail.weyeenet.net zimbraMtaTlsAuthOnly FALSE
[zimbra@mail root]$ zmcontrol restart
[zimbra@mail root]$ zmprov getServer mail.weyeenet.net | grep Auth
zimbraAuthTokenNotificationInterval: 60000
zimbraLowestSupportedAuthVersion: 2
zimbraMtaAuthEnabled: TRUE
zimbraMtaAuthHost: weyeenet.net
zimbraMtaAuthTarget: TRUE
zimbraMtaAuthURL: https://weyeenet.net:8443/service/soap/
zimbraMtaBrokenSaslAuthClients: yes
zimbraMtaSaslAuthEnable: yes
zimbraMtaSmtpSaslAuthEnable: no
zimbraMtaSmtpdSaslAuthenticatedHeader: no
zimbraMtaTlsAuthOnly: FALSE #这项值要FALSE才能进行SMTP认证
zimbraShareNotificationMtaAuthRequired: FALSE
[d:\~]$ telnet 192.168.3.26 25
Connecting to 192.168.3.26:25...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
220 weyeenet.net ESMTP Postfix
ehlo weyeenet.net
250-weyeenet.net
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN #和SMTP认证相关的参数
250-AUTH=LOGIN PLAIN #和SMTP认证相关的参数
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit221 2.0.0 Bye
#验证结果中出现了2行AUTH的参数,表明服务器的SMTP认证功能已经开启。
[zimbra@mail root]$ head -1 /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf
check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders
[zimbra@mail root]$ vim /opt/zimbra/conf/zmconfigd.cf
#在SECTION mta标签下增加下面2行
SECTION mta DEPENDS amavis
POSTCONF smtpd_restriction_classes local_only
POSTCONF local_only FILE postfix_check_recipient_access.cf
[zimbra@mail root]$ cat /opt/zimbra/conf/postfix_check_recipient_access.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains, reject
[zimbra@mail root]$ cat /opt/zimbra/postfix/conf/restricted_senders
weyee@weyeenet.net local_only
[zimbra@mail root]$ cat /opt/zimbra/postfix/conf/local_domains
weyeenet.net OK
[zimbra@mail root]$ postmap /opt/zimbra/postfix/conf/restricted_senders
[zimbra@mail root]$ postmap /opt/zimbra/postfix/conf/local_domains
[zimbra@mail root]$ zmmtactl stop
/postfix-script: stopping the Postfix mail system
Stopping saslauthd...done.
[zimbra@mail root]$ zmmtactl start
Rewriting configuration files...done.
Starting saslauthd...done.
/postfix-script: starting the Postfix mail system
(责任编辑:IT)
(责任编辑:IT) |