gpc / grails-mail

The Grails Mail Plugin
http://grails.org/plugin/mail
Apache License 2.0
45 stars 85 forks source link

Unrecognized SSL message, plaintext connection? #27

Closed rblazquez closed 2 years ago

rblazquez commented 9 years ago

Hello,

Hope you can help me with a weird behaviour.

Ive been using thie plugin with gmail and find no problems but now im changing to a new mail provider and im having an error:

ERROR job.MailSendJob - Unable to send email org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.xxxxxxxx.com, port: 587; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: smtp.xxxxxxxx.com, port: 587; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?; message exceptions (1) are: Failed message 1: javax.mail.MessagingException: Could not connect to SMTP host: smtp.xxxxxxxx.com, port: 587; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

My configuration is:

grails { mail { host = "smtp.xxxxxxxx.com" port = 587 username = "xxxxxxxx@xxxxxxxx.com" password = "xxxxxxxx" props = ["mail.smtp.starttls.enable":"true", "mail.smtp.socketFactory.port":"587", ] } }

Can you help me to figure out whats happening?

rblazquez commented 9 years ago

I solved it removing the "props" entry.

But still not sure what was the problem.

ppazos commented 9 years ago

Seems you are using a plain text connection.