AnsweredAssumed Answered

Outbound smtp autentication error

Question asked by simotogno on Sep 20, 2011
Latest reply on Dec 14, 2011 by muthukimoses
Hi all!
I'm new in this form. I have a couple of question about alfresco configuration and customization.
I'm usig alfresco CE 3.4d
The fist is related on the title of this topic.


I whant set up the outbound  e-mail server
heare are the parameter for server connection that I've set in the alfresco-global.properties


mail.host=smtp.gemmespa.it
mail.port=25
mail.transport.protocol=smtp
mail.username=username
mail.password=password
mail.smtp.auth=true
mail.encoding=UTF-8

and this is the outboundSMTP-context.xml
  

<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>

But if alfresco try to send an email, in the log file i get this exception


11:41:20,968 User:admin ERROR [action.executer.MailActionExecuter] Failed to send email to [simone]
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
   com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, you need to supply the correct username and password for SMTP-AUTH (#5.7.1)

   at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
   at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:402)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:341)

I'm sure that the username ad password are correct.

please help me.
Regards
Simone.

Outcomes