SMTPDataError: (550, 'maximum allowed line length is 998 octets, got 1802')

Hi,

first I want to say, thanks for providing this geat software.

Today I got this Internal Sentry exception:

SMTPDataError: (550, 'maximum allowed line length is 998 octets, got 1802')
  File "celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "sentry/tasks/base.py", line 54, in _wrapped
    result = func(*args, **kwargs)
  File "sentry/tasks/reports.py", line 730, in deliver_organization_user_report
    message.send()
  File "sentry/utils/email.py", line 383, in send
    fail_silently=fail_silently,
  File "sentry/utils/email.py", line 415, in send_messages
    sent = connection.send_messages(messages)
  File "django/core/mail/backends/smtp.py", line 94, in send_messages
    sent = self._send(message)
  File "django/core/mail/backends/smtp.py", line 110, in _send
    self.connection.sendmail(from_email, recipients, message.as_bytes())
  File "python2.7/smtplib.py", line 751, in sendmail
    raise SMTPDataError(code, resp)

I’ve googled around and it seems that are two options to fix it:

  1. change RFC defaults at email server side
  2. split message

Is there allreay a way to configure my local Sentry installation to avoid this error?

Regrads
Frank