cancel
Showing results for 
Search instead for 
Did you mean: 

Invite people to site failed !

nabilblk
Champ in-the-making
Champ in-the-making
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
7 REPLIES 7

chetna
Champ in-the-making
Champ in-the-making
hey, i m having problem. so did u get ur answer??
send solution to me tooo Smiley Happy
thanks

nabilblk
Champ in-the-making
Champ in-the-making
No , i don't find any solution , and the community seams to leave me in the desert

keesch
Champ in-the-making
Champ in-the-making
Guys, dunnow if you already got a solution but configuring mail settings < > do get me past the invitation error:
mail.host=<smtp server>
mail.port=25
mail.username=anonymous
mail.password=
mail.encoding=UTF-8
mail.from.default=<send address>
mail.smtp.auth=false
mail.protocol=smtp
But the next problem is that an invited user cannot accept the invitation and gets the errormessage on invitee accepts:
Failed to action task, which is what I read here:
http://forums.alfresco.com/en/viewtopic.php?f=47&t=27402
This is about configuring host config of Apache by rewriting ProxyPass and ProxyPassReverse:
ProxyPass /share http://localhost:8080/share
ProxyPassReverse /share http://localhost:8080/share
Now I'm using a bootstrapped Apache with Catalina server (org.apache.catalina.startup.Bootstrap) and only found a reference to ProxyPass and ProxyPassReverse in \tomcat\webapps\docs\proxy-howto.html

I do not know how to edit httpd.conf with a bootstrapped Apache so I tried editing Alfresco\tomcat\webapps\share\WEB-INF\urlrewrite.xml:
<!–<to>/page/proxy/$1</to>–>
     <to>/share/page/proxy/$1</to>
Only thing I know is that after trying to accept requests as site manager or site member I get the same error and the logs show every time a message dealing with an invalid jbpm id:

13:32:17,688 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 08290001 Wrapped Exception (with status template): 08290004 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/workflow/end-task.post.js': 08290003 Invalid Global Id 'jbpm18'
org.springframework.extensions.webscripts.WebScriptException: 08290001 Wrapped Exception (with status template): 08290004 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/workflow/end-task.post.js': 08290003 Invalid Global Id 'jbpm18'
Caused by: org.alfresco.scripts.ScriptException: 08290004 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/workflow/end-task.post.js': 08290003 Invalid Global Id 'jbpm18'
Caused by: org.alfresco.service.cmr.workflow.WorkflowException: 08290003 Invalid Global Id 'jbpm18'

For now I'm stuck and really would appreciate some help.
To convince the office Alfresco could be the app that we should use I first should have some simple tests up running  :roll:

keesch
Champ in-the-making
Champ in-the-making
By installing the last version (alfresco-community-3.4.a) and setting the outboundSMTP.properties the problem got solved.

phswartz
Champ in-the-making
Champ in-the-making
Okay, I'm using alfresco-3.4.a on OpenSuse 11.3 and postfix.  However, I can not find any file that has a "outboundSMTP.properties" entry for me to change.  What file do I put that entry? what syntax?
Once that entry is configured, do I need to restart Alfresco?

Thanks for any help,

Patrick

carlos_miguens
Champ on-the-rise
Champ on-the-rise
Hi Patrick

outboundSMTP.properties isn't a an entry in a file, it is the controlling file for the outBoundSMTP sub-system. Find it on your system by doing a search in the Alfresco installation directory. It will be somewhere like ~alfresco/subsystems/email/outboundSMTP. Open it up and you'll see all the default settings.

You could change these here, but better still is to copy the settings into alfresco-global.properties and edit the settings there. This file (alfresco-global.properties) is the last file loaded and over-rides all the other property settings for the system. You can put any settings in here and it keeps things in one place, making this the preferred way of doing this and best practice for adminsitrators.

Any time you make a change to the properties files you will need to restart the server.

Hope this answers your question.
Carlos

ati_dip1982
Champ in-the-making
Champ in-the-making
Hi Guys
When i did my Research in this topic i found out that , invite usually getting failed when both the invitee and inviter ar in same domain. what i mean to say is if a@xyz.com is inviting b@xyz.com then invite is getting failed. the moment u change the email id of a to a@zyx.com , then invite is sending successfully.. i still couldn't found oout ne solution why this is happening but this strange beheviour is still very much bothering me.

Thanks,
Atish