How to alter the retention period for external messages