365 Shared Mailbox - no storage

NW Admin 41 Reputation points
2021-03-01T23:35:30.553+00:00

Hello,
I am setting up automated email functionality for an application. We are on 365.

I need to setup a mailbox so that the server / software can authentication with 365 when sending the email. However, I don't want it to save anything. I don't want the sent messages to accumulate in the shared mailbox's. Sent Items or anywhere else. This is because there could be some confidential information, and I think it is best to not save it anywhere unnecessarily.

How do I do that? How do I setup a mailbox that can authenticate and send mail, but not actually store the mail that it sends?

I looked in the transport rules, but didn't see any options that looked like what I wanted. I also looked at the Retention policy. It looks like there is a 1 day policy for sent items. I could use that, but I was hoping to not store at all.

Thanks,

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,173 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,345 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kael Yao-MSFT 37,496 Reputation points Microsoft Vendor
    2021-03-02T05:18:37.687+00:00

    Hi, @NW Admin

    You may also have the application authenticated with Office 365 and use SMTP AUTH client submission to send emails.
    The detailed steps are introduced in this document: How to set up a multifunction device or application to send email using Microsoft 365 or Office 365
    Please refer to the Option 1 part.

    While, by default it will leave a copy of the message in the "sent items" folder.
    You may need to run this command to change the setting of the mailbox via Powershell:

    Set-Mailbox -Identity <the specific mailbox> -MessageCopyForSMTPClientSubmissionEnabled $false  
    

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


2 additional answers

Sort by: Most helpful
  1. Andy David - MVP 141.5K Reputation points MVP
    2021-03-01T23:56:48.79+00:00

    Why do you need to authenticate to 365? Just send the email anonymously from the application as that mailbox. The messages wont exist anywhere except in the recipients mailbox ( wherever you are sending the, to) and within the application itself.


  2. NW Admin 41 Reputation points
    2021-03-03T15:09:19.16+00:00

    Thanks to both of you for your help. The -MessageCopyForSMTPClientSubmissionEnabled seems to have provided the intended functionality.

    0 comments No comments