Disable default IIS STMP email header

Yehuda Ringler 1 Reputation point
2021-07-23T13:26:54.003+00:00

We're trying to set a custom Return-Path header (we use mail kit), and when the raw email content is written to a file, the Return-Path header is set correctly.
And when it's sent for real from IIS, our custom Return-Path header is still there... but there's a second Return-Path header!
It seems that IIS is adding an additional Return-Path header, ignoring what was already there.
Has anyone else experienced this? What did you do about it?

Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.