Hi Benoit -- Thanks for your reply. I will take a look at the code and consider contributing this feature.
Best, Rich On 5/7/2018 10:53 PM, Benoit Tellier wrote: > Hi Rich, > > Very unfortunately such a functionality do not exist today... > > However a new mailet can be contributed for this. I would propose: > > ``` > <mailet match="..." class="RedactReceivedHeaders"> > <hostsToOmit>host1.secret.com,host2.secret.com,145.12.15.168,145.12.15.169</hostsToOmit> > </mailet> > ``` > > This can be implemented in mailet/standard project of this repository: > https://github.com/apache/james-project . An issue should also be > created in the Apache JIRA https://issues.apache.org/jira/browse/JAMES > > Such a functionality seems quite generic and would allow to hide > internal mail infrastructure, thus it seems interesting. Such a > contribution will be highly appreciated. We can, of course, help you, > and provide guidance to implement such a mailet. > > Best regards, > > Benoit Tellier > > Le 07/05/2018 à 21:40, Rich P a écrit : >> In order to hide IP addresses for outbound mail, I configured James to >> remove the Received field using this in mailetcontainer.xml: >> >> >> <mailet match="SenderIsLocal" class="RemoveMimeHeader"> >> <name>Received</name> >> </mailet> >> >> This works but I think it's triggering SPAM filters for downstream >> recipients. Is there a simple way to leave the field intact but redact the >> IP addresses? >> >> >> Thanks. >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org > > . > --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org