Quick disclaimer - this is still a test server, so there is no loss to production, just a delay. I'm way out of my depth, and I'm lucky to be in this position to learn, but I'm really not the sysadmin I need to be. I'd really appreciate your help. I hope this doesn't just get closed straightaway - it is long but I'm trying to provide as much detail about the problem and my attempts to diagnose as possible.
I'm having trouble moving my Exchange server. I had it functioning on server1 but that box was a big mess and doing too many things, so I've tried to move it, and I've got a problem.
I left Server1 as it was and installed Exchange on Server2. Then I created a new Mailbox Database on Server2, moved all the mailboxes and removed the database on Server1. Now neither server is accepting external mail (I can change where port 25 goes, I have console to the router). There are other things not working too, but I'm trying to ask a single question, so my question is:
WHY IS EXTERNAL MAIL FROM (e.g.) HOTMAIL TO ME@MYDOMAIN.COM FAILING TO ARRIVE IN MY INBOX?
Note no firewalls are involved, and only port 25 is forwarded to the server.
If I connect to server1 with a local (by local I mean a different machine on my LAN) SMTP test tool which is basically a telnet script, I can send email from myself to myself and every other time (or every second time, if you prefer) I get this output and the mail arrives in my inbox:
(I have changed my domain to fishkake.com and changed my full name to this.is.me - everything else is verbatim)
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: <this.is.me@fishkake.com>
250 2.1.0 Sender OK
RCPT TO: <this.is.me@fishkake.com>
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
.
250 2.6.0 <00de62536a0ba089478648879a357182@tvgsecurity.com> [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
However EVERY OTHER TIME I get the below (and no mail is delivered). I don't know why it is flipping between which server it uses to send the message, nor why server2 fails:
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: <this.is.me@fishkake.com>
250 2.1.0 Sender OK
RCPT TO: <this.is.me@fishkake.com>
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
.
250 2.6.0 <15d7d80c09be871885a17c8b0a08b208@tvgsecurity.com> [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
Finally, if I use the SMTP test tool on server2 to do the same thing, I get this:
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: <this.is.me@fishkake.com>
250 2.1.0 Sender OK
RCPT TO: <this.is.me@fishkake.com>
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.
I will be happy to perform any more steps and provide outputs to help you to help me. Anything is appreciated. Thank you.
EDIT - at Robbie's request, I ran the following command:
[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}