<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff size=2>I used
getadsmtp.pl (<A
href="http://www-personal.umich.edu/~malth/gaptuning/postfix/">http://www-personal.umich.edu/~malth/gaptuning/postfix/</A>).
I had to modify it and use it with a shell script to create my access/access.db
but it works great.</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff size=2>Using
the getadsmtp.pl I am creating and /etc/mail/access file </FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>To:<emailaddress> OK</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>..</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>..</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>..</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2><domain> ERROR:User unknown in local recipient
table</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff size=2>then,
/usr/sbin/makemap hash /etc/mail/access.db <
/etc/mail/access</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff size=2>The
last line tells sendmail to reject anything for that domain that it does not
already know about</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff size=2>You
will have to add these to sendmail.mc and rebuild
sendmail.cf</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>FEATURE(`delay_checks`,`friend', `n')dnl ' you could
use hater, just not both</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>FEATURE(`blacklist_recipients')dnl</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff size=2>I am
not 100% certain you need both of these but delay_checks is a
definite.</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2>Carl</FONT></SPAN></DIV>
<DIV><SPAN class=995382022-19122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
mailscanner-bounces@lists.mailscanner.info
[mailto:mailscanner-bounces@lists.mailscanner.info] <B>On Behalf Of </B>Joey
Marino<BR><B>Sent:</B> Wednesday, December 19, 2007 4:02 PM<BR><B>To:</B>
mailscanner@lists.mailscanner.info<BR><B>Subject:</B> need help blocking
emails to non-existent users<BR><BR></FONT></DIV>I am currently running a
mailscanner box on centos using sendmail that relays to my exchange
server. I am trying to block email to non-existent users at the smtp
level on the MX. I understand I have to somehow update sendmail with existent
users in the active directory possibly using ldap. I can't seem to find any
good documentation on how to do this. Many entries in the archive point to <A
href="http://www.mailscanner.info/serve/cache/270.html">http://www.mailscanner.info/serve/cache/270.html</A>
but this doesn't exist anymore. I also found a sketchy bash script at <A
href="http://the-jer.spaces.live.com/blog/cns!E4FBBD09FA146AF!128.entry">http://the-jer.spaces.live.com/blog/cns!E4FBBD09FA146AF!128.entry</A>
but I don't like this approach either. I want to do all the work on the
gateway. Can somebody point me to some good documentation or a healthy script
that I could use to accomplish this? <BR clear=all><BR>-- <BR>Joey Marino
</BLOCKQUOTE></BODY></HTML>