Moving the Postmark Scan and Mailman Databases
Moving the Postmark Scan and Postmaster Databases
Updated November 1, 2023
SQL Requirement: Microsoft SQL Server 2016 or later (must run in compatibility level 130 or greater)
NOTE: For legacy KwikTag v5.4.1 and Postmark Platforms v2.5.0 and older the SQL database is called "KwikTag". The v2.6.0 and newer database was renamed to "PostmarkMaster". The Mailman Database is “Postmaster”
Moving a Database
- Backup the existing database
- On the new SQL Server
- Create an SQL Account (the name and password must match what is on the current database server) or add the Postmark Domain Service Account. The account must be a minimum of “DBO” on the Postmark Scan Database (KwikTag or PostmarkMaster and Postmaster).
- Restore the backup to the new SQL Server
Run SQL Script
- Copy the Rename Script below into a SQL Query Window on the new SQL Server
- Make the following edits, (find and replace)
- Replace {DbServerName} with the new SQL Server name
- If there is an instance name, it must be included i.e., NewServer\InstanceName
- Replace {DbServerName} with the new SQL Server name
Rename Script
USE [PostmarkMaster]
--USE [KwikTag]
UPDATE tblOrg
SET ServerName = '{DbServerName}',
DocSearchServer = '{DbServerName}',
DocJobServer = '{DbServerName}',
QueueServer = '{DbServerName}',
FulfillmentServer = '{DbServerName}',
KustomerServiceServer = '{DbServerName}',
WHERE OrgID = -900
UPDATE tblOrganization
SET ServerName = '{DbServerName}',
DocSearchServer = '{DbServerName}'
WHERE OrgID = -900
UPDATE tblImageTag SET ServerName = '{DbServerName}'
Update the Postmark Application Server Configuration
NOTE: All changes below assume that, if used, the Postmark Scan SQL Account, and Password have not changed. Please contact support@docsolid.com if you also intend to change the SQL Account. Depending on the version of Postmark that is installed, some of the websites listed may not be included on your server.
- Open Internet Information Service (IIS) Manager
- Expand down to the list of websites, below the “Default Web Site”
- Select “APIV2”
- Open “Application Settings”
- Edit “pmkDbString” (dbstr)
- Change the “Data Source” to the new SQL location
- Edit “pmkDbString” (dbstr)
- Open “Application Settings”
- Right Click on “APIV3
- Select “Explore”
- Open “appsettings.json”
- Edit “DefaultConection”
- Change “Data Source” to the new SQL location
- Save the file
- Edit “DefaultConection”
- Open “appsettings.json”
- Select “Explore”
- Select “PMKSAPI’
- Open “Connection Strings”
- Edit “KTConnection”
- Change the “Data Source” to the new SQL location
- Edit “KTConnection”
- Open “Connection Strings”
- Select “PMKSCCAPI”
- Open “Application Settings”
- Open “pmkDbString”
- Edit “pmkDbString” (dbstr)
- Change the “Data Source” to the new SQL location
- Edit “pmkDbString” (dbstr)
- Open “pmkDbString”
- Open “Application Settings”
- Select “PMKSClient
- Open “Connection Strings”
- Edit “ApplicationServices”
- Change the “data source” to the new SQL location
- Edit “ApplicationServices”
- Open “Connection Strings”
- Select “PMKSPrivateAPI”
- Open “Connection Strings”
- Edit “KTConnection”
- Change the “Data Source” to the new SQL location
- Edit “KTConnection”
- Open “Connection Strings”
- Select “PostmarkScanWS”
- Open “ApplicationServices”
- Edit “pmkDbString”(dbstr)
- Change the “Data Source” to the new SQL location
- Edit “pmkDbString”(dbstr)
- Open “ApplicationServices”
- Select “PostmasterWeb”
- Open “Connection Strings”
- Edit “PostmasterContext”
- Change the “Data Source” to the new SQL location
- Edit “PostmasterContext”
- Open “Connection Strings”
- Select “PostmasterWebApi”
- Open “Connection Strings”
- Edit “PostmasterContext”
- Change the “Data Source” to the new SQL location
- Edit “PostmasterContext”
- Open “Connection Strings”
- Restart IIS
Change Windows Services Configuration on the Postmark Application Server
- Open Windows Explorer and navigate to, depending on the Postmark version
- {installDrive}:\Program Files\DocSolid\Postmark Scan\Windows Services
- {installDrive}:\Program Files (x86)\DocSolid\Postmark Scan\Windows Services
- {installDrive}:\Program Files (x86)\KwikTag \Windows Services
- Edit “KTNotificationService.exe.config”
- Change “connectionStrings”
- “connectionString=”Data source=” to the new SQL location
- Save the file
- Change “connectionStrings”
- Open Windows Service
- Depending on your version of Postmark
- Restart “KwikTag Notification Service
- Restart “Postmark Scan Notification Service
- Depending on your version of Postmark