cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco mail.smtp.timeout meaning

Stefano_De_Giac
Champ in-the-making
Champ in-the-making

Hi,

 

we have an Alfresco 4 product.

The Outbound mail system settings were made using the Web Console (/alfresco/service/enterprise/admin/admin-outboundemail).

 

We have a SMTP Timeout set to 5000. And it worked well. Now, we are switching to another mail provider and with 5000 we receive this message if we send a test mail:

org.springframework.mail.MailSendException, Mail server connection failed; nested exception is javax.mail.MessagingException: Unexpected exception borrwoing connection from pool;
nested exception is:
java.util.NoSuchElementException: Could not create a validated object, cause: ValidateObject failed. Failed messages: javax.mail.MessagingException: Unexpected exception borrwoing connection from pool;
nested exception is:
java.util.NoSuchElementException: Could not create a validated object, cause: ValidateObject failed, javax.mail.MessagingException, Unexpected exception borrwoing connection from pool, java.util.NoSuchElementException, Could not create a validated object, cause: ValidateObject failed

 

We solved increasing the timeout to 10000.

 

But because we use the mail to send the invites to the private sites, if we are sending 20 invites, does the timeout impact on performance?

I can't find any documentation that explain me what is that timeout:

 

- timeout to make the connection?

- timeout to send the mail before the connection end?

 

What happens if the mail server is down? Is the customer forced to wait 20*timeout value before recevining any message?

 

Thank in advance

 

Regards

Stefano

 

1 REPLY 1

Eddie_May1
Champ on-the-rise
Champ on-the-rise

Hi @Stefano De Giacometti 

According to the Alfresco docs (for 5.2 but I don't believe there was any significant change in this area from 4.x) 

mail.smtp.timeout =Specifies the timeout in milliseconds for SMTP.

I think this is the time Alfresco should wait for a response from the mail server before abandoning the attempt to send mail & report back an error.

I would suggest reaching out to you new mail provider to understand the reason why the timeout has to be doubled.

 

Hope that helps