cancel
Showing results for 
Search instead for 
Did you mean: 

E-mail configuration

tfpadilla
Champ in-the-making
Champ in-the-making
Hi,
I have just installed alfresco but  I am unable to make email works.
PLEASE, PLEASE Could anyone tell me what and how should I do?
I think I've tried everything.

Thanks a lot and regards from Spain
7 REPLIES 7

feat
Champ in-the-making
Champ in-the-making
Hi all!

I use Alfresco 2.1 Community Edition and I tried to test sending emails from Alfresco.

I realized, the email notification works fine, when I invite users to join my space. But selecting Email Space users action, it doesn't work…except both subject and body contains only 1 special character like dot, comma, slash,…etc.

Is that an issue?

feat

tfpadilla
Champ in-the-making
Champ in-the-making
Hi feat,
That is much more than i have. Could you tell me, please how have you configured the email?

feat
Champ in-the-making
Champ in-the-making
Hi,
In
…\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\repository.properties
there is a section for email configuration
# Email configuration
mail.host=…
mail.port=25
mail.username=…
mail.password=…
# Set this value to UTF-8 or similar for encoding of email messages as required
mail.encoding=UTF-8
# Set this value to 7bit or similar for Asian encoding of email headers as required
mail.header=
mail.from.default=…
Here you can configure email properties.
Configure, restart, test…Hope this helps.

feat

tfpadilla
Champ in-the-making
Champ in-the-making
Thanks feat,

I have already configured this section but ..nothing.

I've read somewhere that repository does not support secure SMTP servers.
Do you know something about?

feat
Champ in-the-making
Champ in-the-making
Don't know, accordingly I am asking Alfresco developers, as you can see in my first post in this topic  :?

feat
Champ in-the-making
Champ in-the-making
Hi all!

I use Alfresco 2.1 Community Edition and I tried to test sending emails from Alfresco.

I realized, the email notification works fine, when I invite users to join my space. But selecting Email Space users action, it doesn't work…except both subject and body contains only 1 special character like dot, comma, slash,…etc.

Is that an issue?

feat

Here is the stack trace


16:30:11,825 ERROR [web.bean.TemplateMailHelperBean] Failed to send email to xxxxxxxxx
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Requested action not taken: message refused

        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1275)
        at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1149)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:527)
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:391)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:335)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:350)
        at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:339)
        at org.alfresco.web.bean.TemplateMailHelperBean.notifyUser(TemplateMailHelperBean.java:149)
        at org.alfresco.web.bean.users.EmailSpaceUsersDialog.finishImpl(EmailSpaceUsersDialog.java:155)
        at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:118)
        at org.alfresco.web.bean.dialog.BaseDialogBean$1.execute(BaseDialogBean.java:115)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
        at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:124)
        at org.alfresco.web.bean.dialog.DialogManager.finish(DialogManager.java:347)
        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:585)
        at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
        at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
        at javax.faces.component.UICommand.broadcast(UICommand.java:109)
        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
        at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.alfresco.web.app.servlet.NTLMAuthenticationFilter.doFilter(NTLMAuthenticationFilter.java:329)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:595)
Maybe SMTP reconfiguration needed? Help pls!

mchan
Champ in-the-making
Champ in-the-making
I had the same (or similar) problem. It turned out that the sender of invitations was admin. I went to manage system users, entered a proper email (one with domain that is acceptable to the smtp server I had setup), and now it's all good!

It helped for me to turn on mail debug and observed the log. To do that, I added the prop mail.debug and set it to true on the bean mailService in core-services-context.xml.