update mail configuration