cancel
Showing results for 
Search instead for 
Did you mean: 

Outbound smtp autentication error

simotogno
Champ in-the-making
Champ in-the-making
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.
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
It would seem not! Are your username and password really "username" and "password"?

simotogno
Champ in-the-making
Champ in-the-making
No, there aren't. In the cunfiguration file i have the right username and password.
I'have tested the parameter with other program and it works well.
Can be another error that return the same message?
Thanks.
Simone

simotogno
Champ in-the-making
Champ in-the-making
No one?  Smiley Sad

muthukimoses
Champ in-the-making
Champ in-the-making
configuring smtp nowadays seems to be complex. will give it another try and simplify the process for other community members.

muthukimoses
Champ in-the-making
Champ in-the-making
Got it for 4.0 community version; in alfresco-global.properties

### E-mail site invitation setting ###
notification.email.siteinvite=true

### SMTP Configuration ###

mail.host=smtp.gmail.com
mail.port=465
mail.protocol=smtps
mail.username=yourname@gmail.com
mail.password=yourpassword
mail.encoding=UTF-8
mail.smtps.starttls.enable=true
mail.smtps.auth=true

this will send the email invitation.