cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP config Alfresco 3.3

ochacal
Champ in-the-making
Champ in-the-making
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
[email protected]
mail.password=XXXXXXXXXXXXXXXXXXXXXXXXX
mail.encoding=UTF-8
[email protected]
mail.smtp.auth=true
mail.testmessage.send=true
[email protected]
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:[email protected]
   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 <[email protected]>: 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
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
I've deleted that wiki page since it was obsolete and clearly managed to confuse you.

ati_dip1982
Champ in-the-making
Champ in-the-making
Hi,
I have customised Alfresco 3.2r2 repository to drop e-mails directly.

Here are the steps.

Server Side configuration settings:

In the location on the server wherever the stack is installed set the properties as mentioned in the example below:
location:"tomcat\shared\classes\alfresco-global.properties"

# IMAP
#————-
imap.server.enabled=true
imap.server.port=143
imap.server.host=0.0.0.0

location:\shared\classes\alfresco\extension\custom-email-server.properties

email.server.enabled=true
email.server.port=25
email.server.domain=abc.domain.com


1.   Now Open MS-Outlook
a.   Select Tools > Account Settings
b.   Click on New
c.   As a result of clicking on New a Pop-up window will open where following steps needs to be followed
i.   Select Microsoft POP3,IMAP, HTTP Click Next
ii.   Select Check box for Manually Configure Server settings  Click Next
iii.   Select Internet Mail option
iv.   Fill the details as follows
v.            your name                  :             Rahul Singh   
         EmailAdd                   :             [email protected]
  Server Information
         Account Type             :             IMAP
         Incoming mail Ser        :            abc.domain.com
         Outgoing Mail ser        :             abc.domain.com
   Logon Information
         username                    :            Rahul.singh
         password                    :             abc123(anything)
vi.   Click on Next and Finish.
d.   All the above configuration is in MS-Outlook now
2.   Now Login to Alfresco and go to Admin Console
a.   Click on Manage System Users  Create User
b.   Then fill the new user detail wizard
c.   make sure that  email id is [email protected].

d.   Just finish the wizard by clicking on Finish button
e.   Go to company home and create one space. Name it as you like; here I am creating the space with the name Technical writing.
f.    Click on Technical Writing – > view details –> manage space users –> add user.
g.   Search for the user Rahul.singh and add that user as contributor or whatever that you want but make sure about permissions.
h.   Go to Technical Writing space and click on run action. It will open run action wizard
select add aspect and click on set values and add, select Email Alias, then click on next and finish that wizard.
i.    Next edit this space property. And create Email Alias as some tech
j.   Go to Admin Console and then Click on Manage User Group
k.   Within User group you will find EMAIL_CONTRIBUTORS group
l.   In EMAIL_CONTRIBUTORS group click on More Actions and Add user Rahul.singh
===========================
If the DNS doesn’t having record of your IP address w.r.t. domain name then follow these steps on client as well as server side:
Note: You can confirm it by executing the following command “nslookup server-domain-name” on command prompt. If it is giving timeout exception then strictly follow below steps.
In order to configure MS-Outlook for sending mail to AxonShare following steps needs to be followed:
3.   Go to  C:\Windows\System32\drivers\etc
4.   Add server name. for example a domain like abc.com can be added as follows 
serverip       domainname
Where serverip is the ip address of the server (eg 125.64.69.47) and
eg abc.domain.com

cheers
Atish