AnsweredAssumed Answered

Configurar email smtp

Question asked by marcao on Aug 4, 2010
Latest reply on Aug 23, 2010 by ivo.costa
Boa tarde!

Utilizo windows server 2003 datacenter 32bits, e instalei o Alfresco 3.3, e agora preciso habilitar a envio de emails por smtp.

Efetuei as seguintes configurações no arquivo: alfresco-global.properties
# Outbound Email Configuration
#————-
mail.host=200.219.210.5
mail.protocol=smtp
mail.port=25
mail.username=marcao@grupoasserth.com.br
mail.password=XXXXXXXX
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

E no arquivo alfresco.log eu obtenho as seguintes linhas:
   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 : 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

Eu, não tenho experiência no alfresco e se alguém puder ajudar, eu agradeço.

Obrigado.
Marco

Outcomes