【问题标题】:Jhipster - Configuring Email with Zoho - Error 553 Relaying disallowedJhipster - 使用 Zoho 配置电子邮件 - 错误 553 中继不允许
【发布时间】:2017-07-22 11:27:05
【问题描述】:

我是 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

【问题讨论】:

    标签: email installation smtp jhipster zoho


    【解决方案1】:

    我尝试了以下方法,它奏效了。

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

      mail: # 特定的 JHipster 邮件属性,标准属性见 MailProperties

      来自:

    3. 将属性 from: 的值替换为您的 SMTP 外发电子邮件地址

    【讨论】:

      猜你喜欢
      • 2015-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-19
      • 1970-01-01
      • 2018-09-20
      • 2018-07-07
      相关资源
      最近更新 更多