Windows Server SMTP role - messages to one specific domain goes into the queue folder

TPauk 1 Reputation point
2022-07-15T15:17:42.777+00:00

I have a Windows 2019 server running the SMTP role (IIS Manager). When I send email via telnet, all email gets processed and sent within seconds except to this one specific domain. Those emails get put in the mailroot/queue folder immediately and they stay there anywhere from 15 minutes to 6 hours. 95% are delivered delayed, but a few we have gotten an NDR for (must have exceed the max retry). I just cant seem to figure it out. We put our SMTP server IP address in our SPF record, and we are even using soft fail in the record too. Any other domain the mail gets sent (gmail, yahoo, outlook.com). The next hop from our SMTP servers is to an Office365 environment which has been configured with a connection filter and connector. Again it accepts all other mail, and extended message trace reports show the delay is coming from the 2019 SMTP server. I'm convinced its has to be DNS, but I'm just not sure where to check. Any guidance is appreciated. The mystery question is how does the SMTP server know my recipient domain so quickly that it doesn't even try to send but it gets put in the queue folder. Other domain recipients i dont even notice them hitting the queue folder because it gets processed so quickly.

Windows development | Internet Information Services
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,161 Reputation points Volunteer Moderator
    2022-07-16T21:15:24.967+00:00

    When smtp tries to send mail, it looks up the delivery smtp by DNS name, and tries to send. If not available it leaves the mail in the queue.

    Note: they may consider your site spam.


  2. Yurong Dai-MSFT 2,846 Reputation points Microsoft External Staff
    2022-07-18T06:40:50.61+00:00

    Hi @TPauk ,

    Not sure if your Windows event log contains the following warning:

    Event 4006, smtpsvc
    "Message delivery to the host 'XXX.XX.XXX.XXX' failed while delivering to the remote domain 'hotmail.com' for the following reason: The remote server did not respond to a connection attempt."

    Mail will not be sent correctly if the SMTP service start-up type is set to "Automatic" (i.e. start immediately on boot). However, if the SMTP service is set to manual start and then started manually from either services.msc or from IIS manager, e-mail will leave the queue and get delivered to the recipients.

    If "Automatic" start-up is used for the service, any attempts to send e-mail will always result in the e-mail getting stuck in the queue and the event 4006 getting written to the event log.

    A work-around is to set the start-up type to "Automatic (Delayed Start)". This will, if you am correctly informed, result in the SMTP service getting started 2 minutes after the last "Automatic" service has been started. This is not an optimal solution, but it'll do for the time being.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the email notification for this thread.

    Best regards,
    Yurong Dai


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.