David Harris writes:

>
> You can just do some "simple checking".. there's too much complexity in the way
> that qmail handles the mail. Yes, you could toss all of this functionality into
> qmail-smtpd, but then you break down the beautiful boundaries between the
> different handler programs.

I tossed about 50 lines of code into qmail-smtpd.c, making it reject
unknown local recipients, whether they are real recipients, or aliases, or
qmail-users (although I haven't tested that, but it should work because I'm
not testing it myself, but I'm linking against the same module qmail-local
does to check for that).

Of course, if you have an external program that determines the validity of
a local address, that's a completely separate issue.

And the only reason you DO have an external program for that is because
Qmail itself lacks the needed functionality, so you're forced to put it
into an external module.

"Beautiful boundaries between the different handler programs" sounds nice
in principle.  In practice, however, sooner or later you reach the point
where further modularization adds nothing of value, but increases
obfuscation and confusion.

-- 
Sam

Reply via email to