Home
%3CLINGO-SUB%20id%3D%22lingo-sub-607932%22%20slang%3D%22en-US%22%3ESender%20Rewriting%20Scheme%20(SRS)%20coming%20to%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-607932%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20introduction%20of%20email%20authentication%20mechanisms%20like%20SPF%2C%20DKIM%2C%20and%20DMARC%20have%20improved%20email%20security%20and%20spoofing%20prevention.%20However%2C%20some%20scenarios%20have%20been%20disrupted%20by%20these%20authentication%20mechanisms%2C%20namely%20auto-forwarding%20and%20relaying.%20Here%20in%20Office%20365%2C%20we%20are%20committed%20to%20ensuring%20the%20security%20of%20our%20customers%20and%20the%20general%20integrity%20of%20the%20email%20ecosystem%20that%20we%20are%20a%20part%20of.%20From%20July%2016th%2C%20we%20will%20begin%20rolling%20out%20Sender%20Rewriting%20Scheme%20(SRS)%20functionality%20to%20solve%20the%20problem%20of%20auto-forwarding%20being%20incompatible%20with%20SPF.%20The%20SRS%20feature%20will%20rewrite%20the%20%3CI%3EP1%20From%3C%2FI%3E%20address%20(also%20known%20as%20the%20%3CI%3EEnvelope%20From%3C%2FI%3E%20address)%20for%20all%20applicable%20messages%20being%20sent%20externally%20from%20Office%20365.%20The%20%3CI%3EFrom%3C%2FI%3E%20header%20(also%20known%20as%20%3CI%3EDisplay%20From%3C%2FI%3E%20address%20or%20%3CI%3EP2%20From%3C%2FI%3E%20address)%20which%20is%20displayed%20by%20email%20clients%20will%20remain%20unchanged.%20This%20change%20will%20improve%20deliverability%20of%20applicable%20messages%20since%20SPF%20checks%20that%20were%20failing%20in%20the%20past%20for%20such%20messages%20will%20now%20pass.%20Regarding%20%E2%80%98applicable%E2%80%99%20messages%2C%20we%20anticipate%20the%20following%20scenarios%20will%20be%20affected%20and%20result%20in%20SRS%20rewriting%20the%20%3CI%3EP1%20From%3C%2FI%3E%20address%3A%3COL%3E%0A%20%20%3CLI%3EMessages%20that%20are%20auto-forwarded%20(or%20redirected)%20from%20hosted%20mailboxes%20using%20one%20of%20the%20supported%20methods%20%E2%80%93%20SMTP%20forwarding%2C%20Mailbox%20Rule%20(or%20Inbox%20rule)%20redirection%2C%20Transport%20Rule%20redirection.%3C%2FLI%3E%0A%20%20%3CLI%3EMessages%20that%20are%20auto-forwarded%20(or%20redirected)%20from%20our%20customer%E2%80%99s%20on-premises%20environments%20and%20relayed%20through%20Office%20365.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FP%3E%3CP%20class%3D%22note%22%3E%3CB%3ENote%3A%3C%2FB%3E%20SRS%20rewriting%20would%20also%20rewrite%20the%20%3CI%3EP1%20From%3C%2FI%3E%20address%20of%20messages%20that%20are%20relayed%20from%20our%20customer%E2%80%99s%20on-premises%20environment%2C%20where%20the%20%3CI%3EP1%20From%3C%2FI%3E%20domain%20is%20NOT%20a%20verified%20domain.%20Customers%20should%20only%20be%20sending%20messages%20from%20domains%20in%20their%20Accepted%20Domains%20list.%20Find%20out%20more%20about%20Accepted%20Domains%20in%20Office%20365%20%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj945194(v%3Dexchg.150).aspx%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehere%3C%2FA%3E.%3C%2FP%3EThis%20change%20results%20in%20Non-Delivery%20Reports%20(NDRs)%20returning%20to%20Office%20365%20instead%20of%20the%20original%20sender%20as%20it%20occurs%20today%20without%20SRS.%20Part%20of%20the%20SRS%20implementation%2C%20therefore%2C%20is%20to%20reroute%20returning%20NDRs%20to%20the%20original%20sender%20in%20the%20case%20where%20a%20message%20could%20not%20be%20delivered.%3CH2%20id%3D%22toc-hId-1759342973%22%20id%3D%22toc-hId-1760059998%22%3EDetails%3C%2FH2%3E%0A%3CH3%20id%3D%22toc-hId--989327493%22%20id%3D%22toc-hId--988610468%22%3E%3CU%3EAuto-forwarding%20emails%20for%20an%20Office%20365%20hosted%20mailbox%3C%2FU%3E%3C%2FH3%3EA%20message%20auto-forwarded%20for%20a%20hosted%20mailbox%20by%20mechanisms%20such%20as%20SMTP%20forwarding%20or%20Mailbox%20Rule%20redirection%20or%20Transport%20Rule%20redirection%20will%20have%20the%20%3CI%3EP1%20From%3C%2FI%3E%20rewritten%20before%20it%20leaves%20Office%20365%20using%20the%20following%20pattern%3A%3CP%20class%3D%22code%22%3E%3CFORWARDING%20mailbox%3D%22%22%20username%3D%22%22%3E%2BSRS%3D%3CHASH%3E%3D%3CTIMESTAMP%3E%3D%3CORIGINAL%20sender%3D%22%22%20domain%3D%22%22%3E%3D%3CORIGINAL%20sender%3D%22%22%20username%3D%22%22%3E%40%3CFORWARDING%20mailbox%3D%22%22%20domain%3D%22%22%3E%3C%2FFORWARDING%3E%3C%2FORIGINAL%3E%3C%2FORIGINAL%3E%3C%2FTIMESTAMP%3E%3C%2FHASH%3E%3C%2FFORWARDING%3E%3C%2FP%3EExample%3A%20A%20message%20is%20sent%20from%20Bob%20(%3CA%3Ebob%40fabrikam.com%3C%2FA%3E)%20to%20John's%20mailbox%20in%20Office%20365%20(%3CA%3Ejohn.work%40contoso.com%3C%2FA%3E).%20John%20has%20set%20up%20auto-forwarding%20to%20his%20home%20email%20address%20(%3CA%3Ejohn.home%40example.com%3C%2FA%3E).%3CTABLE%20border%3D%221%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2296%22%20valign%3D%22top%22%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22170%22%20valign%3D%22top%22%3EOriginal%20message%3C%2FTD%3E%0A%3CTD%20width%3D%22344%22%20valign%3D%22top%22%3EAuto-forwarded%20message%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2296%22%20valign%3D%22top%22%3ERecipient%3C%2FTD%3E%0A%3CTD%20width%3D%22172%22%20valign%3D%22top%22%3E%3CA%3Ejohn.work%40contoso.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22342%22%20valign%3D%22top%22%3E%3CA%3Ejohn.home%40example.com%3C%2FA%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2296%22%20valign%3D%22top%22%3EP1%20From%3C%2FTD%3E%0A%3CTD%20width%3D%22170%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22357%22%20valign%3D%22top%22%3E%3CB%3E%3CI%3E%3CA%3Ejohn.work%2BSRS%3D44ldt%3DIX%3Dfabrikam.com%3Dbob%40contoso.com%3C%2FA%3E%3C%2FI%3E%3C%2FB%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2298%22%20valign%3D%22top%22%3EFrom%20header%3C%2FTD%3E%0A%3CTD%20width%3D%22170%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22342%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH3%20id%3D%22toc-hId-753482842%22%20id%3D%22toc-hId-754199867%22%3E%3CU%3ERelaying%20from%20a%20customer's%20on-premises%20server%3C%2FU%3E%3C%2FH3%3EA%20message%20relayed%20from%20a%20customer's%20on-premises%20server%20or%20application%20through%20Office%20365%20from%20a%20non-verified%20domain%20will%20have%20the%20%3CI%3EP1%20From%3C%2FI%3E%20address%20rewritten%20before%20leaving%20Office%20365%20using%20the%20following%20pattern%3A%3CP%20class%3D%22code%22%3Ebounces%2BSRS%3D%3CHASH%3E%3D%3CTIMESTAMP%3E%3D%3CORIGINAL%20sender%3D%22%22%20domain%3D%22%22%3E%3D%3CORIGINAL%20sender%3D%22%22%20username%3D%22%22%3E%40%3CCUSTOMER%3E%3C%2FCUSTOMER%3E%3C%2FORIGINAL%3E%3C%2FORIGINAL%3E%3C%2FTIMESTAMP%3E%3C%2FHASH%3E%3C%2FP%3E%3CB%3EImportant%3A%20%3C%2FB%3EIn%20order%20to%20receive%20NDRs%20for%20relayed%20messages%20that%20are%20rewritten%20by%20SRS%2C%20a%20mailbox%20(either%20hosted%20or%20on-premises)%20needs%20to%20be%20created%20with%20the%20username%20'%3CI%3Ebounces%3C%2FI%3E'%20and%20the%20domain%20being%20the%20default%20Accepted%20Domain%20of%20the%20customer.%20Example%3A%20A%20message%20is%20sent%20from%20Bob%20(%3CA%3Ebob%40fabrikam.com%3C%2FA%3E)%20to%20John's%20mailbox%20(%3CA%3Ejohn.onprem%40contoso.com%3C%2FA%3E)%20on%20his%20company's%20own%20Exchange%20server.%20John%20has%20set%20up%20auto-forwarding%20to%20his%20home%20email%20address%20(john.home%40example.com).%3CTABLE%20border%3D%221%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2298%22%20valign%3D%22top%22%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22189%22%20valign%3D%22top%22%3EOriginal%20message%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3ERelayed%20message%20received%20by%20Office%20365%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3ERelayed%20message%20sent%20from%20Office%20365%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2298%22%20valign%3D%22top%22%3ERecipient%3C%2FTD%3E%0A%3CTD%20width%3D%22189%22%20valign%3D%22top%22%3E%3CA%3Ejohn.onprem%40contoso.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3E%3CA%3Ejohn.home%40example.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3E%3CA%3Ejohn.home%40example.com%3C%2FA%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2298%22%20valign%3D%22top%22%3EP1%20From%3C%2FTD%3E%0A%3CTD%20width%3D%22189%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3E%3CB%3E%3CI%3E%3CA%3Ebounces%2BSRS%3D44ldt%3DIX%3Dfabrikam.com%3D%20%3C%2FA%3E%3C%2FI%3E%3C%2FB%3E%3CB%3E%3CI%3E%3CA%3Ebob%40contoso.com%3C%2FA%3E%3C%2FI%3E%3C%2FB%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2298%22%20valign%3D%22top%22%3EFrom%20header%3C%2FTD%3E%0A%3CTD%20width%3D%22189%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3CTD%20width%3D%22347%22%20valign%3D%22top%22%3E%3CA%3Ebob%40fabrikam.com%3C%2FA%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3EFind%20out%20more%20about%20the%20draft%20SRS%20standard%20that%20this%20change%20took%20design%20ideas%20from%2C%20here%3A%20%3CA%20href%3D%22http%3A%2F%2Fwww.openspf.org%2FSRS%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fwww.openspf.org%2FSRS%3C%2FA%3E%20%3CSPAN%20class%3D%22author%22%3ESean%20Stevenson%3C%2FSPAN%3E%3C%2FLINGO-BODY%3E

