The cqemailrelay.pl script
- Determine how to communicate with the Rational® ClearQuest® database
- Determine how to communicate with the Simple Mail Transfer Protocol (SMTP) Email server
- Determine which mode to start the EmailRelay application in
- Start and stop the EmailRelay application
The syntax for cqemailrelay.pl Perl script is as follows:
cqperl cqemailrelay.pl arg1 … argN
The cqemailrelay.pl Perl script accepts three sets of command line arguments. Each set controls a different EmailRelay setting.
The arguments for the Rational ClearQuest Web server are as follows:
-dbset <dbset> -userdb <userdb> -username <user> -password <password> -serverurl <url> > [-replicaname <name> -dumppayload <dir>]
See cqemailrelay.pl script parameters for Rational ClearQuest Web server for a description of the Rational ClearQuest Web server arguments.
The arguments for Rational ClearQuest EmailRelay server are as follows:
-relaycfgdir <dir> -mode <postoffice | smtprelay> [-smtprelayport <port>]
See cqemailrelay.pl script parameters for the Rational ClearQuest EmailRelay server for a description of the EmailRelay server arguments.
The arguments for SMTP Email server are as follows:
-smtpserver <name|IP> [-smtpport <port> -smtpuser <name> -smtppassword <password> -usessl <yes | no>]
See cqemailrelay.pl script parameters for the SMTP Email server for a description of the SMTP Email server arguments.
When you run the cqemailrelay.pl script, it creates a backup of the existing cqemailrelay_cfg.xml file. The backup file called cqemailrelay_cfg-<time-stamp>.xml is in the directory that is identified by the EmailRelay server argument -relaycfgdir.