cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration of Incoming Email

sathya
Champ in-the-making
Champ in-the-making
Can anyone explain about how to configure Incoming Email in alfresco Community 4.0 d? I referred lot of links,but I didn't get correct solution. Please explain about Email configuration in simple steps.  Thanks in advance.
8 REPLIES 8

jpotts
World-Class Innovator
World-Class Innovator
If you have already read:
http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/concepts/email-intro.html

And you still have questions or problems, please post what specific problem you are having.

Also, please put posts in the proper forum. This post has nothing to do with Alfresco Share End-User questions, so I am moving it to Configuration.

Jeff

jaredadams
Champ in-the-making
Champ in-the-making
Hi, much like the original poster, I have read the email config doc.  It makes mention of settings that I imagine are configured in a text file.  However, it doesnt mention which file.  I've done a grep on the folder and it returned 30 or so documents. 

I guess the question I'm asking is WHERE do I configure these options?

mrogers
Star Contributor
Star Contributor
You put your configuration settings (email included) in alfresco-global.properties which you will find in the "shared/classes" folder.

jaredadams
Champ in-the-making
Champ in-the-making
Awesome! Thanks, ill check this out.  Thanks for the quick response!

philipmrussell
Champ in-the-making
Champ in-the-making
I have been having similar issues with trying to get inbound email to work with Community 4.0.e. Outbound was easy but inbound is causing me problems. I managed to set up all the fields in alfresco.global.properties

# Alfresco Email Service and Email Server
email.inbound.enabled=true
# Email Server properties
email.server.enabled=true
email.server.port=25
email.server.domain=prussell.dyndns,org
email.inbound.unknownUser=anonymous
email.server.allowed.senders=.*\@prussell\.dyndns\.org, .\@gmail\.com, .\@nemodat\.dyndns\.info

imap.server.enabled=true
imap.server.port=143
imap.server.host=localhost

email.server.hideTLS=false
email.server.enableTLS=true
email.server.requireTLS=false

I couldn't find any other info to put in.

I set up an MX mailsever entry in my DNS and opened up port 25 on the firewall.

on sending an email I get it bounced back with an email message containing
<philip@prussell.dyndns.org>: host prussell.dyndns.org[86.173.235.148] said:
    554 The email address 'philip@prussell.dyndns.org' does not reference a
    valid accessible node. (in reply to end of DATA command)

The log file says

07:56:21,450 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to philip@prussell.dyndns.org
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1 c t1sm10130910eeo.3
; message exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 t1sm10130910eeo.3  (Looked that up on google - no help)

It goes on here but I am not sure of the relevance.

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
   at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
   at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
   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:355)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:344)
   at org.alfresco.repo.action.executer.MailActionExecuter.prepareAndSendEmail(MailActionExecuter.java:574)
   at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:333)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:196)
   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.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:65)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy229.execute(Unknown Source)
   at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:780)
   at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:700)
   at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:538)
   at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:524)
   at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:789)
   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.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy37.executeAction(Unknown Source)
   at org.alfresco.repo.activities.feed.FeedNotifierImpl.sendMail(FeedNotifierImpl.java:483)
   at org.alfresco.repo.activities.feed.FeedNotifierImpl.prepareAndSendEmail(FeedNotifierImpl.java:461)
   at org.alfresco.repo.activities.feed.FeedNotifierImpl$1.execute(FeedNotifierImpl.java:295)
   at org.alfresco.repo.activities.feed.FeedNotifierImpl$1.execute(FeedNotifierImpl.java:292)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
   at org.alfresco.repo.activities.feed.FeedNotifierImpl.executeInternal(FeedNotifierImpl.java:291)
   at org.alfresco.repo.activities.feed.FeedNotifierImpl.execute(FeedNotifierImpl.java:222)
   at org.alfresco.repo.activities.feed.FeedNotifierJob$1.doWork(FeedNotifierJob.java:67)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
   at org.alfresco.repo.activities.feed.FeedNotifierJob.execute(FeedNotifierJob.java:63)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

So I appear to have a problem that is eluding me. I have missed something probably quite obvious in the setup and configuration.
I have a user called philip and one called anonymous. I have logged in with these and made some files. Their names have been added to EMAIL_CONTRIBUTORS
I put a filename in the subject email.doc and sent an email and an attachment from outlook. I have tired sending to admin, phiip and anonymous. The have made folders in their user area.
It seems to reach the server then Authentication required and does not reference a valid accessible node

I have tried every thing I can think of, so could anyone tell me the part I missed out. Much of the documentation points to bits that are only available for enterprise versions, so I am now at a loss of what to do. Thanks

mrogers
Star Contributor
Star Contributor
You need to create an email alias for "philip" by adding the aliasable aspect to a folder or document.  Inbound email can either send to an email alias or a docid.

Also noticed email.server.domain=prussell.dyndns,org
is wrong, its got a comma in.   However that does not seem to be a problem since you have connected with alfresco.

philipmrussell
Champ in-the-making
Champ in-the-making
Thanks  for the info - now create an email alias for "philip" by adding the alias-able aspect to a folder or document seems to be the bit I am missing. How do I do this in community. I can't seem to find a way of making the folder alias-able. I can't find in community where to find this. All the info I have found points me to the Admin control panel and a link there - I don't have this link.

I have been to
Repository - User Homes - Philip I have "managed the aspects" and selected alias-able. That hasn't made a difference. Still the same errors.

I can't find anything in the Admin Console -

Where do I look to find this. I think I really need this spelled out for me step by step. This might be a good topic for a video!

philipmrussell
Champ in-the-making
Champ in-the-making
Email all works now thanks to Patrick Bailey and his white board site
http://www.whiteboardcoder.com/2012/10/alfresco-4-install-on-ubuntu-1204-and.html?showComment=135065...

Halfway down the article he explains how to get email working in simple pictures.

use the /alfresco to set everything up not /share - which has all the necessary bits missing.

No answers from alfresco - even them telling me to read the 3.4 manual would have helped rather than reading the 4 manual which doesn't contain the info.