[Mimedefang] allow local aliases w/ md_check_against_smtp_server

Jan Pieter Cornet johnpc at xs4all.nl
Tue Sep 21 03:53:36 EDT 2004


On Tue, Sep 21, 2004 at 12:11:06AM -0400, Ron Peterson wrote:
> I'd use md_check_against_smtp_server in filter_recipient.  I'd like to
> add some local aliases, and not have md_check_against_smtp_server stomp
> them.
> 
> I can easily put a wrapper around the call to to
> md_check_against_smtp_server which would build a hash table for my
> aliases file and check whether the recipient exists there, and if so,
> skip the remote username check, but I'm concerned about the overhead of
> doing this.  Can I do something more efficient?

What? You're concerned about the overhead of a single hash lookup,
compared to the time that md_check_against_smtp_server takes anyway?

Have you tried benchmarking, to see what is faster: the hash lookup,
or md_check_against_smtp_server? :)

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <pmmppfmfpppppfmmmf at fpffmm4mmmpmfpmf.ppppmf>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;                                # Jan-Pieter Cornet



More information about the MIMEDefang mailing list