[Django] #37166: System check for developer/test MAILERS in production

3 views
Skip to first unread message

Django

unread,
Jun 12, 2026, 7:39:25 PM (2 days ago) Jun 12
to django-...@googlegroups.com
#37166: System check for developer/test MAILERS in production
------------------------------+---------------------------------------
Reporter: Mike Edmunds | Type: New feature
Status: new | Component: Core (Mail)
Version: 6.1 | Severity: Normal
Keywords: checks | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Add a deployment-only system check that warns if the `"default"` `MAILERS`
configuration uses the console, dummy, file, or locmem EmailBackend. (Any
of Django's built-in backends that are documented as "not intended for use
in production".)

The check should only consider the `"default"` configuration. (Having,
e.g., a `"test"` or `"archive"` configuration that uses the file backend
should not cause a warning.)

This is recommended early follow-on work from
[https://github.com/django/deps/blob/main/accepted/0018-mailers.md#future-
system-checks DEP 0018]. See also #37161.
--
Ticket URL: <https://code.djangoproject.com/ticket/37166>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 12, 2026, 8:41:54 PM (2 days ago) Jun 12
to django-...@googlegroups.com
#37166: System check for developer/test MAILERS in production
------------------------------+--------------------------------------
Reporter: Mike Edmunds | Owner: (none)
Type: New feature | Status: new
Component: Core (Mail) | Version: 6.1
Severity: Normal | Resolution:
Keywords: checks | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by Mike Edmunds):

Also, note that the Django 6.1 new project template creates a settings.py
with `MAILERS` configured to use the console EmailBackend, as a reasonable
development configuration. (And if that's accidentally left in place in
production, the "no default mailer" check from #37161 wouldn't complain.)
--
Ticket URL: <https://code.djangoproject.com/ticket/37166#comment:1>
Reply all
Reply to author
Forward
0 new messages