Handling of incoming emails with disallowed attachments improved (#649455, #649457)
It is now possible to configure the behavior of ConSol CM when an email with a disallowed attachment type is received. The allowed attachments are determined in the system property attachment.allowed.types of the module cmas-core-server, whose default value was modified in Property to define allowed attachment types modified (#648115).
The behavior of the system if an email with an disallowed attachment is received can now be configured using the new property mail.attachments.validation.handling from the module cmas-nimh-extension. The property can have three values:
-
pass_rename: The file extensions of attachments of disallowed types are renamed to disarm the attachment, i.e. the email is imported to the system, but _renamed is appended to all disallowed file extensions. In addition, a description indicating that the attachment has been renamed is added. This is the default value.
-
pass_ignore: The list of allowed attachment types is ignored for attachments in incoming emails, i.e. the email is imported to ConSol CM even if it contains attachments with disallowed file types.
-
reject_email: The email is rejected if it contains attachments of disallowed file types and a notification is sent to the sender. This is the previous behavior.