Hello Thomas, I've been active in this other related thread and I have some various responses containing both info for new API's to do this along with a script solution. I'd give this a read through and post there any additional questions you might have.
https://portal.smartertools.com/community/a90940/passing-credentials-into-the-smartermail-16_x-login-screen.aspx
Matt Petty
Senior Software Developer
SmarterTools Inc.
www.smartertools.com