Closed erickpece closed 8 years ago
https://github.com/haraka/Haraka/blob/master/plugins/queue/rabbitmq_amqplib.js#L39 must be changed to just be return
.
Also, https://github.com/haraka/Haraka/blob/master/plugins/queue/rabbitmq_amqplib.js#L14 needs a null check for channel
(if the amqp connection had failed).
For whatever damn reason the plugin wants rabbitmq_amqplib.ini and rabbitmq.ini to be the same. So:
cp rabbitmq_amqplib.ini rabbitmq.ini
@brdude Thanks - that workaround took care of it for me!
@gramakri - can you do a PR with those changes please?
@baudehlo I was only pointing out the bug :-) I don't use amqp and have never used it.
That said, I can still do a PR if someone else is willing to test it.
Haraka version
2.8.0
Expected behavior
If message(s) should be relayed, send them to RabbitMQ for queueing.
Observed behavior
Loading outbound queue fails with the following error:
Add queue/rabbitmq_amqplib to plugins before max_unrecognized_commands
Apply the default configuration for rabbitmq_amqplib as seen at https://haraka.github.io/manual/plugins/queue/rabbitmq_amqplib.html