support dynamic mail session configuration