Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple Mail Queuing Backend for Django.

Project Description


You must have setuptools installed.

From PyPI:

pip install django_mailqueue_backend

Or download a package from the PyPI or the BitBucket page:

pip install <package>

Or unpack the package and:

python install.


Django >=1.4,<1.5,>=1.6 and its dependencies.

queue-front >= 0.7.2 located at: or Note that queue-front also has dependencies. See this page for more details.


In your Django file insert the following in an appropriate place:




EMAIL_BACKEND = "mailqueue_backend.mail.smtp.QueuedEmailBackend"

That is it. You should run the following command by any regular means that you prefer (cron, celery, etc):

./ process_mail_queue

Mail Storage

Mail is stored in a queue. The backend for the queue is specified by you in the queue-front app.


This module has been tested with the following: (Note that python 3.0 compatibility is dependent on the backend queue you choose to use with the queue-front dependency.)

  • python 2.7 django 1.4
  • python 2.7 django 1.6
  • python 2.7 django 1.7
  • python 3.2 django 1.6
  • python 3.2 django 1.7
  • python 3.3 django 1.6
  • python 3.3 django 1.7
  • python 3.4 django 1.6
  • python 3.4 django 1.7


Packages Security

This module, when packaged, is signed with the following key:

Mario Rosa’s Key with id 0x8EBBFA6F (full fingerprint F261 96E4 8EF2 ED4A 26F8 58E9 04AA 48D1 8EBB FA6F) and his email is

You can find this key on servers like

Additional Settings


Default: “MAIL_QUEUE”

Set the name of the queue.


Default: “smtp.mail_queue.mail_queue_fail.log”

A log to this file will be made when a message is discarded.


Default: 5242880 (Integer) aka 5MB

Maximum size of a log file.


Default: 5 (Integer)

Number (n) of files in log rotation. A new backup is created once MAXBYTES is reached in the current log file up to n many log files. The oldest log file is deleted on rotation (i.e. n+1).


Default: 86400 (Integer) aka 1 day

The amount of time in seconds until a failed email is discarded from the queue.

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(7.0 kB) Copy SHA256 Hash SHA256
Source Jan 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting