update env for mail