The SMTP exit module does not work on Windows Server Core

Assume the following scenario:

  • A certification authority is installed on Windows Server Core.
  • The SMTP exit module supplied with the certification authority is configured.
  • However, the certification authority does not send e-mails.
  • In the event log, event no. 46 is logged with the following error message:
The "Windows default" Exit Module "Initialize" method returned an error. Class not registered The returned status code is 0x80040154 (-2147221164). The Certification Authority was unable to initialize email messaging objects.

Event 46, CertificationAuthority: exit module "Initialize" method returned "Class not registered", status code 0x80040154 (-2147221164)

Cause

Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the application of rule sets to realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can be downloaded via GitHub and used free of charge. Professional maintenance is also offered.

The "Windows Default" exit module cannot be used on Windows Server Core because the Collaboration Data Objects (CDO) libraries required for e-mail dispatch by the module are not installed here.

If the functions are not needed, the exit module can be completely deactivated .

An example project for creating your own exit module can be found in the article "Create an exit module for the certification authority in C# ".

External sources