If your mail inexplicably stopped working, this is almost certainly the reason.
Edit your app.yml and change the smtp port to 2525. Then
./launcher destroy app ;./launcher start app
If you don’t know what that means, you can run discourse-setup, hit return a bunch of times and change the port and let it rebuild.