以下示例说明如何为各种 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 未执行请求的操作;要继续发送消息,请登录您的帐户。
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,并且假定端口 465 是 Microsoft Exchange 服务器侦听的端口。
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