The EmailRelay application on a non-replicated HCL Compass database with multiple HCL Compass databases
In this scenario, two or more HCL Compass databases are configured for use with the EmailRelay application in a non-replicated environment.
There is a separate <repository>
XML block in the
cqemailrelay_cfg.xml file for each HCL Compass database that you plan to enable the
EmailRelay application on. When the EmailRelay application is configured to run in PostOffice Relay
mode, it uses the <repository>
XML block to determine how to communicate with
the HCL Compass Web server. If more than one
<repository>
XML block exists, EmailPlus cycles through each block, polling the
HCL Compass database for new EmailPlus
records to send.
<repository>
XML block is ignored. The EmailPlus package of each database must
be configured to use the same port that EmailRelay is listening on.-relaycfgdir
. Otherwise, a new
cqemailrelay_cfg.xml file will be created that only contains configuration
parameters for the new database. In the following example, there are two HCL Compass databases: one called SAMPL, and the other
called TEST. To setup and configure the EmailRelay application for both databases, run the
cqemailrelay.pl Perl script twice, changing -dbset
,
-userdb
-username
, -password
, and -serverurl
values to be
specific to your additional user database.
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice
cqperl cqemailrelay.pl -dbset EmailPlus -userdb TEST -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice