Here is the documentation on how to setup automatic reply for a ex-employee\'s email in Office 365:
https://docs.microsoft.com/en-us/exchange/troubleshoot/user-and-shared