There is a separate <repository> XML block in the cqemailrelay_cfg.xml file for each 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 ClearQuest Web server. If more than one <repository> XML block exists, EmailPlus cycles through each block, polling the ClearQuest database for new EmailPlus records to send.
In the following example, there are two 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 ClearQuest -dbset, -userdb -username, -password, and -serverurl values to be specific to your additional ClearQuest 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