[rabbitmq-discuss] Policy for dead letter exchange routing back to queue

Simon MacMullen simon at rabbitmq.com
Thu Nov 28 10:05:46 GMT 2013

On 27/11/13 15:25, Nicholas Stuart wrote:
> I've successfully set up a dead letter exchange policy where
> the|dead-letter-exchange|is blank, which will return the message to the
> original queue. However this only happens if the message was published
> to the default exchange, or with a routing key of the queue name.
> If I set up a fanout or topic exchange, my message is dropped(rightfully
> so). Is there any way, in the RabbitMQ policy, that I can specify a
> routing key policy that will always point back to the queue the message
> was consumed off of?

No, there isn't. Unless you want to create one policy per queue in which 
case you can set dead-letter-routing-key of course.

Why do you want to dead-letter back to the original queue?

Cheers, Simon

Simon MacMullen
RabbitMQ, Pivotal

More information about the rabbitmq-discuss mailing list