Office 365 Exchange ActiveSync settings for the Samsung Galaxy S2 GT-I9100

I’ve recently signed up for Office 365, and I quickly found out that it’s not that easy to get the Galaxy S2 working with it. Here’s the solution.