从我的网站发送邮件时出现此错误。我正在使用带有 SSL 配置的 liferay,我用于发送邮件的 gmail 设置如下...
mail.session.mail.imap.host=XXXXXXXX
mail.session.mail.pop3.host=XXXXXXXX
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.host=smtpout.europe.secureserver.net
mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.session.mail.smtp.socketFactory.fallback=false
mail.session.mail.smtp.socketFactory.port=25
mail.session.mail.smtp.starttls.enable=true
mail.session.mail.smtp.password=XXX
mail.session.mail.smtp.port=25
mail.session.mail.smtp.user=XXXXXXX
mail.session.mail.store.protocol=imap
mail.session.mail.transport.protocol=smtp
custom.organization.friendly.url.enabled=true
但我收到以下错误:
09:23:21,501 错误 [MailEngine:489] 553 抱歉,您的信封发件人在我的 badmailfrom 列表中。
09:23:21,503 错误 [MailEngine:154] com.sun.mail.smtp.SMTPSendFailedException: 553 抱歉,您的信封发件人在我的 badmailfrom 列表中。
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:465)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:366)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:110)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMessageListener.java:101)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageListener.java:115)
at com.liferay.mail.messaging.MailMessageListener.receive(MailMessageListener.java:43)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.j ava:63)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:61)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
我也使用其他端口,例如 80、3535、25、465,但它仍然给出相同的错误。
所以,请任何人有想法然后请给我正确的解决方案。我很感激他/她。
感谢和问候,
比平·维卡里亚。