update mail config file