Alfresco 5.0.a-无法发送邀请电子邮件,但可以发送测试SMTP邮件

问题描述 投票:0回答:1

我尝试按照Wiki上的设置指南设置邮件配置,如下所示:

### E-mail site invitation setting ###
notification.email.siteinvite=true

# Outbound email configuration
mail.host=mail.mydomain.com
mail.port=25
[email protected]
mail.password=mypassword
mail.protocol=smtp
mail.smtp.auth=true
[email protected]
mail.smtp.timeout=30000
mail.smtp.starttls.enable=false
mail.smtp.debug=false

mail.testmessage.send=true
[email protected]
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Outbound SMTP email subsystem is working.

email.inbound.enabled=false

imap.server.enabled=false

当服务器启动到[email protected]时,我可以收到测试电子邮件,但是当我尝试邀请到同一电子邮件地址时,我不会收到邀请消息。错误日志如下:

2014-08-17 05:19:54,152  ERROR [action.executer.MailActionExecuter] [http-bio-8085-exec-1] Failed to send email to [email protected]
 org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 501 5.7.1 <[email protected]>... Permission denied
;
  nested exception is:
    com.sun.mail.smtp.SMTPSenderFailedException: 501 5.7.1 <[email protected]>... Permission denied
; message exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 501 5.7.1 <[email protected]>... Permission denied
;
  nested exception is:
    com.sun.mail.smtp.SMTPSenderFailedException: 501 5.7.1 <[email protected]>... Permission denied

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2202)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1693)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1194)
    at org.alfresco.repo.mail.AlfrescoJavaMailSender$PooledTransportWrapper.sendMessage(AlfrescoJavaMailSender.java:165)
    at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
    at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
    at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
    at org.alfresco.repo.action.executer.MailActionExecuter.sendEmail(MailActionExecuter.java:953)
    at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:493)
    at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:265)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72)

    ... <there are tons of log> more

请帮助我解决此问题。

alfresco-share
1个回答
0
投票

在Alfresco 5.2社区上发生了类似的问题,可以发送电子邮件,但是当将用户添加到站点时,没有发送邀请邮件。(并且参数notification.email.siteinvite设置为true)]

首先请确保数据字典\电子邮件模板\邀请是正确的。

然后,我们的解决方案是使用正确的文档重新创建ftl(模板)文件。 (我从新安装的Alfresco实例中获取了正确的ftl文件)

成功

© www.soinside.com 2019 - 2024. All rights reserved.