> On Apr 10, 2017, at 4:01 PM, John Stoffel <[email protected]> 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.
All three need to be changed to a consistent replacement:
src/global/header_opts.c: "Delivered-To", HDR_DELIVERED_TO, 0,
src/global/mail_copy.c: vstream_fprintf(dst, "Delivered-To: %s%s",
vstring_str(buf), eol);
src/local/forward.c: rec_fprintf(info->cleanup, REC_TYPE_NORM,
"Delivered-To: %s",
--
Viktor.