Disable sentry SMTP worker

How do I disable the smtp worker when I got my SMTP disabled? I’ve set this

SENTRY_OPTIONS['mail.backend'] = 'dummy'

however I still see logs like: [INFO] sentry.mail: mail.queued (message_to... which tells me that events for mailing are still getting queued. How do I disable the entire SMTP service?

It is disabled. The logging I guess is kinda weird, because it still goes through the code paths to send email, it’s just then dropped on the floor. So you can think of this saying “I’m queueing up an email to the dummy backend”, then the dummy backend is like “nah” and does nothing.

I guess it won’t be possible then to disable the email codepath itself without going through the source?

No. Why are you trying to do that?