cancel
Showing results for 
Search instead for 
Did you mean: 

Outbound Email Configuration Error

tchenm1
Champ in-the-making
Champ in-the-making
I am trying to setup outbound emails and am having errors. Already searched the forum and can not see what it is I'm doing wrong. Any assistance would be appreciated.

This is my configuration to alfresco-global.properties:

mail.host=smtp.co.clark.nv.us
mail.port=25
mail.username=Tchenm@clarkcountynv.gov
mail.password=******* (password masked)
mail.encoding=UTF-8
mail.from.default=Tchenm@clarkcountynv.gov
mail.protocol=smtps
mail.smtps.starttls.enable=false
mail.smtp.auth=true

I am getting the following error message in Alfresco.log:

ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to Michael.Tchen@clarkcountynv.gov
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response;
  nested exception is:
   javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?. Failed messages: javax.mail.MessagingException: Exception reading response;
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
Is it smtp or smtps as in your mail.protocol you have mentioned smtps and also do you use full email id as username?
the error you are getting is because of this problem in configuration parameter only.

tchenm1
Champ in-the-making
Champ in-the-making
The below works and have gotten email confirmations.

#
# Outbound Email Configuration
#————-
mail.host=smtp.co.clark.nv.us
mail.port=25
mail.encoding=UTF-8
mail.from.default=Michael.Tchen@ClarkCountyNV.gov
mail.smtps.starttls.enable=false
mail.smtp.auth=false
mail.protocol=smtp

My problem was related to our SMTP server accepts anonymous connections so no user name or password was needed and the protocol is "smtp" not "smtps".

Thanks.