Status: Need Info
Affects Version/s: 5.1.1
Fix Version/s: None
Component/s: Email Notifications
It should be possible to configure how many emails ACS can send on a single connection to a mail server, allowing the connection to be renewed periodically for security reasons.
It's currently not possible to configure how many emails ACS will send per connection opened to the mail server and opened connections are potentially kept open and reused indefinitely.
This can cause issues with mail servers or spam gateways that impose a limit on how many emails can be sent per session and throw an error when this number is exceeded.
Currently the only way to get around this is to configure exceptions on the mail server, e.g. by whitelisting the Alfresco server and excluding it from spam checks, but this may not be acceptable for security reasons (for example to avoid a server that is whitelisted being hacked and used to send spam emails).
Attached file "logExcerpt.txt"
- Part of a log file starting with a new Transport being created by AlfrescoJavaMailSender and ending with the Transport being destroyed after a 421 error (too many messages in one session) is received from the mail server
- External mail server allows 100 emails per session
- Between the log messages "Creating new Transport" at 21:31:59 and "Destroying Transpaort" at 21:38:56 there are exactly 100 debug messages from MailActionExecuter sending out emails.
The 100th message it tries to send fails and we see the 421 error straight after, so the Transport created by AlfrescoJavaMailSender seems to correspond exactly to a session in the mail server