Once in a while a user leaves the company and the necessity to block their access to the companies email and forward any new messages to their replacement or manager arises, the proverbial “business must go on”.
The script bellow can do just that in a quick and consistent way. Just keep in mind that it requires updating the variables $server_uri and $authentication to fit your environment.