cancel
Showing results for 
Search instead for 
Did you mean: 

Email Server Configuration

kkroese
Champ in-the-making
Champ in-the-making
Hi I am running the community version 2.9B
I would like to implement http://wiki.alfresco.com/wiki/Email_Server_Configuration  so that I can send emails to specific spaces but I am really struggling to follow this article.
Could anyone help me out?  I do not have a mail server running inside a JVM.  IS this required?  I can connect to a pop3.  If needed I will install a mail server inside a JVM. I have no experience with Java, so I would really appreciate some direction on this.  I searched the forums and see some people have posted similar questions but with no real responses.
4 REPLIES 4

sbuckle
Champ in-the-making
Champ in-the-making
There's a mail server built-in. It should just work out of the box; I don't remember having to do anything to get it to work. Take a look at this thread for some pointers: http://forums.alfresco.com/en/viewtopic.php?f=9&t=136

sbuckle
Champ in-the-making
Champ in-the-making
OK. I just checked my configuration and you do need to enable it Smiley Happy

In ${TOMCAT_HOME}/shared/classes/alfresco/extension, create two files: custom-email-server-context.xml and custom-email-server.properties, as the wiki page tells you to. I have listed custom-email-server-context.xml for you below:



<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
  
    <bean id="emailServerConfigurationProperties" class="org.springframework.beans.factory.config.PropertyPlace
holderConfigurer">
        <property name="ignoreUnresolvablePlaceholders">
            <value>true</value>
        </property>
        <property name="locations">
            <list>
                <value>classpath:alfresco/emailserver/email-server.properties</value>
                <value>classpath:alfresco/extension/custom-email-server.properties</value>
            </list>
        </property>
    </bean>

</beans>

Restart your server.

zaizi
Champ in-the-making
Champ in-the-making
Alfresco comes pre-configured. To enable the mail server follow the instructions for the in-process mail server: http://wiki.alfresco.com/wiki/Email_Server_Configuration#In-Process_Email_Server. This is the easiest configuration to get you started. However, no the best as you'll have the mail server running in the same process as Alfresco and using up valuable resources.

To confirm that mail server is working;

$ telnet localhost 25

Should return something like

Connected to localhost.
Escape character is '^]'.
220 alfresco.com ESMTP SubEthaSMTP

You can test following these instructions: http://support.microsoft.com/kb/153119

Assuming alfresco is running on localhost and on port 25. On linux/mac you'll need to start Alfresco as root bind to reserved ports.

kkroese
Champ in-the-making
Champ in-the-making
Hi

Thanks for all the replies.  I got it working now.  I suppose I should have just read the log files properly as I were getting Bind exceptions. Thanks for steering me in the right direction.
I am running alfresco on Linux as a non root user.  As port 25 is privileged I had to change my mail port to a non-privileged port.  I created a natting rule on iptables to forward traffic from port 25 to my new port and presto.  It works.