On 23 Aug 2001, John R. Levine wrote:

> Of course.  When qmail rewrites the local part of a virtual domain
> address, it does NOT change the domain.  So all you have to do is to
> look up $DOMAIN in virtualdomains, and if you find it strip off the
> prepend string.  It should take about three lines of perl.

Or three lines of Python in this case.  It isn't that this is hard to
implement, but that it involves unnecessary overhead for such a simple
issue that could have (and should have IMO) been worked into the
design.  This is like having to climb a long flight of stairs when an
elevator would be so much simpler and more efficient.

For my application, your suggestion would involve parsing the
virtualdomains file each time an incoming message arrives.  What if
the box hosts 10K, 100K or even more virtualdomains?  What if the
virtualdomains file is not readable by the user?  Workable, but messy.

The real tragedy is that I know there is no chance of getting this
fixed in the main qmail dist, or I'd already have provided patches.  

-- 
(TMDA - http://tmda.sourceforge.net)
 (SPAM reduction for qmail systems) 

Reply via email to