<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Security for a day &#187; Exchange</title>
	<atom:link href="http://www.chris-mohan.com/category/exchange/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chris-mohan.com</link>
	<description>Securing Windows networks or giving it a go in Australia...</description>
	<lastBuildDate>Sat, 31 Dec 2011 12:54:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cisco ASA, Exchange, MessageLabs and Inspect ESTMP don&#8217;t play nicely</title>
		<link>http://www.chris-mohan.com/2009/09/cisco-asa-exchange-messagelabs-and-estmp-filter-dont-play-nicely/</link>
		<comments>http://www.chris-mohan.com/2009/09/cisco-asa-exchange-messagelabs-and-estmp-filter-dont-play-nicely/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 12:18:24 +0000</pubDate>
		<dc:creator>Chris Mohan</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=436</guid>
		<description><![CDATA[Our Exchange Guru, Ben, was responding to a call about missing emails.  After a bit of searching through logs he noticed consistant time out errors on the mail relay from MessageLabs. The MessageLabs logs were also showing constant retries to the mail relay. Time to blame the Firewall &#8230;. Now, I knew that Cisco PIX  &#8216;fixup [...]]]></description>
			<content:encoded><![CDATA[<p>Our Exchange Guru, Ben, was responding to a call about missing emails.  After a bit of searching through logs he noticed consistant time out errors on the mail relay from MessageLabs. The MessageLabs logs were also showing constant retries to the mail relay.</p>
<p>Time to blame the Firewall &#8230;.</p>
<p>Now, I knew that Cisco PIX  &#8216;fixup protocol smtp&#8217; caused Exchange to suffer horribly until it was disabled, but couldn&#8217;t find any offical word on the ASA 8.21 doing the same.</p>
<p>We still had the ESMTP filter in place, as part of Cisco&#8217;s <a title="Understanding Modular Policy Framework " href="http://blog.internetworkexpert.com/2009/04/19/understanding-modular-policy-framework/#more-1025" target="_blank">Modular Policy Framework</a> . I removed the &#8220;inspect esmtp&#8221; statement from our global_policy map and instantly the problems disappeared.</p>
<p>CiscoAsa(config)#class inspection_default</p>
<p>CiscoAsa(config-pmap-c)# no inspect ESMTP</p>
<p>Hum Ho.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2009/09/cisco-asa-exchange-messagelabs-and-estmp-filter-dont-play-nicely/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 Transport Edge server &#8211; Attachments over 10MB disappearing</title>
		<link>http://www.chris-mohan.com/2008/03/exchange-2007-transport-edge-server-attachments-over-10mb-disappearing/</link>
		<comments>http://www.chris-mohan.com/2008/03/exchange-2007-transport-edge-server-attachments-over-10mb-disappearing/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 13:44:17 +0000</pubDate>
		<dc:creator>Chris Mohan</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=22</guid>
		<description><![CDATA[Ah, the further joys of Exchange and Powershell. Was mucking around and decided to send some large files (over 10 mb) between email systems, but they didn&#8217;t arrive. Hmmm After checking that all the standard settings for message limits where okay, things still weren&#8217;t working. A bit of Googling stumbled on to this Basically each [...]]]></description>
			<content:encoded><![CDATA[<p>Ah, the further joys of Exchange and Powershell.</p>
<p>Was mucking around and decided to send some large files (over 10 mb) between email systems, but they didn&#8217;t arrive. Hmmm</p>
<p>After checking that all the standard settings for message limits where okay, things still weren&#8217;t working.</p>
<p>A bit of Googling stumbled on to <a href="http://" title="http://www.msexchange.org/articles-tutorials/exchange-server-2007/management-administration/exchange-2007-message-size-limits.html" target="_blank">this</a>  Basically each connector (both send and receive) in Exchange 2007 has a 10mb limit by default.</p>
<p>Get-SendConnector | list and  Get-ReceiveConnector | list show this very clearly (ish)</p>
<p>Time to change that!</p>
<p>On the Internal Exhange 2007 box from Powershell:</p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">Set-SendConnector –IDENTITY &#8220;Internet&#8221; -MaxMessageSize 50MB<u1:p></u1:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">SET-ReceiveCONNECTOR –IDENTITY &#8220;EX\Default EX&#8221; –MaxMessageSize 50MB</span></p>
<p>Then on the Edge Connector server</p>
<p style="margin: 0cm 0cm 6pt">
<span style="font-size: 8pt">Set-SendConnector –IDENTITY &#8220;Sending to Internet&#8221; -MaxMessageSize 50MB<o:p></o:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">Set-SendConnector –IDENTITY &#8220;Sending to LAN&#8221; -MaxMessageSize 50MB<o:p></o:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">SET-ReceiveCONNECTOR –IDENTITY &#8220;External Inbound&#8221; –MaxMessageSize 50MB<o:p></o:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">SET-ReceiveCONNECTOR –IDENTITY &#8220;Intenal Outbound&#8221; –MaxMessageSize 50MB<o:p></o:p></span></p>
<p><span style="font-size: 8pt"><o:p></o:p></span></p>
<p>Well, that sorted the bugger! I was freely sending up to 50MB files backward and forward.</p>
<p>(-IDENTITY is the name of the exact connector displayed from the Get commands above)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2008/03/exchange-2007-transport-edge-server-attachments-over-10mb-disappearing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubles with deleted attachments in Exchange 2007 Edge Server</title>
		<link>http://www.chris-mohan.com/2008/02/troubles-with-deleted-attachments-in-exchange-2007-edge-server/</link>
		<comments>http://www.chris-mohan.com/2008/02/troubles-with-deleted-attachments-in-exchange-2007-edge-server/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 12:22:25 +0000</pubDate>
		<dc:creator>Chris Mohan</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=21</guid>
		<description><![CDATA[My continuing journey in to the joys of having a non-standard Edge server configuration, just to have a lab to muck around in! Certain file types, mainly .exe were being deleted and replaced with a simple .txt with the name of the deleted file attached to the original email. So I got evil.exe.txt rather than [...]]]></description>
			<content:encoded><![CDATA[<p>My continuing journey in to the joys of having a non-standard Edge server configuration, just to have a lab to muck around in!</p>
<p>Certain file types, mainly .exe were being deleted and replaced with a simple .txt with the name of the deleted file attached to the original email. So I got evil.exe.txt rather than evil.exe.</p>
<p>I turned to Google for Powershell commands on how to configure the Edge server, since the GUI showed nothing active in the Transport rules tab.</p>
<p>Found this command Get-TransportAgent cmdlet to view the configuration of a transport agent on a computer that has the Edge Transport server role or the Hub Transport server role installed in a Microsoft Exchange Server 2007 organization.<br />
<a href="http://technet.microsoft.com/en-us/library/bb123536(EXCHG.80).aspx" target="_blank">http://technet.microsoft.com/en-us/library/bb123536(EXCHG.80).aspx</a></p>
<p>[PS] C:\Documents and Settings\Elvis&gt;Get-TransportAgent</p>
<p>Identity                                           Enabled         Priority<br />
&#8212;&#8212;&#8211;                                           &#8212;&#8212;-         &#8212;&#8212;&#8211;<br />
Connection Filtering Agent                         True            1<br />
Address Rewriting Inbound Agent                    True            2<br />
Edge Rule Agent                                    True            3<br />
Content Filter Agent                               True            4<br />
Sender Id Agent                                    True            5<br />
Sender Filter Agent                                True            6<br />
Recipient Filter Agent                             True            7<br />
Protocol Analysis Agent                            True            8<br />
Attachment Filtering Agent                         True            9<br />
Address Rewriting Outbound Agent                   True            10</p>
<p>This lead me to believe my naughty server was blocking by default and this proved me right:<br />
<a href="http://technet.microsoft.com/en-us/library/aa997139(EXCHG.80).aspx" target="_blank">http://technet.microsoft.com/en-us/library/aa997139(EXCHG.80).aspx</a></p>
<p>By the magic of changing Enable to Disable, I modify the Powershell command and ran it.</p>
<p>Disable-TransportAgent -Identity &#8220;Attachment Filtering agent&#8221;</p>
<p>[PS] C:\Documents and Settings\Elvis&gt;Get-TransportAgent</p>
<p>Identity                                           Enabled         Priority<br />
&#8212;&#8212;&#8211;                                           &#8212;&#8212;-         &#8212;&#8212;&#8211;<br />
Connection Filtering Agent                         True            1<br />
Address Rewriting Inbound Agent                    True            2<br />
Edge Rule Agent                                    True            3<br />
Content Filter Agent                               True            4<br />
Sender Id Agent                                    True            5<br />
Sender Filter Agent                                True            6<br />
Recipient Filter Agent                             True            7<br />
Protocol Analysis Agent                            True            8<br />
<strong>Attachment Filtering Agent                         False           9</strong><br />
Address Rewriting Outbound Agent                   True            10</p>
<p>And as if by magic, my .exe came through to Outlook untouched.</p>
<p>Hopefully, a useful reference if other oddities happen again!</p>
<p>Should reaaaaaallllly think about learning PowerShell sooner rather than later &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2008/02/troubles-with-deleted-attachments-in-exchange-2007-edge-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 Transport Edge server in SMTP Relay mode</title>
		<link>http://www.chris-mohan.com/2008/02/exchange-2007-transport-edge-server-in-smtp-relay-mode/</link>
		<comments>http://www.chris-mohan.com/2008/02/exchange-2007-transport-edge-server-in-smtp-relay-mode/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 13:09:12 +0000</pubDate>
		<dc:creator>Chris Mohan</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Labs]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=20</guid>
		<description><![CDATA[Was struggling to get an Exchange 2007 Transport Edge server working how I wanted it to. I was simply trying to use it as a straight forward standalone relay SMTP server in prep for the whole Exchange 2007 thang. Not connected to Exchange in the slightest way, shape or form. I haven&#8217;t had the chance to [...]]]></description>
			<content:encoded><![CDATA[<p>Was struggling to get an Exchange 2007 Transport Edge server working how I wanted it to.</p>
<p>I was simply trying to use it as a straight forward standalone relay SMTP server in prep for the whole Exchange 2007 thang. Not connected to Exchange in the slightest way, shape or form. I haven&#8217;t had the chance to play with Exchange 2007 and as we all know Ms is a case of next, next, next - finish and it&#8217;s up and running, so didn&#8217;t bother with <a title="RTFM!" href="http://en.wikipedia.org/wiki/RTFM" target="_blank">RTFM</a> &#8230;.</p>
<p>The set up:</p>
<p>Server running Exchange 2007 with SP1, two network cards connected to different network with a DMZ protected by an ISA server.</p>
<p>Two receive connectors:</p>
<p>1 Receiving for <strong>From the Internet</strong>, using the IP address of the external facing network and receiving mail from the external smart host IP address range</p>
<p>1 Receiving for <strong>From the LAN,</strong> using the IP address of the internal facing network and receiving mail from the internal ISA IP address range</p>
<p>Removed any ticks for the Authentication tab and made sure the Permission Groups tab were set to Anonymous Users on the receiver connectors&#8217; properties tabs.</p>
<p>Two Send connectors</p>
<p>1 Sending for <strong>Outbound to the Internet</strong> (Using the * SMTP rule pointing to a smart host)</p>
<p>1 Sending for <strong>External Mail to the LAN</strong> (With the domains of the Internal LAN added and pointing to a smart host that&#8217;s an ISA IP address for the published Exchange server)</p>
<p>Then adding in the authoritative domain on my LAN as Accepted domains.</p>
<p>Everything looked good, so then tried to telnet from the internal network to the mail relay.</p>
<p>220 EdgeServer.DMZ.LOCAL Microsoft ESMTP MAIL Service ready at Sat, 23 Feb 2008 18:59:46 +1100<br />
helo<br />
250 EdgeServer.DMZ.LOCAL Hello [127.0.0.007]<br />
mail from: badbob@chris-mohan.com<br />
250 2.1.0 Sender OK<br />
rcpt to: external@gmail.com<br />
550 5.7.1 Unable to relay</p>
<p>WHAT! Arrgh</p>
<p>After much digging through blogs and other sites &#8211; I couldn&#8217;t find an answer. So I took it to the Exchange boys, Ben and Bundy, at the office.</p>
<p>After much chewing of the fat, Bundy noted the properties of permission groups of the receive connectors, especially the Exchange server permission in bold:</p>
<p>Anonymous</p>
<ul>
<li>Ms-Exch-SMTP-Submit</li>
<li>Ms-Exch-SMTP-Accept-Any-Sender</li>
<li>Ms-Exch-SMTP-Accept-Authoritative-Domain-Sender</li>
<li>Ms-Exch-Accept-Headers-Routing</li>
</ul>
<p>ExchangeServers</p>
<ul>
<li>Ms-Exch-SMTP-Submit</li>
<li><strong>Ms-Exch-SMTP-Accept-Any-Sender</strong></li>
<li><strong>Ms-Exch-SMTP-Accept-Any-Recipient</strong></li>
<li>Ms-Exch-Accept-Authoritative-Domain-Sender</li>
<li>Ms-Exch-Bypass-Anti-Spam</li>
<li>Ms-Exch-SMTP-Accept-Authentication-Flag</li>
<li>Ms-Exch-Bypass-Message-Size-Limit</li>
<li>Ms-Exch-Accept-Headers-Routing</li>
<li>Ms-Exch-Accept-Exch50</li>
<li>Ms-Exch-Accept-Headers-Organization (Note: this permission is not granted to Externally Secured servers.)</li>
<li>Ms-Exch-Accept-Headers-Forest (Note: this permission is not granted to Externally Secured servers)</li>
</ul>
<p>Taken from <a title="Receive Connectors" href="http://technet.microsoft.com/en-us/library/aa996395(EXCHG.80).aspx" target="_blank">here</a></p>
<p>Ben (he of <a title="Clever bugger!" href="http://www.benchristian.com/" target="_blank">www.benchristian.com</a> fame) then took a further leap.</p>
<p>On the <strong>Outbound to the LAN</strong> receive connector, ticked the Exchange servers box on Permission Groups tab and Externally Secured box on Authentication tab.</p>
<p><img class="alignnone size-full wp-image-493" title="Exchange_Edge_Auth" src="http://www.chris-mohan.com/wp-content/uploads/2008/02/Exchange_Edge_Auth.JPG" alt="Exchange_Edge_Auth" width="382" height="238" />  <img class="alignnone size-full wp-image-494" title="Exchange_Edge_Perms" src="http://www.chris-mohan.com/wp-content/uploads/2008/02/Exchange_Edge_Perms.JPG" alt="Exchange_Edge_Perms" width="309" height="178" /></p>
<p>We tried telnet again and the damn thing started relaying! I was most pleased and annoyed at the same time.</p>
<p>Good work lads!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2008/02/exchange-2007-transport-edge-server-in-smtp-relay-mode/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

