adding backwards compatibility for MailConfig