Hi,

I would like to re-write the Received header on some messages being
sent using ESMTPSA through my mail server. Specifically the header I
would like to re-write currently looks like the following (names have
been changed to protect the guilty):

"
Received: from workstation.busihome.local
(pool-101-2-122-10.nwrknj.fios.verizon.net [101.2.122.10])
(Authenticated sender: mike) by mail.busicorp.com (Postfix) with
ESMTPSA id 987567F1 for <iop...@gmail.com>; Wed, 8 Nov 2017 00:21:52
-0500 (EST)
"

There's way too much information in there!

I'm thinking the re-written header could look something more like:

"
Received: by mail.busicorp.com (Postfix, from userid 501) id 987567F1;
Wed, 8 Nov 2017 00:21:52 -0500 (EST)
"

This replacement header format was reconnoitered from a message I sent
using sendmail on the commandline on the mail server itself. Meaning I
want messages (or at least the messages that match the pcre expression
that I will ultimately use) to appear as though they were sent
directly from a client on the mail server itself. There is simply no
reason why anyone needs to know that I'm sending emails from home in
my bunny slippers. I am sending mail almost exclusively to large
companies that frequently use aggressive mail filtering appliances. I
do not use my business email to communicate with civilians and
gmailers.

So the question is, is there anything about this re-written header
that could be interpreted as spam? Will the resulting message be^Hlook
legit? Is there a less spammy looking way to do this in general?

Second, many folks are apparently removing this header entirely. That
seems sloppy to me but if you think otherwise, please tell me about
it.

Additionally, my current understanding is that I can implement this
with smtp_header_checks and a PCRE expression. If that is not the
correct method, please give me a pointer.

Mike

Reply via email to