Diese Seite auf Deutsch anzeigen?

MailStore Server – NAS connection issues

ID: 13780

Summary

MailStore Server – When accessing databases or backups on a network or NAS, you may encounter authentication or connection errors

Cause

MailStore Server runs as the nt authoritysystem account and therefore network resource requests initiated by MailStore are processed in that context rather than from your user account. Although you can see a share as an administrator this does not guarantee that MailStore can access it. Mapped drive letters from a user session are never available to MailStore Server as they only exist for the user that created them and only while you are logged in.

Resolution

You can test MailStore’s connection to your network file storage using Microsoft Sysinternal’s PsExec tool to launch a command prompt as the “local system” account, allowing you to test accessing the network from a similar set of credentials as MailStore itself.
Download Sysinternals PsTools and extract the content into a directory on your hard disk.
Login to the computer where MailStore Server is installed.
Execute a command prompt as administrator.
In the command prompt, change to the directory where you extracted the PSTools.
Run the “psexec.exe” command to switch the context of the command prompt to “local system”:

psexec.exe -s cmd.exe

Verify if that was successful by executing the whoami command, if successful the response will be nt authoritysystem.
Try to list the files in the share using the dir command like this:

dir servershareMailArchive

If successful, try to read the MailStoreMaster.key file using the type command like this:

type servershareMailArchiveMailStoreMaster.key

And finally, try to create and then remove a file in the share using the following commands:

echo. > servershareMailArchivetest.txt
del servershareMailArchivetest.txt

All of the above commands must be successful, if any step fails you must troubleshoot that specific step individually. If you’re unable to make the initial connection then you may need to authenticate to the network storage as a user, this can be done via the Windows “net use” command in this format:

net use servershare /user:domainusername password

In particular, use servershare without a trailing slash, and without any further folder structure included. If you connect successfully then repeat the above steps to confirm connectivity.

In the case of an Active Directory joined file server be sure to follow the Authorize a Computer Object documentation, checking both NTFS permissions and the share permissions. In the case of a file server that is not part of the same Active Directory domain, or a 3rd-party NAS that does not support computer objects you can instead use the Authorizing a User Object steps in the documentation. The “net use” command described above is the “User Object” method and therefore you may need to verify the credentials in the Configure the MailStore Server Service tool are correct.

Until you reboot MailStore may be using the session created by the command above, therefore reboot the Windows Server and check to make sure that MailStore can access the network resources as needed.

Additional Information

For further information on PsExec please review Microsoft’s PsExec documentation.