Modified MailManager to move authentication out to the configuration.