Employers are now vetting goodbye messages from employees and it is not unusual to find the following provision in a compromise agreement
1. If an employee wishes to send a goodbye message to colleagues by email, the employee must agree the contents of this email with management before it is sent out.
Be careful about sending messages without prior approval!