Score:0

Rule to get 365 to reject email at the SMTP stage

us flag
Vic

I have setup a shared mailbox to use for sending alerts from a powershell script and it works fine.

I now want to lock down the shared mailbox so that it cannot be used to send outside the org, and so I followed the instructions at,

https://www.codetwo.com/admins-blog/how-to-prevent-office-365-users-from-sending-emails-outside-organization/

and it works except that 365 accepts the message and it then leaves a rejection notification in the inbox of said shared mailbox.

Is there a way to drop the message at the smtp connection stage so the inbox doesnt get littered with these rejection notifications? Not a big issue, it just seems a cleaner way to do it.

Cheers.

jp flag
Related: [Is Office 365 Exchange capable of SMTP connection-stage rejection?](https://serverfault.com/q/937654/274176)
I sit in a Tesla and translated this thread with Ai:

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.