This video is great at explaining how to stretch your pectoralis properly. I try and do this exercise every day as part of improving my posture.
Here is a photo of myself doing the exercise. The physiotherapist I see has prescribed I do this exercise for fifteen seconds, twice on each side. Over time this stretch should help my shoulders sit naturally further back, and my posture improve.