cancel
Showing results for 
Search instead for 
Did you mean: 

address is incorrectly formatted

badim
Champ on-the-rise
Champ on-the-rise

Alfresco (Community). Current version: 5.1.0

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

mail.host=smtp.ex01.proektng.local
mail.port=25
mail.protocol=smtp
mail.username=user_alfresco@proektng.local
mail.password=12345678
mail.encoding=UTF-8

mail.smtp.starttls.enable=true
mail.smtp.auth=true

log:

2016-09-21 14:33:23,718 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to 'djon@proektng.local' as the address is incorrectly formatted

i need help!

1 ACCEPTED ANSWER

kaynezhang
World-Class Innovator
World-Class Innovator

To disable email validator

just  add  mail.validate.addresses=false in your alfresco-global.properties file .

View answer in original post

6 REPLIES 6

afaust
Legendary Innovator
Legendary Innovator

Any mail send via the MailActionExecuter will include validation of email addresses. Unfortunately the address validator does not consider "local" to be a valid top level domain and thus rejects the address.

The validator used by Alfresco is slightly outdated and may not be aware of any top level domains that have recently been approved / added by IANA.

At the moment you'd have to change the email addresses you use to make sending emails work.

badim
Champ on-the-rise
Champ on-the-rise

we use the corporate mail server and corporate domain .local

Can i disable the email validator?


					
				
			
			
				
			
			
			
			
			
			
			
		

afaust
Legendary Innovator
Legendary Innovator

No - there is no option that can be set to disable the email validator in that action. I had the same kind of issue reported by a customer earlier this year who was using an ancient version of Alfresco and checked this back then - the only way to disable validation would be to apply a source-level patch to Alfresco, which I do not recommend doing except for those that consider themselves Alfresco / software development experts.

badim
Champ on-the-rise
Champ on-the-rise

I saw a solution for version 3.4

there is an alternative way to send notifications ? (jabber)

i want disable the email validator

kaynezhang
World-Class Innovator
World-Class Innovator

To disable email validator

just  add  mail.validate.addresses=false in your alfresco-global.properties file .

afaust
Legendary Innovator
Legendary Innovator

Oh - that setting must have been added in 5.0. Haven't seen that yet..