Retention periods can be changed by adjusting the period of the retention rule. If a message is subject to multiple rules with different retention periods, the message will be retained based on the rule with the longest duration.