Score:0

Server 2022 SMTP Server issue

cn flag

This is a new installation of Server 2022 Standard 21H2. I'm trying to configure the SMTP Server so that a client application can send emails internally.

The first thing I noticed is that when I open IIS 6.0 Manager and right click the SMTP virtual server, it usually generates the following error:

SMTP Server Error

If I try often enough, I can get in and configure the settings. The next thing though is that whenever I attempt to send a message through the smtp server, the smtp service stops and the following event is logged:

Event Log

Can anyone suggest where I would start to troubleshoot this please?

Vadim avatar
ar flag
https://techcommunity.microsoft.com/t5/windows-server-insiders/server-buld-20303-1-iis-6-manager-crashes-trying-to-edit-smtp/m-p/2215174
julien.giband avatar
cn flag
@IanPendlebury, your solution of using hMailServer seems to me like the best way to solve this. I think you should answer yourself with that, as it would help others outs
Score:3
mx flag

My findings are similar to the other answers here, but it seems I needed to add a few steps (under Microsoft Windows Server 2022 Standard):

  • By default, I can enable SMTP and listen for connections, but when I attempt to send email to its port, the SMTP service crashes. Also, when I attempt to access Properties of [SMTP Virtual Server #1], IIS 6.0 Manager pops up this Snapin Error:

MMC has detected an error in a snap-in. It is recommended that you shut down and restart MMC.

Here is the procedure that worked for me:

  1. Stop the Simple Mail Transfer Protocol (SMTP) service
  2. Stop the IIS Admin Service service
  3. Edit (privileged session) C:\Windows\System32\inetsrv\MetaBase.xml
  4. Under <IIsSmtpServer Location ="/LM/SmtpSvc/1", Set RelayIpList="" as described in @Andrew's answer to this question, and save the file
  5. Start the Simple Mail Transfer Protocol (SMTP) service
  6. Important: now, run IIS 6.0 Manager, right-click [SMTP Virtual Server #1], click Properties, open the Access tab, click the Connection... button and click OK and then do the same with the Relay... button.
  7. Now click OK to close the [SMTP Virtual Server #1] window.

The preceding updates your MetaBase.xml file and causes SMTP to function correctly.

admalledd avatar
ma flag
For ref, I had to set `RelayIpList=""` in both `"/LM/SmtpSvc"` and `"/LM/SmtpSvc/1"` for who knows why.
Score:1
mn flag

In order to fix that problem and make the SMTP virtual server editable in the IIS 6.0 Manager and also stop the crashes when the server receives an email, do the following:

  1. stop the SMTP service
  2. open the file C:\Windows\System32\inetsrv\MetaBase.xml
  3. locate the Section <IIsSmtpServer Location ="/LM/SmtpSvc/1" (the "1" is important)
  4. add the following attributes:

  • AccessSSLFlags="0"

  • AuthFlags="AuthAnonymous"

  • IPSecurity="18000080200000807800008080000080010000008800000000000000000000000400000003000000020000000200000002000000e00000009c000080020000000100000002000000f000000090000080020000000200000002000000fe00000094000080020000000200000004000000000000008800008000000000000000000000000000000000ffffffff7f000001fffff000fffffe00c2f67600ffffe000d4190000"

  • RelayForAuth="4294967295"

  • SaslLogonDomain=""

  • SmtpInboundCommandSupportOptions="7697601"


  1. start SMTP service again

I case you wonder, these attributes are found in the same section on Windows Server 2019. You can also just copy this whole section from a Windows 2019 MetaBase.xml onto you Windows 2022 server...works as well

Do no ask me why this works or why these attributes are different on Windows 2019 and 2022. It's just how I get all our 2022/IIS/SMTP servers running....copy over the config from a Windows 2019 system.

Ian Pendlebury avatar
cn flag
Thanks for the reply. A few weeks ago I gave up trying to fix this. I removed the SMTP Server and installed the 3rd party hMailServer. It works well. I wonder if i'm brave enough to have another go with the inbuilt SMTP server?. I would prefer to keep everything under one roof We don't have any 2019 servers to copy from. We went from SBS 2008 straight to Server 2021.
ph flag
Unfortunately, suggestion by user954709 didn't do the trick for me.
julien.giband avatar
cn flag
This is simply a set of preset parameters for the IIS SMTP server. Will only work if those parameters mostly suit your use case, which will probably not be the case unfortunately
Score:0
fr flag

i tried this but iisAdmin service won't start after doing so -- error --The IIS Admin Service service terminated with the following service-specific error: Invalid Signature.

any ideas?

Score:0
vn flag

Microsoft announced the death of SMTP components with Windows Server 2012,

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831568(v=ws.11)#smtp

Thus, any attempt to bring ashes back won't end up very well.

Please switch to other SMTP alternatives.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.