question

AvinashKashyap-7067 avatar image
0 Votes"
AvinashKashyap-7067 asked joyceshen-MSFT commented

Identify auto generated Emails from headers

How can we identify if a mail received is an auto-generated one (OOO) from its headers?
It is required for functionality in the product, otherwise, we are entering in an infinite loop of auto-generated emails to and forth.

office-exchange-server-administrationoffice-outlook-itprooffice-exchange-online-itprooffice-exchange-server-mailflow
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AvinashKashyap-7067

Agree with Andy, I checked the message header of an oof message Auto-Submitted: auto-generated in my environment.

And a related thread here: How to set Auto-Submitted email header sending email via GRAPH API


If an Answer 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.


0 Votes 0 ·

Hi @AvinashKashyap-7067

Any progress? Have you checked the suggestion below?


If an Answer 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.


0 Votes 0 ·

1 Answer

AndyDavid avatar image
0 Votes"
AndyDavid answered

If the messaging system follows RFC3834

https://datatracker.ietf.org/doc/html/rfc3834


Automatic responses SHOULD NOT be issued in response to any
message which contains an Auto-Submitted header field (see below),
where that field has any value other than "no".


As an example, in Exchange Online, the following is the header of an OOF:
Auto-Submitted: auto-generated

So look for that header and handle based on that.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.