The EmailRelay application on a non-replicated Rational ClearQuest database with multiple Rational ClearQuest databases
There is a separate <repository> XML block in the cqemailrelay_cfg.xml file for each Rational ClearQuest 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 Rational ClearQuest Web server. If more than one <repository> XML block exists, EmailPlus cycles through each block, polling the Rational ClearQuest database for new EmailPlus records to send.
In the following example, there are two Rational ClearQuest 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