Integrate with Active Directory

A single EasyPost® Mailroom client can be configured differently for individual users, or groups. This is particularly useful in Citrix / Terminal Services environments that require multiple configurations for various reasons.

The EasyPost Mailroom configuration file (\Program Files\EasyPost\Mailroom\EPClient.ini) is local to the installation, and is read at startup of the Maliroom application (EPPreview.exe). It contains all user defaults for the local installation. In Citrix/TS this equates to all users.

The Mailroom application can retrieve variable values specified in the configuration file from Windows user environment variables (UEV’s). This is achieved by replacing fixed values with placeholders in the file, and allowing these placeholders to be replaced at startup by UEV’s.

All configurable features in the [application] section of EasyPost can be addressed in this way in Citrix/RDS environments, for example, which Mailroom database is used, by user or user group.

The Mailroom database service houses the repository for all files printed to the Mailroom print driver and processed by the application. Without UEVs, these files (and, if Mailings, their status within Bing Production) can only either be discrete by user, or shared by all users (sharedb=1). The Mailroom config entries for the latter scenario are:

basepath=servername\databasename
sharedb=1

A logon script can be used to set a UEV which determines the database server host and database to connect to, and this can be set differently by user group if a ‘database per group’ is required. This is achieved by altering the basepath value to contain a ‘placeholder’ populated by a UEV set in a Group Policy Object (GPO), by a login script (example below). The login script sets a UEV specific to that user, or group, and the ‘hard’ path to the database is replaced by the placeholder.

Extract from EPClient.ini configured to use a UEV to specify db location

basepath=*%BRANCH_DB%* 
sharedb=1

Example Script to create the User Environment Variable “BRANCH_DB”

Set objShell = WScript.CreateObject("WScript.Shell")
Set colUsrEnvVars = objShell.Environment("USER")
colUsrEnvVars("BRANCH_DB") = Server1\ branchdb

In this example, the config file contains the basepath parameter basepath=*%BRANCH_DB%*. If the UEV was set as server1\branchdb1 all users of that group will have a shared database created named ‘branchdb’ on server1. If the sharedb=1 parameter is omitted, all users in the group will have their own discrete database.