<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: hMailServer script to anonymise internal IP addresses</title>
	<atom:link href="http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/feed/" rel="self" type="application/rss+xml" />
	<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/</link>
	<description>Looking beyond the obvious</description>
	<lastBuildDate>Wed, 01 May 2013 06:57:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Alec Waters</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-18965</link>
		<dc:creator><![CDATA[Alec Waters]]></dc:creator>
		<pubDate>Thu, 25 Apr 2013 09:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-18965</guid>
		<description><![CDATA[Hi Edward,

It&#039;s matching the string I want to replace. In the example below, the bit I don&#039;t want to be seen is &quot;some-machine ([172.16.28.16])&quot;, provided it&#039;s been received by mail.example.com:

Received: from some-machine ([172.16.28.16]) by mail.example.com ; Tue, 8 Jun 2010 11:49:22 +0100

So the regex:

myRegExp.Pattern = “\bfrom[\-\sA-Za-z0-9\.\]\[\(\)]*by mail.example.com\b”

...will match on everything from the word &quot;from&quot; up to and including &quot;mail.example.com&quot; (clearly you&#039;d need to change the regex to include your mailserver&#039;s real name rather than mail.example.com.)

Provided the regex matches, the call to .Replace() will swap the mached text for something more benign, leaving you with a much more palatable Received: header, as below:

Received: from mailclient by mail.example.com ; Tue, 8 Jun 2010 11:49:22 +0100

hth,
alec]]></description>
		<content:encoded><![CDATA[<p>Hi Edward,</p>
<p>It&#8217;s matching the string I want to replace. In the example below, the bit I don&#8217;t want to be seen is &#8220;some-machine ([172.16.28.16])&#8221;, provided it&#8217;s been received by mail.example.com:</p>
<p>Received: from some-machine ([172.16.28.16]) by mail.example.com ; Tue, 8 Jun 2010 11:49:22 +0100</p>
<p>So the regex:</p>
<p>myRegExp.Pattern = “\bfrom[\-\sA-Za-z0-9\.\]\[\(\)]*by mail.example.com\b”</p>
<p>&#8230;will match on everything from the word &#8220;from&#8221; up to and including &#8220;mail.example.com&#8221; (clearly you&#8217;d need to change the regex to include your mailserver&#8217;s real name rather than mail.example.com.)</p>
<p>Provided the regex matches, the call to .Replace() will swap the mached text for something more benign, leaving you with a much more palatable Received: header, as below:</p>
<p>Received: from mailclient by mail.example.com ; Tue, 8 Jun 2010 11:49:22 +0100</p>
<p>hth,<br />
alec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward Longoria</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-18921</link>
		<dc:creator><![CDATA[Edward Longoria]]></dc:creator>
		<pubDate>Wed, 24 Apr 2013 04:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-18921</guid>
		<description><![CDATA[Alec, can you explain the pattern matching line:
myRegExp.Pattern = “\bfrom[\-\sA-Za-z0-9\.\]\[\(\)]*by mail.example.com\b”


Thanks!
Edward]]></description>
		<content:encoded><![CDATA[<p>Alec, can you explain the pattern matching line:<br />
myRegExp.Pattern = “\bfrom[\-\sA-Za-z0-9\.\]\[\(\)]*by mail.example.com\b”</p>
<p>Thanks!<br />
Edward</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BGM</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-9161</link>
		<dc:creator><![CDATA[BGM]]></dc:creator>
		<pubDate>Mon, 02 Jul 2012 13:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-9161</guid>
		<description><![CDATA[Okay, thank you for answering.]]></description>
		<content:encoded><![CDATA[<p>Okay, thank you for answering.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alec Waters</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-9159</link>
		<dc:creator><![CDATA[Alec Waters]]></dc:creator>
		<pubDate>Mon, 02 Jul 2012 12:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-9159</guid>
		<description><![CDATA[Hi,

No, I&#039;m afraid not. Best place to ask might be on the hMail forums: &lt;a href=&quot;http://www.hmailserver.com/forum/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.hmailserver.com/forum/&lt;/a&gt;

alec]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>No, I&#8217;m afraid not. Best place to ask might be on the hMail forums: <a href="http://www.hmailserver.com/forum/" target="_blank" rel="nofollow">http://www.hmailserver.com/forum/</a></p>
<p>alec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BGM</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-9096</link>
		<dc:creator><![CDATA[BGM]]></dc:creator>
		<pubDate>Sat, 30 Jun 2012 21:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-9096</guid>
		<description><![CDATA[Hello, Alec, have you any experience with using the hmailserver listserver script?]]></description>
		<content:encoded><![CDATA[<p>Hello, Alec, have you any experience with using the hmailserver listserver script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alec Waters</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-8109</link>
		<dc:creator><![CDATA[Alec Waters]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 08:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-8109</guid>
		<description><![CDATA[Glad you got it working :)]]></description>
		<content:encoded><![CDATA[<p>Glad you got it working <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: It does not seem to be working for me</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-8105</link>
		<dc:creator><![CDATA[It does not seem to be working for me]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 06:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-8105</guid>
		<description><![CDATA[mehh, never mind. I figured it out... my bad :P]]></description>
		<content:encoded><![CDATA[<p>mehh, never mind. I figured it out&#8230; my bad <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: It does not seem to be working for me</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-8104</link>
		<dc:creator><![CDATA[It does not seem to be working for me]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 06:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-8104</guid>
		<description><![CDATA[I&#039;ve looked around trying to understand this script to make it work but I&#039;ve been unable to make it run... I&#039;m on a 192.168.1.0/24 test network. I have replaced 
If Left( oClient.IPAddress, 7 ) = “172.16.&quot; Then
with:
If Left( oClient.IPAddress, 8 ) = “192.168.&quot; Then
But in mail headers I still see the internal IP address from where it was sent:
Received: from [192.168.1.207] (domain.com [ex.ter.nal.ip])]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve looked around trying to understand this script to make it work but I&#8217;ve been unable to make it run&#8230; I&#8217;m on a 192.168.1.0/24 test network. I have replaced<br />
If Left( oClient.IPAddress, 7 ) = “172.16.&#8221; Then<br />
with:<br />
If Left( oClient.IPAddress, 8 ) = “192.168.&#8221; Then<br />
But in mail headers I still see the internal IP address from where it was sent:<br />
Received: from [192.168.1.207] (domain.com [ex.ter.nal.ip])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alec Waters</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-624</link>
		<dc:creator><![CDATA[Alec Waters]]></dc:creator>
		<pubDate>Thu, 08 Jul 2010 15:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-624</guid>
		<description><![CDATA[Hi John,

The script doesn&#039;t actually alter any of the IP addresses used in handling the message, it just masks information in Received: headers.

That said, there&#039;s no reason why you couldn&#039;t alter the script to make use of some kind of counter (stored in a file? or the registry? I don&#039;t know if hMail scripts have the concept of a global variable...?). When the counter ticks past certain values, you could change what the call to myRegExp.Replace() does to alter the string inserted into the Received: header.

Why might you want to do this?

alec]]></description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>The script doesn&#8217;t actually alter any of the IP addresses used in handling the message, it just masks information in Received: headers.</p>
<p>That said, there&#8217;s no reason why you couldn&#8217;t alter the script to make use of some kind of counter (stored in a file? or the registry? I don&#8217;t know if hMail scripts have the concept of a global variable&#8230;?). When the counter ticks past certain values, you could change what the call to myRegExp.Replace() does to alter the string inserted into the Received: header.</p>
<p>Why might you want to do this?</p>
<p>alec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://wirewatcher.wordpress.com/2010/06/08/hmailserver-script-to-anonymise-internal-ip-addresses/#comment-621</link>
		<dc:creator><![CDATA[john]]></dc:creator>
		<pubDate>Thu, 08 Jul 2010 07:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://wirewatcher.wordpress.com/?p=913#comment-621</guid>
		<description><![CDATA[Could this work to send from multiple IP&#039;s instead of annomyzing? For instance, every 1000 messages sent by hMail switch to a different outgoing IP.]]></description>
		<content:encoded><![CDATA[<p>Could this work to send from multiple IP&#8217;s instead of annomyzing? For instance, every 1000 messages sent by hMail switch to a different outgoing IP.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
