Just chiming in because I had this issue today when I upgraded a server from 15x to 17x. The problem for me was that the customer had some old, leftover domain folders in his Domains directory that never were deleted when he removed the domains from the SM admin interface a while back. Also, for some strange reason, the old, invalid domains were added to the settings.json file during the migration. I had to manually remove the old folders from the Domains directory and manually remove the domain entries from the domains.json file. Once I did that and restarted the SM service, all was well.
Linda Pagillo
Mail's Best Friend
Email: linda.pagillo@mailsbestfriend.com
Web: www.mailsbestfriend.com
Authorized SmarterTools Reseller
Authorized Message Sniffer Reseller