The introduction of email authentication mechanisms like SPF, DKIM, and DMARC have improved email security and spoofing prevention. However, some scenarios have been disrupted by these authentication mechanisms, namely auto-forwarding and relaying. Here in Office 365, we are committed to ensuring the security of our customers and the general integrity of the email ecosystem that we are a part of. From July 16th, we will begin rolling out Sender Rewriting Scheme (SRS) functionality to solve the problem of auto-forwarding being incompatible with SPF. The SRS feature will rewrite the P1 From address (also known as the Envelope From address) for all applicable messages being sent externally from Office 365. The From header (also known as Display From address or P2 From address) which is displayed by email clients will remain unchanged. This change will improve deliverability of applicable messages since SPF checks that were failing in the past for such messages will now pass. Regarding ‘applicable’ messages, we anticipate the following scenarios will be affected and result in SRS rewriting the P1 From address:

  1. Messages that are auto-forwarded (or redirected) from hosted mailboxes using one of the supported methods – SMTP forwarding, Mailbox Rule (or Inbox rule) redirection, Transport Rule redirection.
  2. Messages that are auto-forwarded (or redirected) from our customer’s on-premises environments and relayed through Office 365.

Note: SRS rewriting would also rewrite the P1 From address of messages that are relayed from our customer’s on-premises environment, where the P1 From domain is NOT a verified domain. Customers should only be sending messages from domains in their Accepted Domains list. Find out more about Accepted Domains in Office 365 here.

