I realize this is an old thread, but I just ran into this problem, which caused emails to be sent to users from a migration server that was just meant as a test.
First thing I’d like to ask is if anything has changed in this regard, in the recent years?
Then another problem is that I am unsure of the best strategy to adopt here. I can disable all emails, and I can disable digests, but on the other hand I want to get Discourse’s admin emails, and to be able to have some users from my team start playing with Discourse, and particularly I want to get the user experience right in terms of logins, user email validations, requirements to change their old, migrated passwords to something more complex, etc. - and this requires email.
Once that is achieved, I guess I will also like to get test email digests for a small group of users, to see how they look and play with options and design.
So, how can I prevent unwanted emails, but still have some chance to get emails so I can evaluate the migration properly? Thanks in advance for any advice.
I guess what I am talking about here is a way to hack an email addresses white list that could be enforced during a migration…