Exchange Server 2013 部署(二)部署&常规配置命令[一]
在Exchange Server 2013 先决条件满足后,进行Exchange Server 2013 部署及配置。
1.挂载Exchange Server 2013 镜像,运行,选择不检查更新,下一步
2.选择下一步
3.选择我接受条款,下一步
4.选择不使用默认配置,下一步
5.勾选邮箱角色和客户访问角色,下一步
6.选择安装路径,下一步
7.选择不,下一步
8.选择安装
9.等待安装完成
10.选择关闭,重新启动计算机
11.在AD服务器上运行命令添加,mail和autodiscover记录
Add-DnsServerResourceRecordA -ZoneName msftlearn.com -Name mail -IPv4Address 192.168.10.200Add-DnsServerResourceRecordA -ZoneName msftlearn.com -Name autodiscover -IPv4Address 192.168.10.200
12.使用命令创建接受域New-AcceptedDomain -Name msftlearn.com -DomainName msftlearn.com -DomainType Authoritative
13.使命令创建电子邮件地址策略New-EmailAddressPolicy -Name EmailAddress -IncludedRecipients MailboxUsers -EnabledPrimarySMTPAddressTemplate %m@msftlearn.com
14.应用电子邮件地址策略Update-EmailAddressPolicy -Identity EmailAddress
15.设置组织传输大小为30MB,最大收件人为200人Set-TransportConfig -MaxReceiveSize 30MB -MaxSendSize 30MB -MaxRecipientEnvelopeLimit 200
16.设置所有接收连接器的接收大小为30MBSet-TransportConfig -MaxReceiveSize 30MB -MaxSendSize 30MB -MaxRecipientEnvelopeLimit 200
17.去掉默认接收连接器的匿名权限Get-ReceiveConnector "Default Frontend SRV12-EX1301" | Set-ReceiveConnector -PermissionGroups ExchangeLegacyServers,ExchangeServers
18.新建发送连接器,发送限制为30MBNew-SendConnector -Name "To Internet" -Internet -MaxMessageSize 30MB -AddressSpaces * -SourceTransportServers "Srv12-ex1301.msftlearn.local"
19.设置Outlook AnyWhereGet-OutlookAnywhere | Set-OutlookAnywhere -SSLOffloading $true -InternalHostname "mail.msftlearn.com" -ExternalClientsRequireSsl $true -ExternalHostname "mail.msftlearn.com" -InternalClientsRequireSsl $true -InternalClientAuthenticationMethod Basic -ExternalClientAuthenticationMethod Basic
20.设置pop3协议为纯文本Set-PopSettings -Server Srv12-ex1301 -LoginType PlainTextLogin
21.设置pop服务为自动启动
Set-Service MSExchangePop3 -StartupType AutomaticSet-Service MSExchangePOP3BE -StartupType Automatic
22.启动POP服务Start-Service MSExchangePop3*
23.设置IMAP协议为纯文本Set-ImapSettings -Server Srv12-ex1301 -LoginType PlainTextLogin
24.设置IMAP协议为自动启动
Set-Service MSExchangeImap4 -StartupType Automaticset-service MSExchangeIMAP4BE -StartupType Automatic
25.启动IMAP服务Start-Service MSExchangeImap4*
26.新建数据库并为数据库设置脱机地址薄New-MailboxDatabase -Name DB01 -Server Srv12-ex1301 -EdbFilePath C:\DB\DB01.edb -LogFolderPath C:\DB -OfflineAddressBook "Default Offline Address Book"
27.挂载数据库Mount-Database -Identity DB01
28.批量设置虚拟目录
Get-OwaVirtualDirectory | Set-OwaVirtualDirectory -InternalUrl https://mail.msftlearn.com/owa -ExternalUrl https://mail.msftlearn.com/owa -LogonFormat UserName -DefaultDomain msftlearn.localGet-EcpVirtualDirectory | Set-EcpVirtualDirectory -InternalUrl https://mail.msftlearn.com/ecp -ExternalUrl https://mail.msftlearn.com/ecpGet-ActiveSyncVirtualDirectory | Set-ActiveSyncVirtualDirectory -InternalUrl https://mail.msftlearn.com/Microsoft-Server-ActiveSync -ExternalUrl https://mail.msftlearn.com/Microsoft-Server-ActiveSyncGet-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -InternalUrl https://mail.msftlearn.com/EWS/Exchange.asmx -ExternalUrl https://mail.msftlearn.com/EWS/Exchange.asmxGet-OabVirtualDirectory | Set-OabVirtualDirectory -InternalUrl https://mail.msftlearn.com/oab -ExternalUrl https://mail.msftlearn.com/oabGet-PowerShellVirtualDirectory | Set-PowerShellVirtualDirectory -InternalUrl http://mail.msftlearn.com/powershell -ExternalUrl https://mail.msftlearn.com/powershellGet-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://mail.msftlearn.local/Autodiscover/Autodiscover.xml
未完待续。。。。