#1489866: support X-Originating-IP header in outgoing mail

fulfills trac ticket #1489866