This change results in Non-Delivery Reports (NDRs) returning to Office 365 instead of the original sender as it occurs today without SRS. Part of the SRS implementation, therefore, is to reroute returning NDRs to the original sender in the case where a message could not be delivered.

Details

Auto-forwarding emails for an Office 365 hosted mailbox

A message auto-forwarded for a hosted mailbox by mechanisms such as SMTP forwarding or Mailbox Rule redirection or Transport Rule redirection will have the P1 From rewritten before it leaves Office 365 using the following pattern:

<Forwarding Mailbox Username>+SRS=<Hash>=<Timestamp>=<Original Sender Domain>=<Original Sender Username>@<Forwarding Mailbox Domain>

Example: A message is sent from Bob (bob@fabrikam.com) to John's mailbox in Office 365 (john.work@contoso.com). John has set up auto-forwarding to his home email address (john.home@example.com).
Original message Auto-forwarded message
Recipient john.work@contoso.com john.home@example.com
P1 From bob@fabrikam.com john.work+SRS=44ldt=IX=fabrikam.com=bob@contoso.com
From header bob@fabrikam.com bob@fabrikam.com

Relaying from a customer's on-premises server

A message relayed from a customer's on-premises server or application through Office 365 from a non-verified domain will have the P1 From address rewritten before leaving Office 365 using the following pattern:

