baudehlo/Haraka — pull request #102 by smfreegard (2011-10-18 22:05:46+00:00)
Title: smtp_forward plugin fixes/enhancements

1) Add fixes similar to smtp_proxy to address the on drain handler from making the client/server go out of sync. This was less of a problem here than with smtp_proxy (e.g. it still worked), however it caused the client and server to go out of sync and the 'data' command handler would never run.

2) Move the response to the client from queue_ok_respond back to queue_respond handler; this is so that a queue plugin can return a message back to the client. I have changed smtp_forward to return the accept line back from the forward host and added our own transaction.uuid to the end of the string to aid debugging as both identifiers will be present in the senders logs. e.g.:

250 2.0.0 p9ILsnYM028628 Message accepted for delivery (10174387-4C51-44F9-BA40-086CD4F2F015.2)

3) Invert the TLS logic as per smtp_proxy and change documentation to match.