AnsweredAssumed Answered

Invite people to site failed !

Question asked by nabilblk on Sep 14, 2010
Latest reply on Nov 2, 2010 by ati_dip1982
I have an exception when trying to invite people into my share site .

in the user interface i have this message :

0 invites sent out, 1 failures
in the log file i have this message :

Caused by: org.springframework.mail.MailSendException; nested exceptions (1) are:
Failed message 1: com.sun.mail.smtp.SMTPSendFailedException: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)

        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:438)
        … 140 more

Note :
with the explorer i have the same error , and i resolved with putting the SMTP Mail propertiesdirectely in 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.xxxx.com"/>
        <property name="port" value="555"/>
        <property name="username" value="invite@xxxx.com"/>
        <property name="password" value="xxxxx"/>
    <property name="javaMailProperties">
        <props>
      <prop key="mail.smtp.auth">true</prop>
      <prop key="mail.transport.protocol">smtp</prop>
      <prop key="mail.smtp.starttls.enable">true</prop>
        </props>
    </property>
</bean>
</beans>


but the share invite user use the alfresco-global.properties :

here my mail SMTP configuration :

mail.host=mail.xxxx.com
mail.port=26
mail.username=invite@xxxx.com
mail.password=xxxx

# New Properties
mail.smtp.starttls.enable=true
mail.smtp.auth=true
mail.transport.protocol=smtp

can you help please it's so close  : I use Alfresco community 3.3

Outcomes