Changing the mail config to mail mode