bounces+SRS=<Hash>=<Timestamp>=<Original Sender Domain>=<Original Sender Username>@<Customer's Default Accepted Domain>

Important: In order to receive NDRs for relayed messages that are rewritten by SRS, a mailbox (either hosted or on-premises) needs to be created with the username 'bounces' and the domain being the default Accepted Domain of the customer. Example: A message is sent from Bob (bob@fabrikam.com) to John's mailbox (john.onprem@contoso.com) on his company's own Exchange server. John has set up auto-forwarding to his home email address (john.home@example.com).
Original message Relayed message received by Office 365 Relayed message sent from Office 365
Recipient john.onprem@contoso.com john.home@example.com john.home@example.com
P1 From bob@fabrikam.com bob@fabrikam.com bounces+SRS=44ldt=IX=fabrikam.com= bob@contoso.com
From header bob@fabrikam.com bob@fabrikam.com bob@fabrikam.com
Find out more about the draft SRS standard that this change took design ideas from, here: http://www.openspf.org/SRS Sean Stevenson
19 Comments
Not applicable
That's a good start. can you clarify how is this TIMESTAMP used and how long is the expiry. However it doesn't solve the problem on the senders having DMARC implementation which would continue to fail. What are the plans around that, Authenticated Received Chain (ARC) is suppose to sort that out.
Not applicable
on-premise? I believe the correct grammar is on-premises or on-prem for short.

Also, I believe there is a typo in the last sentence as it doesn't make any sense.

