The EmailRelay application on a replicated Rational ClearQuest database with multiple Rational ClearQuest databases
When your Rational®
ClearQuest® database is
replicated, you must specify the -replicaname parameters to the cqemailrelay.pl
Perl script. Then you run cqemailrelay.pl, at each site in which the Rational
ClearQuest database is enabled for
EmailPlus.
Attention: It is important that you use the same
value for -relaycfgdir. Otherwise, a new cqemailrelay_cfg.xml
file will be created that only contains configuration parameters for
the new database.
Attention: You must use the -replicaname parameter
to specify the replica name at which you are configuring EmailRelay.
If you omit this parameter, EmailRelay will not work in PostOffice
Relay mode.
This example shows how to setup and configure EmailRelay at two sites, one called Littleton and
one called Beijing. At each site, there are two databases to setup, SAMPL and TEST. First, run this
command at the Littleton site for the SAMPL
database:
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay –replicaname Littleton -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice
Next, run the Perl script again at the Littleton site for the TEST
database:
cqperl cqemailrelay.pl -dbset EmailPlus -userdb TEST -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay –replicaname Littleton -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice
Finally,
rerun the previous commands at the Beijing site.
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password secret -serverurl https://cqweb.server.com/cqweb/oslc/ -relaycfgdir C:\EmailRelay –replicaname Beijing -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 –replicaname Beijing -smtpserver smtp.your.org.com -smtpport 465 -smtpuser cq.emailrelay@your.org.com -smtppassword secret -mode postoffice