AnsweredAssumed Answered

SMTP config Alfresco 3.3

Question asked by ochacal on Aug 5, 2010
Latest reply on Aug 9, 2010 by ati_dip1982
Hi!
I try config the alfresco-global.properties file to enable send email by smtp service, but is not work.

in the alfresco-global.properties file, I change the above lines.
# Outbound Email Configuration
#————-
mail.host=200.219.210.5 (I try do host name too)
mail.protocol=smtp
mail.port=25
mail.username=marcao@grupoasserth.com.br
mail.password=XXXXXXXXXXXXXXXXXXXXXXXXX
mail.encoding=UTF-8
mail.from.default=marcao@grupoasserth.com.br
mail.smtp.auth=true
mail.testmessage.send=true
mail.testmessage.to=marcoraymundo@gmail.com
mail.testmessage.subject=ALFRESCO TESTE
mail.testmessage.text=TESTANDO ALFRESCO

In the alfresco.log file return the following error:
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 07040000 Failed to send email to:marcoraymundo@gmail.com
   at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:466)
   at org.alfresco.repo.action.executer.MailActionExecuter.init(MailActionExecuter.java:266)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1529)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1468)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
   … 44 more
Caused by: org.springframework.mail.MailSendException; nested exceptions (1) are:
Failed message 1: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
   com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1 <marcoraymundo@gmail.com>: Relay access denied

   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:421)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:341)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:356)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
   at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:439)
   … 52 more
15:04:43,641 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 227 Web Scripts (+0 failed), 235 URLs
15:04:43,641 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
15:04:43,641 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
15:04:43,766 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 2107.4507ms)
15:04:43,844 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:04:43,969 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:04:44,078 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:04:44,078 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:04:44,203 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:04:44,313 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js

In the http://wiki.alfresco.com/wiki/Configuring_Email_for_Alfresco page, I read there should be two files in the /<alf_dir>/tomcat/shared/classes/alfresco/extension, I searched for then, but they not exists in the alfresco 3.3g community installation.

I need activate the alfresco smtp send email to avaliable the Alfreco.
Someone can help me?

oChacal

Outcomes