AnsweredAssumed Answered

OutboundSMTP Settings

Question asked by skri1979 on Nov 3, 2010
Latest reply on Nov 23, 2010 by skri1979
I find configuring OutboundSMTP Settings quite confusing.
Yes, I read the WIki.
And yes, I browsed the Community Forum for this topic.
But still I can't find any solution.

I tested alfresco community version 4.3.a on WinXP SP3 and on Debian Lenny.
I'm testing on a local machine. Not in the internet. (Maybe this is the problem…)
On none of the test-installations, I got Outbound SMTP running.

As far as I see, the Problem is that the SMTP Client does not authenticate on the email server.
But toggling smtp.auth = true or false makes no difference…

Is there any other file to be touched than global properties and the custom email context?

Thanks in advance for your help.

Kindest regards.
K.

Here is the alfresco global properties part for mail
###Mail ###
mail.host=xxx
mail.port=25
mail.username=xxx
mail.password=xxx
mail.encoding=UTF-8
mail.from.default=xxx
mail.smtp.auth=true
mail.smtp.timeout=30000
mail.smtp.starttls.enable=false
mail.protocol=smtp

Here is the custom email context.xml
<?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.smtp.auth">${mail.smtp.auth}</prop>
            <prop key="mail.smtp.starttls.enable">${mail.smtp.starttls.enable}</prop>

        </props>
    </property>
</bean>
</beans>

Here is the last part of tomcat Log.

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: 550 must be authenticated

   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)
   … 144 more

Outcomes