Hide Senders IP-Adress (not Email-Adress) when sending mail to list
![](https://secure.gravatar.com/avatar/52d3d809c979efb0274102de5d72c9cf.jpg?s=120&d=mm&r=g)
Hi,
I am trying to find a solution for filtering the first-senders ip/host information out of an email header. (I am running mailman with postfix).
I am already doing the anonymization when sending mail for "normal" users by setting smtpd_sasl_authenticated_header=yes and then using header_checks to replace the part of the header where the users ip address can be found with 127.0.0.1.
For mailman I found the anonymous list option, that will hide the email-address of the original sender but not his ip address. What I want to do is leaving the senders email-address in the header but hide the ip-address (or replace it by the list servers address).
[The reason for this (in case this raises questions) are the data retention efforts of germany and other countries.]
So my questions would be:
Is there a possibility for mailman itself to replace the senders address by lets say the mailservers address (IP not Mail).
If not, is there a possibility to add any extra header information (like the Authenticated-Header i mentioned before) by mailman? I would need some unique string inside the header that can be addressed by my rexular expression.
Thanks in advance, Sven.
![](https://secure.gravatar.com/avatar/267565c6ab7816fe29beedf9a9cbcd44.jpg?s=120&d=mm&r=g)
I am trying to find a solution for filtering the first-senders ip/host information out of an email header. (I am running mailman with postfix).
The very first? E.g. the IP of the dialup the user is sending from?
OK. Why not do the same for the other users?
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
![](https://secure.gravatar.com/avatar/52d3d809c979efb0274102de5d72c9cf.jpg?s=120&d=mm&r=g)
Hi,
Am 29.08.2011 17:50, schrieb Ralf Hildebrandt:
exactly.
Right.. I'm sorry, I kind of missed the point here. I didn't understood the meaning of Authenticated-Header exactly. Thought that there is none for mailing lists as users don't authenticate "with passwords". I am now using nearly the same regexp as i do for imap users. I got the regexp from the web and modified it slightly. So far it seems to work without any issues. I poste it here in case anyone is interested. (If anyone sees problems or cases where it wouldn't work, please let me know :))
/^Received: from (.* \([-._[:alnum:]]+ \[[.[:digit:]]{7,15}\]\)).*?([[:space:]]+).*\(Authenticated sender: ([^)]+)\).*by (mx\.server\.net) \(([^)]+)\) with (E?SMTPS?A?) id ([A-F[:digit:]]+)(.*)/ REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])$2(Authenticated sender: $3)${2}with $6 id $7 $8
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Sven Reissmann wrote:
For mailman I found the anonymous list option, that will hide the email-address of the original sender but not his ip address.
What Mailman version is this? Beginning with Mailman 2.1.13, all the Received: headers are removed and some others in addition to the original anonymized set are removed or munged. I realize this is not what you say you want, but I think that currently, all header information that could possibly even partially identify the poster is removed from posts to anonymous lists.
Mailman could easily do this with a custom handler. See <http://wiki.list.org/x/l4A9>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/267565c6ab7816fe29beedf9a9cbcd44.jpg?s=120&d=mm&r=g)
I am trying to find a solution for filtering the first-senders ip/host information out of an email header. (I am running mailman with postfix).
The very first? E.g. the IP of the dialup the user is sending from?
OK. Why not do the same for the other users?
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
![](https://secure.gravatar.com/avatar/52d3d809c979efb0274102de5d72c9cf.jpg?s=120&d=mm&r=g)
Hi,
Am 29.08.2011 17:50, schrieb Ralf Hildebrandt:
exactly.
Right.. I'm sorry, I kind of missed the point here. I didn't understood the meaning of Authenticated-Header exactly. Thought that there is none for mailing lists as users don't authenticate "with passwords". I am now using nearly the same regexp as i do for imap users. I got the regexp from the web and modified it slightly. So far it seems to work without any issues. I poste it here in case anyone is interested. (If anyone sees problems or cases where it wouldn't work, please let me know :))
/^Received: from (.* \([-._[:alnum:]]+ \[[.[:digit:]]{7,15}\]\)).*?([[:space:]]+).*\(Authenticated sender: ([^)]+)\).*by (mx\.server\.net) \(([^)]+)\) with (E?SMTPS?A?) id ([A-F[:digit:]]+)(.*)/ REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])$2(Authenticated sender: $3)${2}with $6 id $7 $8
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Sven Reissmann wrote:
For mailman I found the anonymous list option, that will hide the email-address of the original sender but not his ip address.
What Mailman version is this? Beginning with Mailman 2.1.13, all the Received: headers are removed and some others in addition to the original anonymized set are removed or munged. I realize this is not what you say you want, but I think that currently, all header information that could possibly even partially identify the poster is removed from posts to anonymous lists.
Mailman could easily do this with a custom handler. See <http://wiki.list.org/x/l4A9>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Mark Sapiro
-
Ralf Hildebrandt
-
Sven Reissmann