Joy Hundley <[EMAIL PROTECTED]> wrote:
>
> I want to have e-mails with an incorrect recipient name/address to be
> returned to the sender immediately -- can this be done? If so, how? I
> would prefer not to alter the queuelifetime, as a server down is a different
> problem altogether than an incorrect address.
qmail already does this.
If qmail receives a message (via SMTP, or through qmail-inject, etc) for a
domain which resides on the same machine (the domain is local or virtual), and
the local-part of the address does not match, qmail will inject a bounce
message into the queue and remove the original message from the queue.
If qmail is attempting to deliver a message to a remote server, and the remote
server responds with a permanent failure code (for "No such user", etc), qmail
will inject a bounce message into the queue and remove the original message
from the queue.
Messages only sit in the queue for any significant length of time when either
qmail has trouble establishing a connection to the remote server, qmail is at
its concurrency limit for an extended period of time, or a local or remote
delivery is deferred by a temporary (rather than permanent) error.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------