針對不同類型的電子郵件伺服器設定 EmailRelay

IBM® Rational® ClearQuest® EmailRelay 使用配置檔來支援 SMTP 電子郵件伺服器。如果伺服器需要其他參數,則使用 <properties> 設定來加以提供。

下列範例顯示如何為各種 SMTP 郵件伺服器設定 EmailRelay。請將其作為入門準則來使用。

GMail SMTP 電子郵件伺服器

使用這些參數來為 GMail SMTP 電子郵件伺服器設定 ClearQuest EmailRelay。同時,請參閱 https://www-304.ibm.com/support/docview.wss?uid=swg21444700 如何設定 Gmail SMTP 傳訊功能,以取得防止 SSL 信號交換失敗的指示。
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password "" -serverurl https:// cqweb.server.com/cqweb/ -outputpath C:\EmailRelay -smtpserver smtp.gmail.com -smtpport 465 -smtpuser you@gmail.com -smtppassword secret -mode postoffice

Hotmail SMTP 電子郵件伺服器

使用這些參數來為 Hotmail SMTP 電子郵件伺服器設定 ClearQuest EmailRelay:
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password "" -serverurl https:// cqweb.server.com/cqweb/ -outputpath C:\EmailRelay -smtpserver smtp.live.com -smtpport 587 -smtpuser you@hotmail.com -smtppassword secret -mode direct -usessl no
註: 注意在前一個範例中如何將 -usessl 參數設為 no。這是必要的,因為 Hotmail SMTP 電子郵件伺服器不使用 SSL,而是使用傳輸層安全 (TLS)。此外,您必須在 cqemailrelay_cfg.xml 檔案中新增下列參數:"<property key="mail.smtp.starttls.enable" val="true"/>"

同時,您必須在執行 EmailRelay 伺服器的相同機器上使用瀏覽器來登入 Hotmail 帳戶。否則,您會接收到下列錯誤訊息:550 5.3.4 Requested action not taken; To continue sending messages, please sign in to your account.

IBM Lotus® Domino® SMTP 電子郵件伺服器

下面的範例假設您已在 IBM Lotus Domino 伺服器上啟用含有 SSL 的 SMTPS,而 IBM Lotus Domino 是在埠 483 接聽。
cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password "" -serverurl https:// cqweb.server.com/cqweb/ -outputpath C:\EmailRelay -smtpserver your_domino.com -smtpport 483 -smtpuser you@your_domino.com -smtppassword secret -mode direct -usessl yes

Microsoft Exchange 伺服器 SMTP 電子郵件伺服器

下面的範例假設您已在 Microsoft Exchange 伺服器上啟用含有 TLS 的 SMTP,而 Microsoft Exchange 伺服器是在埠 465 接聽。

cqperl cqemailrelay.pl -dbset EmailPlus -userdb SAMPL -username admin -password "" -serverurl https:// cqweb.server.com/cqweb/ -outputpath C:\EmailRelay -smtpserver your_exchange.com -smtpport 465 -smtpuser you@your_exchange.com -smtppassword secret -mode direct -usessl no 
註: 就像 Hotmail 設定一樣,您必須在 cqemailrelay_cfg.xml 檔案中新增 ""。

意見