Server 2022 - SMTP Server Install and Customize to avoid IIS 6 MMC crash

 NOTE: SMTP service is depreciated in Server 2022 however it still works if modified as listed below.


To install SMTP services and not other unneeded IIS tools on Server 2022

Open Powershell as administrator and run

Install-WindowsFeature -Name SMTP-Server

Set-Service SMTPSVC -StartupType Automatic


Net Stop SMTPSVC

Net Stop IISADMIN

Make a Backup Copy of  “C:\Windows\System32\inetsrv\MetaBase.xml”

Copy “C:\Windows\System32\inetsrv\MetaBase.xml” to Documents and Edit

Find: <IIsSmtpServer Location =“/LM/SmtpSvc/1”

Add (Settings are alphabetical): RelayIpList=“”

Save File

Replace “C:\Windows\System32\inetsrv\MetaBase.xml” with edit copy

Net Start IISAdmin

Net Start SMTPSVC


After configuring your SMTP server:

To test SMTP flow install Telnet via Powershell:

Install-WindowsFeature -Name Telnet-Client

telnet smtp.clientdomain.com 25   (or IP)


EHLO yourdomain.com

MAIL FROM: internalsender@clientdomain.com

RCPT TO: externalrecipient@testdomain.com

DATA

From: internalsender@clientdomain.com

To: externalrecipient@testdomain.com

Subject: Test SMTP email

This is a test body.

.

(Enter, Enter)


You should then receive a test email if your SMTP server is setup properly




Comments

Popular posts from this blog

FRS to DFSR Post Cleanup “File Replication NtFrs Stopped”

Domain Migration SubinACL /Migratetodomain How To:

How to configure HP LaserJet Printer IPsec Encryption