Django IMAP backend

PythonFirst Timer FriendlyToolsWeb Framework

IMAP backend for Django mail package

Open issues

Last 30 days

PRs opened


IMAP back-end for `django.core.mail` package, aimed for uploading messages to specif mailboxes, instead of sending it over SMTP (or other Django email backend). Useful for debugging without fancy services like []( Library is capable of uploading messages to multiple accounts at once (one email to multiple mailboxes or accounts).

If you like nice diagrams, check this repository map.

In last few months I worked on project where we have to send a lot of emails to different mailboxes. We used fake (and after migration real) e-mail addresses in our staging environment. It was hard to debug these messages without services like mailtrap (for which we just didn't want to pay, even it's a pretty cool product, client's budget is client's budged).

We came up with the idea of uploading ready-to-send emails to IMAP user instead of sending it.

Currently seeking



If you like nice diagrams you can also check repository code map.

Feel free to open pull requests but please keep in mind this checklist:

  • write changes to to
  • update (if needed)
  • update documentation (if needed)

We use poetry for dependency management. Please write your source code according to the PEP8 code-style. flake8 is used for code-style and code-quality checks. Please, be sure that your IDE is following settings according to .editorconfig file.


Resources to learn more about our technology and community.

Built with tea and love by