cancel
Showing results for 
Search instead for 
Did you mean: 

email configuration [Solved]

michaelc
Champ on-the-rise
Champ on-the-rise
Setting up 3.3g Community edition on a windows box and I am trying to setup the SMTP services.

Seems the location of the configuration file to modify has moved.

I have the book Alfresco 3 ecm Imp and it refers to a file tomcat/shared/classes/alfresco/extension/custom-respository.properties
  this file does not exist.

I checked the WIKI http://wiki.alfresco.com/wiki/E-mail_Configuration
it refer to a <configRoot>/repository.properties
this does exist.

I do find a C:\Alfresco\tomcat\shared\classes\alfresco-global.properties
that contains
#
# Outbound Email Configuration
#————-
#mail.host=
#mail.port=25
#mail.username=anonymous
#mail.password=
#mail.encoding=UTF-8
#mail.from.default=alfresco@alfresco.org
#mail.smtp.auth=false

Would this be the correct file to define my SMTP server ?

Answer Nope
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.alfresco.com, port: 25;

So what do I change ?
3 REPLIES 3

mcraven
Champ in-the-making
Champ in-the-making
What did you set your mail.host to? You need to set the host to what ever your SMTP server is. smtp.alfresco.com is just a place hold. You should also change the mail.from value to a e-mail address in your domain.

Regards,
Mark C.

michaelc
Champ on-the-rise
Champ on-the-rise
I understand that.
My problem is what file is modified ?

I did a search and it looks like \Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\email\OutboundSMTP\outboundSMTP.properties

is this file to be modified but this does not match the wiki or my book.
I modified this file and it did change the SMTP server.

I now get the following error
exception is javax.mail.MessagingException: Could not connect to SMTP host: xx.xx.org, port: 25;
  nested exception is:
   java.net.ConnectException: Connection refused: connect
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:418)
   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)
   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)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)

michaelc
Champ on-the-rise
Champ on-the-rise
This seems to be an windows issue, I did the same in linux and it seems to work