gpt4 book ai didi

java - 552 抱歉,您的信封发件人域必须存在 (#5.7.1)

转载 作者:太空宇宙 更新时间:2023-11-04 13:38:14 24 4
gpt4 key购买 nike

我无法使用 ovh smtp 服务器和 spring 集成发送邮件。

配置对我来说看起来不错,我缺少什么?

<int-mail:outbound-channel-adapter
id="myOutboundMailChannelAdapter"
channel="outboundMailChannel"
mail-sender="mailSender" />

<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="ns0.ovh.net"/>
<property name="port" value="587"/>
<property name="username" value="myUsername"/>
<property name="password" value="myPass"/>
<property name="javaMailProperties">
<props>
<prop key="mail.transport.protocol">smtp</prop>
<prop key="mail.smtp.auth">true</prop>
<prop key="mail.smtp.starttls.enable">true</prop>
<prop key="mail.debug">true</prop>
</props>
</property>
</bean>

以下详细日志:

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
> DEBUG SMTP: useEhlo true, useAuth true
> DEBUG SMTP: trying to connect to host "ns0.ovh.net", port 587, isSSL false
> 220 ns0.ovh.net You connect to mail191 ESMTP
> DEBUG SMTP: connected to host "ns0.ovh.net", port: 587
> EHLO Marcello-PC.lan
> 250-ns0.ovh.net You connect to mail191
> 250-AUTH LOGIN PLAIN
> 250-AUTH=LOGIN PLAIN
> 250-STARTTLS
> 250-8BITMIME
> 250 SIZE 109000000
> DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
> DEBUG SMTP: Found extension "AUTH=LOGIN", arg "PLAIN"
> DEBUG SMTP: Found extension "STARTTLS", arg ""
> DEBUG SMTP: Found extension "8BITMIME", arg ""
> DEBUG SMTP: Found extension "SIZE", arg "109000000"
> STARTTLS
> 220 ready for tls
> EHLO Marcello-PC.lan
> 250-ns0.ovh.net You connect to mail191
> 250-AUTH LOGIN PLAIN
> 250-AUTH=LOGIN PLAIN
> 250-8BITMIME
> 250 SIZE 109000000
> DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
> DEBUG SMTP: Found extension "AUTH=LOGIN", arg "PLAIN"
> DEBUG SMTP: Found extension "8BITMIME", arg ""
> DEBUG SMTP: Found extension "SIZE", arg "109000000"
> DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM
> DEBUG SMTP: AUTH LOGIN command trace suppressed
> DEBUG SMTP: AUTH LOGIN succeeded
> DEBUG SMTP: use8bit false
> MAIL FROM:
> 552 sorry, your envelope sender domain must exist [mail191] (#5.7.1)
> DEBUG SMTP: got response code 552, with response: 552 sorry, your envelope sender domain must exist [mail191] (#5.7.1)
> RSET
> 250 flushed
> DEBUG SMTP: MessagingException while sending, THROW:
> com.sun.mail.smtp.SMTPSendFailedException: 552 sorry, your envelope sender domain must exist [mail191] (#5.7.1)

最佳答案

您的帖子格式似乎隐藏了 MAIL FROM: 行中的电子邮件地址。您将哪个地址设置为邮件的发件人地址?根据错误消息,它似乎使用了不存在的域名。

关于java - 552 抱歉,您的信封发件人域必须存在 (#5.7.1),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31485192/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com