Jhipster - 使用Zoho配置电子邮件 - 错误553中继不允许

时间:2017-03-02 16:15:14

标签: email installation smtp jhipster zoho

我是Jhipster的新手,并尝试配置zoho,我收到错误。

我在/myjhipsterapplicationname/src/main/resources/config/application-dev.yml中的设置

mail:
host: smtp.zoho.com
port: 587
username: ****@myCustomDomainOnZoho.com
password: ******   // My password for the above email  
protocol: smtp
tls: true
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.zoho.com

错误,我正在接收

2017-03-02 21:15:13.421  WARN 6192 --- [ints-Executor-2] com.nectotech.com.service.MailService    : E-mail could not be sent to user 'asif@nectotech.com'
org.springframework.mail.MailSendException: Failed to close server connection after message failures; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
        java.net.SocketException: Connection closed by remote host. Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 553 Relaying disallowed as breakpoints@localhost

1 个答案:

答案 0 :(得分:1)

我尝试了以下内容并且有效。

  1. 转至/myjhipsterapplicationname/src/main/resources/config/application-dev.yml
  2. 搜索

    mail:#specific JHipster mail property,对于标准属性,请参阅MailProperties

    从:

  3. 使用您的SMTP外发电子邮件地址替换属性值: