#37166: System check for developer/test MAILERS in production
------------------------------+--------------------------------------
     Reporter:  Mike Edmunds  |                    Owner:  Vishy
         Type:  New feature   |                   Status:  assigned
    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
------------------------------+--------------------------------------

Old description:

> 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.

New description:

 Add a deployment-only system check that errors 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 an error)

 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.

--
Comment (by Mike Edmunds):

 This should probably be an error system check, not warning. Updated the
 description.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/37166#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019ecc737c48-338c6d7c-cb60-4c75-ad2d-818aa2bbeb5c-000000%40eu-central-1.amazonses.com.

Reply via email to