Set the Default Lifetime for Messages

Applies To: Windows Server 2008

You can use this procedure to set the default lifetime for Message Queuing messages. The lifetime of a Message Queuing message specifies the maximum time interval for a message to reach a destination queue. If this time interval is exceeded before the message reaches the destination queue then the message is placed in the deadletter queue if the PROPID_M_JOURNAL property of the message is set to MQMSG_DEADLETTER.

Membership in <Domain>\Domain Users, or equivalent, is the minimum required to complete this procedure.

To set the default lifetime for Message Queuing messages

  1. Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Sites and Services.

  2. On the View menu, click Show Services Node.

  3. In the console tree, right-click MsmqServices.


    • Active Directory Sites and Services/Services/MsmqServices
  4. Click Properties.

  5. On the General page, type a new value and select new units as needed.

Additional considerations

  • Note that the default lifetime for transactional messages is 4 days.

  • The default lifetime of a message is also known as the time-to-reach-queue (TTRQ).


For best security practice, it is recommended that messages not be set with an infinite lifetime to ensure tighter control over messages that are traveling through the network. Also, Message Queuing can request that a negative acknowledgment message is returned if a timer expires, and Message Queuing sends the appropriate negative acknowledgment message to the administration queue specified by the message.

Additional references