AnsweredAssumed Answered

Unable to enable connect the alfresco to the postfix

Question asked by sreejith on Jan 27, 2012
Latest reply on Jan 30, 2012 by sreejith
Hi,

I am using this app for the firswt time. I have been trying to implement the AWS SES service with the Alfresco. I have configured the postfix in such a way that mails send from the server will be send via SES. But emails are not getting send by the alfresco app when i create a user, etc.

Please find the method that i did to connect the postfix running from on the same machine.

1)  Added the following lines to the file : tomcat/shared/classes/alfresco-global.properties


mail.host=localhost
mail.port=25
mail.username=anonymous
mail.password=


2) Created the file named tomcat/shared/classes/alfresco/extension/custom-email-context.xml having the following entries:

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

<beans>
<!–                        –>
<!– MAIL SERVICE           –>
<!–                        –>

<bean id="mailService" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host">
        <value>${mail.host}</value>
    </property>
    <property name="port">
        <value>${mail.port}</value>
    </property>
    <property name="protocol">
        <value>${mail.protocol}</value>
    </property>
    <property name="username">
        <value>${mail.username}</value>
    </property>
    <property name="password">
        <value>${mail.password}</value>
    </property>
    <property name="defaultEncoding">
        <value>${mail.encoding}</value>
    </property>
    <property name="javaMailProperties">
        <props>
            <prop key="mail.smtps.auth">${mail.smtps.auth}</prop>
            <prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
        </props>
    </property>
</bean>
</beans>


3) Edited the file tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/email/OutboundSMTP/outboundSMTP.properties as shown below:

# Outbound SMTP properties

# use these properties to configure the out-bound SMTP server.
mail.host=localhost
mail.port=25
mail.username=anonymous
mail.password=
mail.encoding=UTF-8
mail.from.default=test@example.com
mail.protocol=smtp

# Additional Java Mail properties for SMTP protocol
mail.smtp.auth=false
mail.smtp.debug=false
mail.smtp.timeout=5000
mail.smtp.starttls.enable=false

# Additional Java Mail properties for SMTPS protocol
mail.smtps.auth=false
mail.smtps.starttls.enable=false


#use these properties to send test message during start of subsystem
mail.testmessage.send=false
mail.testmessage.to=
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Outbound SMTP email subsystem is working.




Can you guys please help me to set this up.

Thanks
Sreejith

Outcomes