下列範例顯示如何為各種 SMTP 郵件伺服器設定 EmailRelay。請將其作為入門準則來使用。
GMail SMTP 電子郵件伺服器
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 電子郵件伺服器
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
同時,您必須在執行 EmailRelay 伺服器的相同機器上使用瀏覽器來登入 Hotmail 帳戶。否則,您會接收到下列錯誤訊息:550 5.3.4 Requested action not taken; To continue sending messages, please sign in to your account.
IBM Lotus® Domino® SMTP 電子郵件伺服器
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