I'm trying to setup a relayhost to send all my mail through smtp.office365.com so postfix can queue it and I don't have to stare at a "Authenticating..." dialog box for 10 or 20 seconds.
I actually have things mostly working. I use this: sender_canonical_maps = regexp:/etc/postfix/canonical to change all addresses to the one and only address that works with my office365 account. The problem comes when I receive mail. I'm using fetchmail to suck all my mail out of office365 and deliver it locally where I can run it through a gazillion filters specified in a pipe in my ~/.forward file. I think that is causing all the From: addresses in my incoming mail to also be re-written so that everything looks like it comes from me, which is just a tad confusing. What is a good way to still manage to filter all my incoming mail without re-writing the From: address on the way in? (While still, of course, re-writing the outgoing address so office365 will accept it). I don't insist on using a .forward file or even using fetchmail as long as there is some way I can extract all my mail from office365 an filter it locally.