>>>>> "Viktor" == Viktor Dukhovni <postfix-us...@dukhovni.org> writes:
>> On Apr 10, 2017, at 4:01 PM, John Stoffel <j...@stoffel.org> wrote: >> >> Since I built 2.11.9 by hand, I'm willing to do this hack as well I >> think. It's a total hack too... and I'm still amazed I'm the only one >> seeing this. But maybe most people who use Office365 for spam >> filtering also use Exchange on the inside and not the setup we have >> which is due to Lotus Notes, Mailman and Exchange all being valid >> internal targets. Whee... >> >> Looks like I just need to hack src/global/mail_copy.c and >> src/global/delivered_hrd.c, or better yet, just change the >> global/header_opts.c to maybe be something like this: >> >> diff -ur postfix-2.11.9/src/global/header_opts.c >> postfix-2.11.9.jfs/src/global/header_opts.c >> --- postfix-2.11.9/src/global/header_opts.c 2017-04-10 >> 12:50:34.381884494 -0700 >> +++ postfix-2.11.9.jfs/src/global/header_opts.c 2008-05-08 >> 13:41:35.000000000 -0700 >> @@ -62,7 +62,7 @@ >> "Content-Length", HDR_CONTENT_LENGTH, HDR_OPT_DROP, >> "Content-Transfer-Encoding", HDR_CONTENT_TRANSFER_ENCODING, HDR_OPT_MIME, >> "Content-Type", HDR_CONTENT_TYPE, HDR_OPT_MIME, >> - "Delivered-To", HDR_DELIVERED_TO, 0, >> + "My-Delivered-To", HDR_DELIVERED_TO, 0, >> "Disposition-Notification-To", HDR_DISP_NOTIFICATION, HDR_OPT_SENDER, >> "Date", HDR_DATE, 0, >> "Errors-To", HDR_ERRORS_TO, HDR_OPT_SENDER, >> >> >> Which certainly can't hurt as a test. Viktor> All three need to be changed to a consistent replacement: Viktor> src/global/header_opts.c: "Delivered-To", HDR_DELIVERED_TO, 0, Viktor> src/global/mail_copy.c: vstream_fprintf(dst, "Delivered-To: %s%s", vstring_str(buf), eol); Viktor> src/local/forward.c: rec_fprintf(info->cleanup, REC_TYPE_NORM, "Delivered-To: %s", Well I did this and put it into production and it seems to be working just fine. I can now get at least one test email released from quarrantine and have it get delivered properly. I've also got a ticket opened with Outlook.com, but I don't hold alot of faith in them getting back to me. A big thank you to Viktor for his help, and of course to Wietse for writing this in the first place. I shudder to think what it would have taken to do this in Sendmail... John