Check all logging for excessively large log entries
Logging should not be able to crash the service in case a huge email is processed.
Check every log entry produced in the service and make sure it doesn't log the payload (email/attachments), either by cutting them or removing them from the log altogether.
Edited by Lyuben Penkovski