qmail undeliverables - return to sender?

2001-05-10 Thread Joy Hundley

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.

Any and all suggestions would be greatly appreciated.  :)

Joy Hundley
Internet Services
Service Transport
800-528-1616 ext. 240

 Visit us on the Web at www.service-transport.com




Re: qmail undeliverables - return to sender?

2001-05-10 Thread Remo Mattei

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.

 Any and all suggestions would be greatly appreciated.  :)

 Joy Hundley
 Internet Services
 Service Transport
 800-528-1616 ext. 240

  Visit us on the Web at www.service-transport.com

you need to use the .qmail-default. So I would read up the DOC.

REMO




Re: qmail undeliverables - return to sender?

2001-05-10 Thread Charles Cazabon

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.
---



Re: qmail undeliverables - return to sender?

2001-05-10 Thread Greg White

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