On Thu, May 10, 2001 at 10:45:45AM -0500, Joy Hundley wrote:
> Hi - I am new to this mailing list and to qmail, so if my question is worded
> incorrectly - please be patient with me.
>
> 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.
This should already be done, in both possible cases.
Case 1: Sender relaying from your server*. qmail delivers it, the remote
server bounces it with 5.1.1. (IIRC) No such user, qmail delivers the
bounce. Takes place very quickly.
* Or sending directly from your server, or whatever.
Case 2: Message to your server, with invalid local recipient. qmail
accepts the message, dumps it in the queue, and attempts delivery.
Delivery fails with (again IIRC) 5.1.1., no such user. qmail delivers
bounce to sending SMTP server. Sending SMTP server delivers bounce.
Takes place very quickly.
Which case are you perceiving a problem with?
GW