WSO2 EMM - 电子邮件配置

WSO2 EMM - Email configuration

我知道这个问题已经有人回答了,但我自己无法解决。 如何为 emm 配置电子邮件?

这是我的常规配置:

Host: smtp.gmail.com
Port: 25 (also I check it using 587)
Username: myusername@gmail.com
password: my email pass
Sender email address: myusername@gmail.com
Email template: You have been registered to the to EMM. Below is the link to enroll.

但没有向用户发送邀请电子邮件。 首先,我尝试向已注册的用户发送邀请电子邮件。 然后我检查添加新用户并向他发送邀请。

here is the log for port 25, here is the log for port 587, here is the log for new user with port 25 and here 端口 587。

我也关闭了防火墙并重试,但没有向用户发送邀请电子邮件。

更多信息:

服务器:windows 7 (wso2 v:1.1.0) - 本地主机,数据库:mysql

我已经使用我创建的租户完成了这些配置。

错误表明存在连接超时。 Gmail SMTP 可能会阻止您的身份验证请求。通常它会限制第 3 方客户端请求,除非您从邮件帐户设置中禁用安全性。

谢谢

为了解决问题,我更改了 emm\modules\user.js :

第 186 行:if(username.indexOf("@")<1) 到 if(username.toString().indexOf("@")<1)

并将雅虎证书添加到密钥库(wso2carbon.jks、emm_truststore.jks 和 wso2emm.jks。)

获得雅虎证书我运行这个:

openssl s_client -connect smtp.mail.yahoo.com:587 -starttls smtp

并将服务器证书另存为 yahoocertificate.cer

并将其添加到我 运行 的密钥库中:

keytool -import -alias smtp.mail.yahoo.com -file yahoocertificate.cer -keystore "D:\EMM\Carbone_Home\repository\resources\security\wso2carbon.jks"
keytool -import -alias smtp.mail.yahoo.com -file yahoocertificate.cer -keystore "D:\EMM\Carbone_Home\repository\resources\security\emm_truststore.jks"
keytool -import -alias smtp.mail.yahoo.com -file yahoocertificate.cer -keystore "D:\EMM\Carbone_Home\repository\resources\security\wso2emm.jks"

我也用 gmail smtp 服务器端口 587 检查它。