<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Local Subnet Delivery Only and Filtering]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic590.xml" />
	<updated>2010-01-29T19:30:09Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic590-local-subnet-delivery-only-and-filtering.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2534.html#p2534" />
			<content type="html"><![CDATA[<p>I&#039;m getting closer - How do I postmap an entry to: ldap_virtual_alias_maps.cf ?<br />Cheers,<br />Dave</p>]]></content>
			<author>
				<name><![CDATA[quasimotoca]]></name>
				<uri>http://www.iredmail.org/forum/user1259.html</uri>
			</author>
			<updated>2010-01-29T19:30:09Z</updated>
			<id>http://www.iredmail.org/forum/post2534.html#p2534</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2533.html#p2533" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-01-29T16:17:24Z</updated>
			<id>http://www.iredmail.org/forum/post2533.html#p2533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2532.html#p2532" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[quasimotoca]]></name>
				<uri>http://www.iredmail.org/forum/user1259.html</uri>
			</author>
			<updated>2010-01-29T16:14:57Z</updated>
			<id>http://www.iredmail.org/forum/post2532.html#p2532</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2531.html#p2531" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-01-29T16:10:16Z</updated>
			<id>http://www.iredmail.org/forum/post2531.html#p2531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2530.html#p2530" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[quasimotoca]]></name>
				<uri>http://www.iredmail.org/forum/user1259.html</uri>
			</author>
			<updated>2010-01-29T16:07:33Z</updated>
			<id>http://www.iredmail.org/forum/post2530.html#p2530</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2529.html#p2529" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-01-29T16:05:44Z</updated>
			<id>http://www.iredmail.org/forum/post2529.html#p2529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2528.html#p2528" />
			<content type="html"><![CDATA[<p>Wow, thanks for the quick reply! Much appreciated.&nbsp; How would that work?<br />Cheers,<br />Dave</p>]]></content>
			<author>
				<name><![CDATA[quasimotoca]]></name>
				<uri>http://www.iredmail.org/forum/user1259.html</uri>
			</author>
			<updated>2010-01-29T15:59:38Z</updated>
			<id>http://www.iredmail.org/forum/post2528.html#p2528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2527.html#p2527" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-01-29T15:56:14Z</updated>
			<id>http://www.iredmail.org/forum/post2527.html#p2527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Local Subnet Delivery Only and Filtering]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2526.html#p2526" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[quasimotoca]]></name>
				<uri>http://www.iredmail.org/forum/user1259.html</uri>
			</author>
			<updated>2010-01-29T15:39:13Z</updated>
			<id>http://www.iredmail.org/forum/post2526.html#p2526</id>
		</entry>
</feed>
