Outbound email failure

cancel
Showing results for 
Search instead for 
Did you mean: 
imanez1
Active Member II

Outbound email failure

Hello,

I had Alfresco Community 6.2 installed on a server that i backed up and restored in a new server. Everything works fine (as far as i know) except for the outbound emails, sometimes they work and sometimes they don't, this is the error i'm getting:

 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-1] Exception from executeScript: Error creating bean with name 'mail' defined in URL [jar:file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-7.134.1.jar!/alfresco/subsystems/email/OutboundSMTP/outboundSMTP-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 11240018 Failed to send email to:

alfresco-global.properties:

#
# Outbound Email Configuration
#-------------

mail.host=smtp.gmail.com
mail.port=465
mail.protocol=smtps
mail.username=
mail.password=
mail.encoding=UTF-8
mail.smtps.starttls.enable=true
mail.smtps.auth=true
mail.debug=true

mail.from.default=
mail.testmessage.send=true
mail.testmessage.to= 
mail.testmessage.subject=Outbound SMTP 
mail.testmessage.text=The Outbound SMTP email subsystem is working.

I checked in my gmail, the option "allow less secure app access" is on.

I checked with the system administrator, all the ports are fine.

What might be the problem here? since it works one time and doesn't work another time.