cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to send email as the address is incorrectly formatted

marcobusetto
Champ in-the-making
Champ in-the-making
I created a test space under my user home and I defined a rule to get an email notification when a new document is created in that space. The rule seems to work except for an annoying problem regarding the e-mail address format.

I'm using an openLDAP authentication system and I defined my e-mail addresses in the classic format name.lastname@company.com but I noticed that in the sender field Alfresco use this format as is.

From: <a.user@mycompany.it>
To: <marco.busetto@mycompany.it>
Subject: New contents notification

A new document 'Welcome', is available in the 'XYZ' space, it was added by A user.

You can view it through this link:
[…]

So I tryed to change the format of some e-mail address in my LDAP directory as follow:
Name Lastname <name.lastname@mycompany.it>

After that, some feature like the invitation or the "Email Space users" seem to work and in the sender and recipients fields I can see the correct format:

From: A User [mailto:a.user@mycompany.it]
To: Marco Busetto
Subject: You have been invited to '/Company Home/User Homes/…

You have been invited to 'XYZ' by A User.

You will have the role of: Contributor

Unfortunately some other features don't work anymore, like i.e. the notification of new contents that I defined as a space rule. In that case in Alfresco I receive an error like "Failed to create content due to error: 05180014 Failed to send email to:marco.busetto" and in the alfresco.log file I can see an error like this:

10:38:49,426 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to 'Marco Busetto <marco.busetto@mycompany.it>' as the address is incorrectly formatted

Another strange thing is that if the recipient is a group and not a user (or more than a user) everythings seems to work fine. Anyway I don't like very much this workaround: if I had 10.000 users I couldn't thinking to create 10.000 groups, one for every single user…

Any ideas?
Thanks.
_
1 REPLY 1

vignesh_sabapat
Champ in-the-making
Champ in-the-making
Hi

I have come across a situation similar to yours and i followed this thread https://forums.alfresco.com/en/viewtopic.php?f=9&t=25488.

I posted my solution on the same thread. you can use the jar find here

http://code.google.com/p/alfresco-mail-novalidation/downloads/detail?name=alfresco-repository-3.4.d....