Hannu <[EMAIL PROTECTED]> writes:

> In my opinion, released messages should be delivered locally, ie on the same
> way accepted mails are delivered. If I define
> DELIVER = "/var/spool/mail/xxx"
> My accepted mails go directly to my mailbox. Unfortunately, messages that
> has gone throught the pending queue, are forwarded to postfix when they are
> released.

The reason for this is to support a particular qmail feature:
subsequent lines in a .qmail file will be run on the message if
tmda-filter exits with a return code of 0.  Since the only way to
cause those subsequent lines to run on the actual message (and not on
the sender's confirmation message) is to go through qmail's normal
delivery process, tmda-filter re-injects the message.

> This causes some problems on some mails and is waste of
> resources.

This should not cause problems.  If it does, please post a message
that causes the problem so that we can figure out how to solve it.

> Those mails has already gone throught that pipe..

Re-injected messages are caught right at the beginning of tmda-filter
and don't go through the normal TMDA filter processing.  They are then
delivered using the method you have defined in DELIVERY.

> I tried to change the delivery method from 
> /usr/local/tmda/bin/rfilter, function release_pending.
> I changed the line 
> 
> Util.sendmail(Util.msg_as_string(msg), recipient, return_path)
> to
> mta.deliver(msg)
> 
> The messages will get delivered directly to my mailbox, but after that they
> will not be marked as released on the pending-directory.

Right.  The rename of the file in pending/ only occurs when
tmda-filter processes a re-injected message.

> What should I do?

Nothing, probably.  It works fine as it is.  Again, if you've run into
a particular message that causes a problem, please post it so we can
figure out what is going wrong and how to fix it.


Tim

_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to