updating mail connection