cancel
Showing results for 
Search instead for 
Did you mean: 

Out Bound email error

vikasmannur1
Champ in-the-making
Champ in-the-making

Hi

i have installed Alfresco Content Services Community: 6.0.2-ea i am trying to configure inbound and outbound email even though i have updated it correctly i am getting the below error

07080007 Wrapped Exception (with status template): Error creating bean with name 'mail' defined in URL [jar:file:/opt/alfresco-content-services-community-full/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-6.26.jar!/alfresco/subsystems/email/OutboundSMTP/outboundSMTP-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 07080018 Failed to send email to:vikas@XYZ.com

settings is as mentioned below

mail.host=smtp.gmail.com
mail.port=587
mail.username=content@XYZ
mail.password=1234
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true
#mail.encoding=UTF-8
#mail.from.default=
mail.smtp.auth=true

can anyone please help me rectifying this issues

6 REPLIES 6

ranjeetsi
Star Contributor
Star Contributor

Hello Vikas,

Can you use 465 as port and not 587

mail.smtp.auth=true      should be           mail.smtps.auth=true

SMTPS - Wikipedia 

=================================================

Also you can try once with smtp - then you can use 587 as port

mail.host=smtp.gmail.com
mail.port=587
mail.username=content@XYZ
mail.password=1234
mail.protocol=smtp
mail.smtp.starttls.enable=true
mail.smtp.auth=true

Check if this works for you. Thanks!

Alfresco Content Services Certified Engineer (ACSCE)

thanks bro

Kiyasha_27
Champ in-the-making
Champ in-the-making

Hi there,

So I am also experiencing a similar issue and your suggestion was not able to fix my error:

08180002 Wrapped Exception (with status template): Error creating bean with name 'mail' defined in URL [jar:file:/C:/alfresco/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-17.183.jar!/alfresco/subsystems/email/OutboundSMTP/outboundSMTP-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 08180038 Failed to send email to:kreethram27@gmail.com

I have ACS installed on my local (v7.0.0.3) and my alfresco-global.properties files are as follows:

# Outbound Email Configuration
#-------------
mail.host=smtp.gmail.com
mail.port=587
mail.username=kreethram27@gmail.com
mail.password=password
mail.protocol=smtps
mail.encoding=UTF-8
mail.from.default=kreethram27@gmail.com
mail.smtp.auth=true
mail.smtp.starttls.enable=true

# Test message configuration
mail.testmessage.send=true
mail.testmessage.to=kreethram27@gmail.com
mail.testmessage.subject=AlfOutbound Mail System
mail.testmessage.text=Sending Mails Workshop

Could you please advise on where the issue could be and if additional properties are missing?

Thank you.

Kind regards,

Kiyasha.R

My goal is to try and send out an email when a document enters a folder but I am unable to create and save the rule due to this error.

fedorow
Elite Collaborator
Elite Collaborator

Are you shure, what the smtp.gmail.com will recive your connection in old style? Gmail has tightened its security protocols, and they no longer allow simple password authentication for SMTP due to security concerns. Previously, it was possible to use an "application password" or allow less secure apps, but these options have been phased out. Currently, Gmail supports secure methods like OAuth2 for authentication or using an SMTP relay service.

Configure SMTP Ralay in your gmail account and change the Alfresco configuration for smtp-relay.gmail.com.

Kiyasha_27
Champ in-the-making
Champ in-the-making

Hello,

I seem to be encountering the same issue after trying that. There is another option in the documentation for using Zimbra which I set but also got the same error:

# Sample Zimbra settings
Not authenticated.

mail.host=zimbra.<your company>
mail.port=25
mail.username=anonymous
mail.password=password
mail.encoding=UTF-8
mail.from.default=<default from address>
mail.smtp.auth=false
mail.smtp.timeout=30000