Not applicable
@Keith - thanks, all fixed!
Not applicable
If the P1 address has been re-written, it will be different from P2 address, which will bring the risk to fail the DMARC validation, is this a potential problem caused by SRS?
Not applicable
How will we know that this has been rolled out to us?
Not applicable
Is this going to work with distribution groups as well?
Not applicable
Yes, this works for Distribution Group which has external contact as member
Not applicable
How can I check if SRS has rolled out to a particular instance of Office365? Is this available on on-prem versions of Exchange as well?
Not applicable
Any status update on the roll-out of SRS. I'm not seeing any evidence of this on our tenant, but this post suggest it was to start rolling out in July
Not applicable
Will an Exchange Online Admin be able to force this. Like a address rewrite transport rule?

https://community.spiceworks.com/topic/2167367-automaticlly-change-outgoing-from-address-for-emails-to-domain-exchange-online

Not applicable
Any update on this? The roadmap still shows Q2.

https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&searchterms=Sender%2CRewriting%2CScheme

I don't see this working in our tenant yet.

Contributor
Any update on this? I am not seeing this working in our tenant

@Dan Myhre - Hey Dan, I checked in with engineering and there are a few places it isn't yet turned on due to a technical challenge we hit - aim is to resolve by end of August. Sorry for the delay. 

Contributor
@greg Taylor - thanks for the update! Will look to re-test this in early September then. Thanks!
Occasional Visitor

@Greg Taylor - EXCHANGE  @Dan Myhre Hello Greg, Dan, I am also noticing the SRS does not seem to be active on multiple of my tenants. Is there any way to test/check this function and Dan, did it start working for you already? I notice it is no longer in the roadmap but available as a regular function described in https://support.microsoft.com/en-au/help/4490129/sender-rewriting-scheme-srs-in-office-365.

 

Thanks so much in advance!

 

Sietse

@sietseklomp - The final SRS rollout to still going (it takes a while to touch every server we have) but most EXO tenants should have it enabled. SRS can be tested by setting up forwarding and checking forwarded emails for the rewriting of the Return Path header.

 

If you don't see SRS in a month, let us know and we can investigate.

Occasional Visitor

Dear @Greg Taylor - EXCHANGE,

 

Thank for your quick reply. 

 

Checking the return path, the SRS seems to work: 

testdistributionlist+SRS=TNTem=XF=sending.domain=s.klomp@forwarding.domain

 What I do not understand is that even though SRS seems to work, mails from sending.domain sent to a distribution list on our server and delivered to a different mailbox on sending.domain are bounced (by the mail server at sending.domain) due to spf violation. Our spf setting does not give problems if we send a message directly to sending.domain mailboxes, and their spf record should not be relevant due to the SRS. 

 

Looking further down in the mail headers I do notice a second Return Path field showing the actual sender address (no SRS) and the From field remains set to the actual sender address also. Any hints where I can check this: "The SRS feature rewrites the P1 From address (also known as the Envelope From address) for all applicable messages that are sent externally from Office 365"

 

Anyway, I am afraid to over-ask here and am already happy with the above feedback you gave me and the confirmation that SRS works and something else is causing these problems.

 

Thanks again! 

 

Sietse

Occasional Visitor

Dear @Greg Taylor - EXCHANGE ,

 

We have identified the problem. It is not due to SRS failing (works fine and rewrites the P1 header). Problem is that the P2 header remains unchanged and Sender ID protection causes the message to bounce. We understand Microsoft has been working on implementing ARC to prevent this from happening, so we are hoping this becomes available soon. 

 

Thanks again for your support. 

 

Sietse

Regular Visitor

Hi, Can the SRS rewrites the envelop-from address with primary address of the mailbox with auto-forward to external address?

 

If a message is forwarded in this way and the destination MTA rejects the message (for example, a large message size), Exchange Online sends the NDR to the address of the original recipient instead of the original sender.

In case of spam forwarding it is more interesting.

 

Is it possible to disable SRS on a specific tenant?