cancel
Showing results for 
Search instead for 
Did you mean: 

Outbound email configuration

nancygaillard
Champ on-the-rise
Champ on-the-rise
Hi,

Can somebody help me to choose the good way to configure my outbound email on Alfresco?

* Alfresco 4.2.e installed on Windows 7 *

I succeed to connect with Outlook with this :
(I change my password and email address)
<blockquote>
Email address : xnancyxgaillardx@laposte.net
imap/incoming mail server : imap.laposte.net
smtp/outcoming mail server : smtp.laposte.net
username : xnancyxgaillardx
password : /* SECURE VALUE */

IMAP :
port 143
type of encrypted connection false
this server use encrypted connection (SSL) : No

SMTP :
pot 25
type of encrypted connection  :TSL

Outgoing server :
(SMTP) requires authentication : Use same setting as my incoming mail server
</blockquote>

There is that I write in alfresco-global.properties
<blockcode>
### Outbound Email Configuration ###
mail.host=smtp.laposte.net
mail.port=25
mail.username=xnancyxgaillardx@laposte.net
mail.password=aNuSecurePassword
mail.protocol=smtp
mail.smtps.starttls.enable=true
mail.encoding=UTF-8
mail.from.default=alfresco@alfresco.org
mail.smtp.auth=true
mail.smtps.auth=false

mail.testmessage.send=true
mail.testmessage.to=xnancyxgaillardx@yopmail.com

activities.feed.notifier.enabled=true
</blockcode>

7 REPLIES 7

mrogers
Star Contributor
Star Contributor
Do you get any sort or error message from smtp.laposte.net?

nancygaillard
Champ on-the-rise
Champ on-the-rise
I haven't see that my second comment doesn't appear… wait a minute…

nancygaillard
Champ on-the-rise
Champ on-the-rise
if I try with :
<blockcode>

mail.protocol=smtps
mail.smtps.starttls.enable=true

mail.smtp.auth=false
mail.smtps.auth=true
</blockcode>

I receive this error :
<blockquote>
10:28:51,494 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to xnancyxgaillardx@yopmail.com
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;
  nested exception is:
   javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: Exception reading response;
  nested exception is:
   javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
   at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)

Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
</blockquote>

nancygaillard
Champ on-the-rise
Champ on-the-rise
I have tried several configuration, there is the results (with logs).

If I test with
<blockcode>

mail.protocol=smtp
mail.smtps.starttls.enable=true

mail.smtp.auth=true
mail.smtps.auth=false
</blockcode>

I receive this error :
<blockquote>
10:36:23,159 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to xnancyxgaillardx@yopmail.com
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 5.5.0 Emetteur invalide. Invalid Sender. LPN105_415
; message exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 550 5.5.0 Emetteur invalide. Invalid Sender. LPN105_415

</blockquote>

nancygaillard
Champ on-the-rise
Champ on-the-rise
if I try with :
<blockcode>

mail.protocol=smtps
mail.smtps.starttls.enable=false

mail.smtp.auth=false
mail.smtps.auth=true
</blockcode>

I find
<blockquote>
10:53:21,458 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to xnancyxgaillardx@yopmail.com
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;
  nested exception is:
   javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: Exception reading response;
  nested exception is:
   javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
   at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)

Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
   at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:671)
</blockquote>

mrogers
Star Contributor
Star Contributor
For the "invalid sender" error you probably want to set
mail.from.enabled=false and mail.from.default to the same value as mail.username

nancygaillard
Champ on-the-rise
Champ on-the-rise
You helped me to resolve this problem Smiley Happy