sentry icon indicating copy to clipboard operation
sentry copied to clipboard

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

Open pquerner opened this issue 8 years ago • 28 comments

Today I got this report via mail. I dont know what I did wrong. The system is currently running only for me and I dont have any deployed productive systems running on it. (Just one small test project, which isnt running in production mode, meaning its only running when I test stuff with it)

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 736, in deliver_organization_user_report
    message.send()
  File "sentry/utils/email.py", line 384, in send
    fail_silently=fail_silently,
  File "sentry/utils/email.py", line 416, 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 752, in sendmail
    raise SMTPDataError(code, resp)

Additional information:


args | [1520208000, 604800, 1, 1]
-- | --
kwargs | {'dry_run': False}
sys.argv | ['/usr/local/bin/sentry', 'run', 'worker']
task | <@task: sentry.tasks.reports.deliver_organization_user_report of sentry:0x7f26dff8e890>
task_id | '6f6a0bf3-d4e4-4294-bb8a-cf007f4d4d36'


python | 2.7.14
-- | --
sentry | 8.22.0

TAGS
environment
production
level
error
server_name
90081ef478ac
site
example.com
transaction
sentry.tasks.reports.deliver_organization_user_report

I dont know why "example.com" comes up. I dont have any project where that URI comes up.

Sentry 8.22.0 runs in a docker environment.

pquerner avatar Mar 05 '18 14:03 pquerner

+1, just got the same issue on my weekly report email.

MikeDombo avatar Apr 09 '18 17:04 MikeDombo

+1, I have the same issue (weekly report email)

jozefliska avatar Apr 10 '18 08:04 jozefliska

+1, same issue

dbackowski avatar Apr 16 '18 12:04 dbackowski

+1 using Office365 SMTP servers so have no control over the server-side!

jonty-comp avatar Apr 16 '18 13:04 jonty-comp

Right. My E-Mail Provider is Google. (G Suite to be precise)

pquerner avatar Apr 16 '18 13:04 pquerner

+1, same issue with G-Suite

marcelloceschia avatar May 14 '18 20:05 marcelloceschia

Issue also occurs for me without G-suite.

martijnrondeel avatar May 15 '18 07:05 martijnrondeel

+1

feizeikesi avatar May 16 '18 09:05 feizeikesi

Same here, Sentry 9.0.0 on-premise.

Sija avatar Sep 12 '18 10:09 Sija

+1 Sentry 9.1.1

dreis2211 avatar Jun 07 '19 09:06 dreis2211

Same error, Sentry 9.1.1 with Exim. I can't change the SMTP config.

Can you please make the mailer RFC compliant? Thanks :)

bohwaz avatar Jul 01 '19 12:07 bohwaz

Closing this issue due to staleness. Feel free to comment here if you think we should still work on this.

BYK avatar Oct 22 '20 19:10 BYK

@BYK Obviously all of the people chiming in this issue wants this fixed...

Sija avatar Oct 22 '20 19:10 Sija

Yes fixing issue is still relevant lol

bohwaz avatar Oct 22 '20 19:10 bohwaz

I love the idea that closing an issue will just make it go away ^^ If only…

bohwaz avatar Oct 22 '20 19:10 bohwaz

I love the idea that closing an issue will just make it go away ^^ If only…

Okay you got me 😀

Researched this a bit and seems not too tricky to get fixed. Let's see if we can get to this before another year passes.

BYK avatar Oct 22 '20 22:10 BYK

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Jan 08 '21 02:01 github-actions[bot]

Stop that insane logic, we don't have to update a bug report every 3 weeks to let you know that you still have to fix bugs. Please disable that useless bot.

bohwaz avatar Jan 08 '21 02:01 bohwaz

Routing to @getsentry/enterprise for triage. ⏲️

getsentry-release avatar Oct 21 '21 18:10 getsentry-release

Sent this towards @getsentry/enterprise as I think emails fall under there? Feel free to redirect.

BYK avatar Oct 21 '21 18:10 BYK