<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV><FONT face=Arial color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mailscanner-bounces@lists.mailscanner.info
[mailto:mailscanner-bounces@lists.mailscanner.info] <B>On Behalf Of </B>Edward
Dam<BR><B>Sent:</B> Tuesday, December 08, 2009 3:12 PM<BR><B>To:</B> MailScanner
discussion<BR><B>Subject:</B> Re: Email Address allowed delivery from single
domain<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Thanks for the suggestion. I had thought of that, but have not found a way
to do so with Sendmail's config that can be as granular as affecting a
specific user only (rather than system wide) - which is why I'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'm all
ears.<BR><SPAN class=906215620-08122009><FONT face=Arial color=#0000ff
size=2>[Rick Cooper] </FONT></SPAN></DIV>
<DIV><SPAN class=906215620-08122009></SPAN> </DIV>
<DIV><SPAN class=906215620-08122009><FONT face=Arial color=#0000ff size=2>Sorry
I am an exim man, but I have got to believe sendmail has a way to do such a
simple thing</FONT></SPAN></DIV>
<DIV><SPAN class=906215620-08122009></SPAN> </DIV>
<DIV><SPAN class=906215620-08122009><FONT face=Arial color=#0000ff
size=2>Rick</FONT> </SPAN></DIV><FONT face=Arial color=#0000ff
size=2></FONT>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR><BR><SPAN
class=906215620-08122009> </SPAN> </DIV>
<DIV class=gmail_quote>On Tue, Dec 8, 2009 at 1:32 PM, Rick Cooper <SPAN
dir=ltr><<A
href="mailto:rcooper@dwford.com">rcooper@dwford.com</A>></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're running Mailscanner and it'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><BR>-- <BR>This message has been scanned
for viruses and <BR>dangerous content by <A
href="http://www.mailscanner.info/"><B>MailScanner</B></A>, and is <BR>believed
to be clean. </BODY><br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</HTML>