AnsweredAssumed Answered

Outbound Email intermittent fail

Question asked by krongtong on Jul 11, 2012
Latest reply on Oct 1, 2013 by mathias.lin
I had configure outbound email in alfresco-global.properties

#
# Outbound Email Configuration
#————-

mail.host=mydomain.com
mail.port=25
mail.username=krongtong@mydomain.com
mail.password=xxxx
mail.smtp.auth=true
mail.protocol=smtp



mail.testmessage.send=true
mail.testmessage.to=krongtong@mydomain.com
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Outbound SMTP email subsystem is working.

I got the test outbound email and also got some email such as recent activities update,task assign but some not. Now I create three users and  only two can receive invitation email.

The log showed main two type of errors

(1)
15:06:24,562 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to [Kok]
org.springframework.mail.MailSendException: Failed to close server connection after message failures; nested exception is javax.mail.MessagingException: Exception reading response;
  nested exception is:
   java.net.SocketTimeoutException: Read timed out. Failed messages: javax.mail.MessagingException: Exception reading response;
  nested exception is:
   java.net.SocketTimeoutException: Read timed out; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: Exception reading response;

(2)
15:46:54,203 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to thaweesak@mydomain.com
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: mydomain.com, port: 25;
  nested exception is:
   java.net.ConnectException: Connection timed out: connect. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: mydomain.com, port: 25;
  nested exception is:
   java.net.ConnectException: Connection timed out: connect; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: Could not connect to SMTP host: mydomain.com, port: 25;
  nested exception is:

Kok is username and thaweesak@mydomain.com is his email, why sometime log print username and sometime email.

Any suggestion?

Outcomes