fixed mail config removal