Restore backup to a local instance in a safe/anonymized way

Wouldn’t it be simpler to disable all outgoing mails? That’s a global site setting.