remove mail permissions and update from prod