<div>Thanks for the suggestion. I had thought of that, but have not found a way to do so with Sendmail&#39;s config that can be as granular as affecting a specific user only (rather than system wide) - which is why I&#39;m turning to MailScanner, as it is a lot more flexible.<br>
</div>
<div>If anyone has any thought as to doing it at the MTA level, I&#39;m all ears.</div>
<div><br> </div>
<div class="gmail_quote">On Tue, Dec 8, 2009 at 1:32 PM, Rick Cooper <span dir="ltr">&lt;<a href="mailto:rcooper@dwford.com">rcooper@dwford.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"></font> </div><br>
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:mailscanner-bounces@lists.mailscanner.info" target="_blank">mailscanner-bounces@lists.mailscanner.info</a> [mailto:<a href="mailto:mailscanner-bounces@lists.mailscanner.info" target="_blank">mailscanner-bounces@lists.mailscanner.info</a>] <b>On Behalf Of </b>Edward Dam<br>
<b>Sent:</b> Tuesday, December 08, 2009 12:51 PM<br><b>To:</b> <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.info</a><br><b>Subject:</b> Email Address allowed delivery from single domain<br>
</font><br></div>
<div>
<div></div>
<div class="h5">
<div></div>
<div>Hi all,</div>
<div> </div>
<div>I hope you can help. We&#39;re running Mailscanner and it&#39;s working great. What I need to do now is create a rule that allows a specific user delivery of email from a single domain only.</div>
<div> </div>
<div>For example:</div>
<div> </div>
<div><a href="mailto:user1@example.com" target="_blank">user1@example.com</a> should only be allowed incoming email from  <a href="mailto:*@foo.com" target="_blank">*@foo.com</a></div>
<div> </div>
<div>However all other users at <a href="http://example.com/" target="_blank">example.com</a> should receive all email as they normally would. Basically we need to restrict email for a specific user to a single incoming domain.</div>

<div> </div>
<div>Based on the documentation I have read, I am pretty sure that this can should be able to be done with a Custom Function and a perl script, but I am unsure as to how to call the perl script (and what roughly it would look like, as my perl scripting is less than stellar)</div>

<div> </div>
<div>If anyone could point me in the right direction, it would be appreciated!</div></div></div>
<div><br><span><font face="Arial" color="#0000ff" size="2">Were I going to do this I would do it at smtp time during reciept to</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div><span><font face="Arial" color="#0000ff" size="2">Rick</font></span></div></div><br><font color="#888888">-- <br>This message has been scanned for viruses and <br>dangerous content by <a href="http://www.mailscanner.info/" target="_blank"><b>MailScanner</b></a>, and is <br>
believed to be clean. </font><br>--<br>MailScanner mailing list<br><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website!<br><br></blockquote></div>
<br>