address is incorrectly formatted

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
badim
Active Member

address is incorrectly formatted

Jump to solution

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 Solution

Accepted Solutions
kaynezhang
Intermediate

Re: address is incorrectly formatted

Jump to solution

To disable email validator

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

6 Replies
afaust
Master

Re: address is incorrectly formatted

Jump to solution

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
Active Member

Re: address is incorrectly formatted

Jump to solution

we use the corporate mail server and corporate domain .local

Can i disable the email validator?


					
				
			
			
				
			
			
			
			
			
			
			
		
afaust
Master

Re: address is incorrectly formatted

Jump to solution

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
Active Member

Re: address is incorrectly formatted

Jump to solution

I saw a solution for version 3.4

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

i want disable the email validator

kaynezhang
Intermediate

Re: address is incorrectly formatted

Jump to solution

To disable email validator

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

afaust
Master

Re: address is incorrectly formatted

Jump to solution

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