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

时间:2014-08-16 08:02:36

标签: alfresco-share

我尝试按照wiki上的设置指南来设置邮件配置如下:

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

# Outbound email configuration
mail.host=mail.mydomain.com
mail.port=25
mail.username=none-reply@mydomain.com
mail.password=mypassword
mail.protocol=smtp
mail.smtp.auth=true
mail.from.default=none-reply@mydomain.com
mail.smtp.timeout=30000
mail.smtp.starttls.enable=false
mail.smtp.debug=false

mail.testmessage.send=true
mail.testmessage.to=dong.pt@mydomain.com
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Outbound SMTP email subsystem is working.

email.inbound.enabled=false

imap.server.enabled=false

当服务器启动到dong.pt@mydomain.com时,我可以收到测试电子邮件,但当我尝试邀请到同一个电子邮件地址时,我无法收到邀请消息。错误日志如下:

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

请帮我解决这个问题。

1 个答案:

答案 0 :(得分:0)

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

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

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

成功