Forum Discussion

Nektaromulus's avatar
Nektaromulus
Copper Contributor
Feb 29, 2024

Exchange 2019 SMTP random delays of 1 minute when sending email

Hello,

 

We recently moved from a 3 server Exchange 2016 DAG to a single Exchange 2019 server.  We are in a hybrid set up, all mailboxes in Exchange Online, mainly using the on-prem Exchange Server for SMTP and user management.  When we had the DAG, we also had a load balancer in the setup.  We've since taken that out and changed all DNS to point to the IP of the new 2019 Exchange Server.

 

Everything seems to be running fine except we have a lot of on-prem apps and printers that use SMTP to send email.  We are facing an issue where most emails have a delay of 1 minute and a few seconds, which causes the page where a user submits the email to wait for a response and just sits there for that minute.  In some instances, our SQL jobs see this as a failure and retry, but then we get duplicate emails for those task notifications.

 

Sometimes it is working fine, I can send 10 emails from a printer in a row with no delay then the 11th has the delay.  I've worked with Microsoft to check settings and logs and they are indicating it is related to a networking problem but the delay is on the server itself when I analyze the message header of a delayed message as seen in the image (blacked out hostname of Exchange server).  Next step in the message analyzer is from our public IP to Exchange Online which has no delays.

 

 

Any guidance would be appreciated.

6 Replies

  • gilm0079's avatar
    gilm0079
    Occasional Reader

    did you find a solution? I may be having the same issue. We migrated from an on-prem exchange 2019 server to an on-prem exchange SE server (both hybrid, but all operations are on-prem). Never had the issue on the old server, but new one a couple times an hour I will get a notification from our network monitoring app that it is having issues using the SMTP receive connector. Protocol logs show the email goes through, but during the data send there is about a 1 min delay before the server responds that the message was accepted. By that time the client has already crossed a client side timeout and assumes the email failed even though the receive connector was just causing a delay and the original email sends.

     

    I've been comparing the old 2019 server configs to the new SE server configs. I'm not seeing a difference that would be causing this random delay. 

  • Dan_Snape's avatar
    Dan_Snape
    Bronze Contributor
    There a re a number of different resources required on the Exchange server to send a messages. It will need adequate CPU and memory to process the messages, but it also needs to write the message to disk at different points in the transport pipe. Look at any resource constraints there.

    Exchange then has to initiate a connection to the next hop mail system (I'd assume that's Exchange Online here) to send the message on, so it could be on that network path where the delay is.
    • Nektaromulus's avatar
      Nektaromulus
      Copper Contributor

      Dan_Snape it should have plenty of resources (6 core CPU, 32 GB RAM, health checker suggests 128 GB but that seems overkill to me) to handle the email.  It is not handling a ton of email, less than 100 messages per hour.  I am reluctant to think it is the network, as the network is not changing and at one point in the day, email moves quickly and at other times it takes that 1 minute delay for every message.

      • Dan_Snape's avatar
        Dan_Snape
        Bronze Contributor
        What about disk utilisation, including any virus scanning or other security products that might lock files?

Resources