How can I check if disabling direct send is effective?

0
19
Asked By TechWizard42 On

I've turned off direct send in our system, and I'm looking for the best methods to verify if it has actually been disabled and is functioning as expected. What are some reliable ways to test this?

5 Answers

Answered By QuestioningMind567 On

You can also use SMTP testing tools like telnet or putty. They can show you the results of your connection attempts and whether the messages are being blocked as expected.

Answered By PowerShellPro2023 On

You can use PowerShell for testing too. Here’s a quick script:
```powershell
$from = "[email protected]"
$to = "[email protected]"
$subject = "Test Email via Direct Send"
$body = "This is a test message sent using Direct Send to Exchange Online."
$smtpServer = "your-tenancy.mail.protection.outlook.com"
$smtpPort = 25
Send-MailMessage -From $from -To $to -Subject $subject -Body $body -SmtpServer $smtpServer -Port $smtpPort
```
If that one fails, you’ve successfully confirmed direct send is off. Just make sure any necessary modules are installed.

Answered By EmailExpert99 On

Here’s a simple way to check: Before you disabled direct send, send an email to yourself using that method and make sure you got it. Then, after disabling it, try sending that same email again. If you don’t receive it this time, it means direct send is indeed turned off.

Answered By CuriousUser_101 On

Just to clarify on PowerShell: which modules do I need to install for that script? I thought Send-MailMessage was a native cmdlet, right?

Answered By MailGuru88 On

Just try sending an email using direct send and see what happens. If it fails to go through, you're good! But if it still sends, then you might need to dig deeper into the settings.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.