快速免责声明 - 这仍然是一个测试服务器,因此不会对生产造成损失,只是延迟。我完全无法理解,我很幸运能处于这个位置来学习,但我真的不是我需要的系统管理员。我非常感谢你的帮助。我希望这不会马上结束 - 虽然很长,但我试图尽可能详细地介绍问题和我诊断的尝试。
我在移动 Exchange 服务器时遇到了麻烦。我让它在 server1 上运行,但那个盒子太乱了,而且要处理太多事情,所以我尝试移动它,但遇到了问题。
我保留了 Server1 的原样,并在 Server2 上安装了 Exchange。然后我在 Server2 上创建了一个新的邮箱数据库,移动了所有邮箱并删除了 Server1 上的数据库。现在两台服务器都不接受外部邮件(我可以更改端口 25 的位置,我有路由器控制台)。还有其他东西也不起作用,但我试图问一个问题,所以我的问题是:
为什么外部邮件来自(例如)HOTMAIL[电子邮件保护]邮件未能到达我的收件箱?
请注意,没有涉及防火墙,只有端口 25 转发到服务器。
如果我使用本地(本地指的是 LAN 上的另一台机器)SMTP 测试工具(基本上是一个 telnet 脚本)连接到 server1,我就可以从我自己向我自己发送电子邮件,并且每隔一次(或者每隔一次,如果你愿意的话)我都会得到这个输出并且邮件会到达我的收件箱:
(我已将我的域名更改为 fishkake.com,并将我的全名更改为 this.is.me - 其余内容均原封不动)
Connecting to mail server.
Connected.
220 server1.bear.fishkake.com Microsoft ESMTP MAIL Service ready at Tue, 14 Nov 2017 18:33:16 +0000
EHLO NARWHAL
250-server1.bear.fishkake.com Hello [192.168.27.226]
250-SIZE 37748736
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 XRDST
RSET
250 2.0.0 Resetting
MAIL FROM: <[email protected]>
250 2.1.0 Sender OK
RCPT TO: <[email protected]>
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
.
250 2.6.0 <[email protected]> [InternalId=4419521347585, Hostname=server1.bear.fishkake.com] Queued mail for delivery
Forcing disconnection from SMTP server.
QUIT
221 2.0.0 Service closing transmission channel
Disconnected.
Message Sent Successfully
但是每次我都会收到下面的信息(并且没有邮件送达)。我不知道为什么它会在发送消息的服务器之间来回切换,也不知道为什么 server2 会失败:
Connecting to mail server.
Connected.
220 server1.bear.fishkake.com Microsoft ESMTP MAIL Service ready at Tue, 14 Nov 2017 18:38:59 +0000
EHLO NARWHAL
250-server1.bear.fishkake.com Hello [192.168.27.226]
250-SIZE 37748736
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 XRDST
RSET
250 2.0.0 Resetting
MAIL FROM: <[email protected]>
250 2.1.0 Sender OK
RCPT TO: <[email protected]>
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
.
250 2.6.0 <[email protected]> [InternalId=137438953495, Hostname=server2.bear.fishkake.com] 1940 bytes in 0.144, 13.137 KB/sec Queued mail for delivery
Forcing disconnection from SMTP server.
QUIT
221 2.0.0 Service closing transmission channel
Disconnected.
Message Sent Successfully
最后,如果我使用 server2 上的 SMTP 测试工具执行同样的事情,我会得到以下结果:
Connecting to mail server.
Connected.
220 server2.bear.fishkake.com Microsoft ESMTP MAIL Service ready at Tue, 14 Nov 2017 18:55:53 +0000
EHLO NARWHAL
250-server2.bear.fishkake.com Hello [192.168.27.226]
250-SIZE 37748736
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 XRDST
RSET
250 2.0.0 Resetting
MAIL FROM: <[email protected]>
250 2.1.0 Sender OK
RCPT TO: <[email protected]>
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
.
451 4.7.0 Temporary server error. Please try again later. PRX2
Error: SMTP protocol error. 451 4.7.0 Temporary server error. Please try again later. PRX2 .
Failed to send messageForcing disconnection from SMTP server.
QUIT
221 2.0.0 Service closing transmission channel
Disconnected.
我很乐意执行更多步骤并提供输出以帮助您帮助我。任何帮助我都会感激不尽。谢谢。
编辑-应 Robbie 的要求,我运行了以下命令:
[PS] C:\Windows\system32>Get-ReceiveConnector | fl name, transportrole, bindings, remoteipranges
Name : Default server1
TransportRole : HubTransport
Bindings : {0.0.0.0:2525, [::]:2525}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Client Proxy server1
TransportRole : HubTransport
Bindings : {[::]:465, 0.0.0.0:465}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Default Frontend server1
TransportRole : FrontendTransport
Bindings : {[::]:25, 0.0.0.0:25}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Outbound Proxy Frontend server1
TransportRole : FrontendTransport
Bindings : {[::]:717, 0.0.0.0:717}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Client Frontend server1
TransportRole : FrontendTransport
Bindings : {[::]:587, 0.0.0.0:587}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Default server2
TransportRole : HubTransport
Bindings : {0.0.0.0:2525, [::]:2525}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Client Proxy server2
TransportRole : HubTransport
Bindings : {[::]:465, 0.0.0.0:465}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Default Frontend server2
TransportRole : FrontendTransport
Bindings : {[::]:25, 0.0.0.0:25}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Outbound Proxy Frontend server2
TransportRole : FrontendTransport
Bindings : {[::]:717, 0.0.0.0:717}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
Name : Client Frontend server2
TransportRole : FrontendTransport
Bindings : {[::]:587, 0.0.0.0:587}
RemoteIPRanges : {::-ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff, 0.0.0.0-255.255.255.255}
答案1
我将使用答案部分,因为在评论中代码无法正确显示。
对于接收连接器部分。请显示结果:
Get-ReceiveConnector "Default Frontend server2" | fl name, TransportRole, Bindings, PermissionGroups
确保外界确实能够连接到您的服务器。导航至https://mxtoolbox.com/diagnostic.aspx并验证世界是否可以通过端口 25 访问您的服务器。
对于虚拟目录、连接性等部分:
Get-OabVirtualDirectory | fl server, Name, ExternalURL, InternalURL, *auth*
Get-WebServicesVirtualDirectory | fl server, Name,ExternalURL, InternalURL, *auth*
Get-EcpVirtualDirectory | fl server, Name, ExternalURL, InternalURL, *auth*
Get-ActiveSyncVirtualDirectory | fl server, Name, ExternalURL, InternalURL, *auth*
Get-OutlookAnywhere | fl server, Name, *hostname*, *auth*
Get-OwaVirtualDirectory | fl server, Name, ExternalURL, InternalURL, *auth*
Get-ClientAccessService | fl Name,OutlookAnywhereEnabled, AutodiscoverServiceInternalUri
Get-ExchangeCertificate | fl FriendlyName, Subject, CertificateDomains, Thumbprint, Services, Issuer, *not*
Get-MapiVirtualDirectory | fl server, Name,ExternalURL,InternalURL, *auth*
屏蔽域的真实 FQDN。