cancel
Showing results for 
Search instead for 
Did you mean: 

Can not send invite email

neozone
Champ in-the-making
Champ in-the-making
When I send invite to someone use email xxxx@AAA.com, it appeare fail and this it in log file

17:48:24,425 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to xxxx@AAA.com
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for xxxx@AAA.com

And this is configuration in alfresco-global.properties
#
# Outbound Email Configuration
#————-
mail.host=mail.AAA.co.th
mail.port=25
mail.username=Alfresco@AAA.co.th
mail.password=alfresco
mail.encoding=UTF-8
mail.from.default=Alfresco@AAA.co.th
mail.smtp.auth=true
mail.protocol=smtp
#
# Alfresco Email Service and Email Server
#————-

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#————-
#email.inbound.enabled=true

# Email Server properties
#————-
#email.server.enabled=true
#email.server.port=25
#email.server.domain=alfresco.com
#email.inbound.unknownUser=anonymous

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match. For example:
#   .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#————-
email.server.allowed.senders=.*

Which all configuration was worked in Alfresco 3.2r2.
Has anyone know the way to solve this problem?
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
This isn't an Alfresco issue. It's your mail server refusing to send emails to that address. Check your mail server settings.

Ainga

morlacheerful
Champ in-the-making
Champ in-the-making
Hi,

well i have the same problem.
I am New to Alfresco AND New to Linux.
I Installed Alfresco on a CentOS Virtual Server.
Seems to me that everything is ok, but i get an error sending invitation mail.
The same error as ZAIZI wrote.
But  send invitation to an external user with the same mail Domain like the Domain configured in the properties, there is no error but the mail never arrives…

So the mail server is an exchange Server 2003, i am very sure that the Username an passowrd is ok and in fact i can send mails from everywhere in the word. So i do not think ists a problem with the mail server.

can anyone tell me what to do to have an smtp server on the localhost? How can i see if there is a smtp-server running on CentOS.

Kind Regards
Morlacheerful

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
mail.host = mail.test.com
mail.port = 26
mail.transport.protocol = smtp
mail.username = test@test.com
mail.password= test
mail.smtp.auth = false#pay attention on this.

#used for gmail, if not gmail just copy paste
mail.smtp.socketFactory.port = 465
mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback = false
mail.smtp.timeout = 50
mail.smtp.starttls.enable = false

this should work fine, works for me.