improve query for mailstorage hosts
We need a way to get only the active mailboxes, so we can only migrate them away. Also uid management does not make a lot of sense with inactive accounts.
Additionally we order the returned active mailboxes by their lastlogin field. This has the effect, that in case of migration, we first migrate away not actively used mailboxes and only the active ones at the very end.