<p>... And if one don&#39;t like/can use the commercial license of milter-ahead, there is smf-sav (another milter)which one can configure to only do recipient verification. Have never seen a performance comparison between them, but I imagine they are pretty similar... And smf-sav had a pure OSS license, last I looked (admittedly a while back:-).</p>

<p>Cheers!<br>
-- <br>
-- Glenn</p>
<div class="gmail_quote">Den 23 nov 2012 18:37 skrev &quot;Chris Stone&quot; &lt;<a href="mailto:axisml@gmail.com">axisml@gmail.com</a>&gt;:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
milter-ahead is going to be a ton more efficient than any perl based script. milter-ahead is written in C, supports caching and numerous indexed or flat text file databases for the local cache. <br><br><br>Chris<br><br><div class="gmail_extra">

<br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 6:41 AM, Jonas Lilja <span dir="ltr">&lt;<a href="mailto:jonas.lilja@sigma.se" target="_blank">jonas.lilja@sigma.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div link="blue" vlink="purple" lang="SV">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">Thanx all. As JC Woltz wrote, the script made an import from a regular text file and build mailhost.db in /etc/mail. Very easy to configure and
 effective.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">However, if that scripts has been obsolete, I’ll check that milter-ahead instead.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">If anyone here have that Perl-script (I think it was Perl-based) I would be happy because I know how it works. Is Milter-ahead easy to configure?
 (I’ll of course read the manual ;-) <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US">BR /Jonas<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US">Från:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US"> <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>För </b>Glenn Steen<br>
<b>Skickat:</b> </span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">den 23 november 2012 04:41<br>
<b>Till:</b> MailScanner discussion<br>
<b>Ämne:</b> Re: MTA/Perl script for relaying only to Exchange-users<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><span lang="EN-US">IIRC this was never detailed in the main site, but rather in the wiki ()...
</span>Somewhere under the docs for the respective MTA...</p><div><div><br>
The script you refer to was most likely for Postfix, but ISTR someone adapting that for Sendmail use, but the bottom line is that nowadays... Neither MTA needs that hack. In Sendmail, use a milter (there are more than one that will do this, at least some that
 are FOSS;-), in Postfix use the docs for recipient verification as found in the postconf man page/ob the
<a href="http://postfix.org" target="_blank">postfix.org</a> site (it might still be in the sender address verification doc there... don&#39;t do that, just the recipient bit)... Or, as said, look in the wiki (might be slightly dated info there;-).<u></u><u></u></div>

</div><p></p><div><div>
<p>Having said all that, I personally still use a homegrown script around the open-ldap tools and postmap, more for historical reasons/lazyness tgan anything else. The reason for it all dates back to the time when I was protecting an Exchange 5.5 which was
 managed by a contrary fellow who wouldn&#39;t even try make it correctly reject unknown recipients. Now... I&#39;m in charge of the Exchange bit too, and the defaults for that MTA has changed, so it will reject as expected (that too changed quite a few versions back... 
 In Exchange 2000, IIRC:-).<u></u><u></u></p>
<p>Cheers<br>
-- <br>
-- Glenn<u></u><u></u></p>
<div>
<p class="MsoNormal">Den 21 nov 2012 23:24 skrev &quot;Jonas Lilja&quot; &lt;<a href="mailto:jonas.lilja@sigma.se" target="_blank">jonas.lilja@sigma.se</a>&gt;:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi, for a couple of years ago there was a guide on
<a href="http://mailscanner.info" target="_blank">mailscanner.info</a> about restricting the MTA (Sendmail) to only deliver email to valid users in an Exchange environment. This made the performance of the server much better because either MailScanner or Spamassassin
 need to process invalid emails.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I remember that there was a perl-script which picked up the content from a textfile (with all smtp-addresses in the domain) and then build a special file in /etc/mail/</span><u></u><u></u></p>


<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I can’t find this guide on the site. Anyone who can help me?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">BR /Jonas Lilja</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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!<u></u><u></u></p>
</div>
</div></div></div>
</div>

<br>--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">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 clear="all"><br>-- <br>Chris Stone<br>AxisInternet, Inc.<br><a href="http://www.axint.net" target="_blank">www.axint.net</a><br><br>
</div>
<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>