<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Local Subnet Delivery Only and Filtering]]></title>
		<link>http://www.iredmail.org/forum/topic590-local-subnet-delivery-only-and-filtering.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic590.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Local Subnet Delivery Only and Filtering.]]></description>
		<lastBuildDate>Fri, 29 Jan 2010 19:30:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2534.html#p2534</link>
			<description><![CDATA[<p>I&#039;m getting closer - How do I postmap an entry to: ldap_virtual_alias_maps.cf ?<br />Cheers,<br />Dave</p>]]></description>
			<author><![CDATA[null@example.com (quasimotoca)]]></author>
			<pubDate>Fri, 29 Jan 2010 19:30:09 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2534.html#p2534</guid>
		</item>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2533.html#p2533</link>
			<description><![CDATA[<p>You need to edit <strong>header_checks.pcre</strong>, after modification, run:<br /></p><div class="codebox"><pre><code># postmap hash:/etc/postfix/header_checks.pcre</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 29 Jan 2010 16:17:24 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2533.html#p2533</guid>
		</item>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2532.html#p2532</link>
			<description><![CDATA[<p>Thanks, do I edit header_checks or header_checks.pcre? Basically, how do I postmap it under iRedmail?<br />Cheers,<br />Dave</p>]]></description>
			<author><![CDATA[null@example.com (quasimotoca)]]></author>
			<pubDate>Fri, 29 Jan 2010 16:14:57 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2532.html#p2532</guid>
		</item>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2531.html#p2531</link>
			<description><![CDATA[<p>You can try postfix <strong>header_checks</strong> with <strong>REDIRECT</strong> action. Reference: <a href="http://www.postfix.org/access.5.html">http://www.postfix.org/access.5.html</a></p><p>I didn&#039;t test this before, so i don&#039;t promise it will work for you as expected.</p><p>Good luck <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 29 Jan 2010 16:10:16 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2531.html#p2531</guid>
		</item>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2530.html#p2530</link>
			<description><![CDATA[<p>Sorry for the double post.&nbsp; I forgot to add something.&nbsp; I currently host internal.avema.net with iRedmail on the internal network. So should I create another internal domain?&nbsp; The To: address can actually come from anywhere i.e fred@anywhere.com.&nbsp; The mail needs to be routed based on the source IP of the developers machine (or) a server.&nbsp; So I need to setup filtering something like this:</p><p>if header :contains: &quot;Received&quot; &quot;192.168.4.215&quot; {<br />&nbsp; &nbsp; redirect &quot;developer@internal.avema.net&quot;;<br />} elsif header contains: &quot;Received&quot; &quot;192.168.4.31&quot; {<br />&nbsp; &nbsp; redirect &quot;server@internal.avema.net&quot;;<br />} else {<br />&nbsp; &nbsp; keep;<br />}</p><p>Something along those lines is what I&#039;m trying to do.&nbsp; </p><p>Cheers,<br />Dave</p>]]></description>
			<author><![CDATA[null@example.com (quasimotoca)]]></author>
			<pubDate>Fri, 29 Jan 2010 16:07:33 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2530.html#p2530</guid>
		</item>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2529.html#p2529</link>
			<description><![CDATA[<p>No addition work/modification is required.</p><p>- Create a virtual mail domain (such as <strong>abc.com</strong>, yes, the domain is not required to be an exist domain name)<br />- Craete several mail users under this domain<br />- Send your testing emails to these mail users, all mails will be delivered to local mailboxes.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 29 Jan 2010 16:05:44 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2529.html#p2529</guid>
		</item>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2528.html#p2528</link>
			<description><![CDATA[<p>Wow, thanks for the quick reply! Much appreciated.&nbsp; How would that work?<br />Cheers,<br />Dave</p>]]></description>
			<author><![CDATA[null@example.com (quasimotoca)]]></author>
			<pubDate>Fri, 29 Jan 2010 15:59:38 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2528.html#p2528</guid>
		</item>
		<item>
			<title><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2527.html#p2527</link>
			<description><![CDATA[<div class="quotebox"><cite>quasimotoca wrote:</cite><blockquote><p>2) If mail comes from a specific internal IP address on the subnet redirect it to a specific mail box on iRedmail server. (Note: The To: field can be anything, it&#039;s basically ignored).</p></blockquote></div><p>If postfix hosts domain <strong>example.com</strong>, all mails sent to XXX@example.com will be delivered to local mailboxes. So why not sent your testing mails to users under this virtual mail domain so that all mails won&#039;t be delivered to outside?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 29 Jan 2010 15:56:14 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2527.html#p2527</guid>
		</item>
		<item>
			<title><![CDATA[Local Subnet Delivery Only and Filtering]]></title>
			<link>http://www.iredmail.org/forum/post2526.html#p2526</link>
			<description><![CDATA[<p>Hi:</p><p>I need to run iRemail in a unique development scenario.&nbsp; No mail can leave the subnet and we need to filter internal mail based on source IP address.&nbsp; We&#039;re a development shop and we need to test our software against an MTA but not send to real outside clients.</p><p>I&#039;ve found a few generic solutions on Google but I need something iRedmail specific that deals with LDAP, Sieve and Header_Checks. So the following needs to happen:</p><p>1) Local subnet mail delivery only using iRedmail<br />2) If mail comes from a specific internal IP address on the subnet redirect it to a specific mail box on iRedmail server. (Note: The To: field can be anything, it&#039;s basically ignored).</p><p>Any help greatly appreciated.</p><p>Cheers,<br />Dave Cook<br />Director<br />Gridworkz</p>]]></description>
			<author><![CDATA[null@example.com (quasimotoca)]]></author>
			<pubDate>Fri, 29 Jan 2010 15:39:13 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2526.html#p2526</guid>
		</item>
	</channel>
</rss>
