Russell Nelson ([EMAIL PROTECTED]) wrote:
: Eric Smith writes:
:  > Has anyone written a patch for Qmail 1.0.3 to reject mail if envelope sender
:  > domain can't be resolved?

: Yes (nods to johnl), but I'm trying to convince Dan that it's a good
: idea.  I think the increase in reliability (rejecting mail which you
: *know* cannot accept a bounce message, should one be generated) is
: worth the increase in cost (more code and network traffic to check the DNS).
: This will also have the side effect of making ezmlm work better
: (because it relies on the envelope sender being correct) by keeping
: the mail on a server closer to the point of error.

Why not break the smtpd into two parts, the way qmail's pop3d
separates auth from mail access.  The first part handles everything
before DATA, and this can be as simple as a shell or perl script.
This is where you can attempt to resolve addresses or do rbl, or
check for valid recipient addresses or check recipient or sender
quotas or whatever.  There have been many such requests.

The second part queues the message.  Basically it's qmail-queue.

Why not make the whole thing a shell script?  Because we want to
catch network errors and timeouts, and we don't want a shell
anywhere near a remote user.

-harold

Reply via email to