I am trying to setup email notifications through a gmail account and getting
###
ERROR [org.alfresco.repo.action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to [CMDbuild] : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 465; timeout -1;
nested exception is:
java.net.ConnectException: Connection timed out: connect. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 465; timeout -1;
nested exception is:
java.net.ConnectException: Connection timed out: connect; message exceptions (1) are:
Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 465; timeout -1;
nested exception is:
java.net.ConnectException: Connection timed out: connect
###
I used the alfresco documentation and some youtube walkthroughs don't know what I am doing wrong.
alfresco-global.properties settings
...
### E-mail site invite settings###
notification.email.siteinvite=true
# Sample Gmail settings
mail.host=smtp.gmail.com
mail.port=465
mail.protocol=smtps
mail.username=myemail.address@gmail.com
mail.password=XXXX####"Special Character here"
mail.smtp.timeout=30000
#New Properties
mail.smtps.starttls.enable=true
mail.smtps.auth=true
...
To clarify my email address contains a dot "." in the middle not sure if that is going to cause an issue. The password also has a spacial character but there are no '"' in the password field or in the password itself.
My IMAP and POP protocols are disabled in my google account, do they need to be activated?
IMAP protocol is commented out in the in the alfresco-global.properties file. None of the tutorials I used enabled them for gmail setup.
Anyway I am going to keep working on it, if you have a suggestion please let me know.
Thanks
Tyler
Can you telnet from that machine to GMail SMTP ? For example:
$ telnet smtp.gmail.com 465
Trying 66.102.1.108...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
Regards,
Jan
Got a could not open connect to the host, on port 465: connection failed
Depending on your environment, check outbound
firewall rules / iptables / security group ?
Regards,
Jan
All firewall controls are outside of my authority. If the connection settings all look good then I will talk to IT and see if they are able to add an exception.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.