Disabling an email by config not working as expected