The Setting File

The settings file is required to set basic option for your Inboxen instance. It contains some secret information such as the secret_key, you should ensure the permissions are set correctly and also that this file is kept safe as without it sessions, cookie storage and along with other things rely on this will not work 0.

The Inboxen settings file can be located in several places on a system, it will use the first one it finds. Inboxen looks for the files in this order:

  1. The path specified in the environment variable: INBOXEN_CONFIG

  2. ~/.config/inboxen/settings.ini

  3. settings.ini (inside the base directory of the Inboxen project)

If you’re familiar with Django and would like to use your own settings module, you can set DJANGO_SETTINGS_MODULE in the usual way 1.

Minimum Development Configuration

To hit the ground running, the minimum you need to setup a development instance is:

secret_key = something-secret
debug = true




This is used as the global salt for cryptographic signing throughout Inboxen. This is security sensitive and should be generated using a random number generator. It’s strongly suggested you use at least 50 characters of numbers, both case characters and symbols from a high entropy source.

admin_names & admin_email

These are a list of names and emails of the admins. Both lists must be the same length and must be in the same order. If I were to have two admins for example, both lists would have to be two items long:

admin_names = Bill, Ted
admin_emails =,

This is used whenever Inboxen needs to notify administrators. E.g. when there’s an error.


This is a list of domains and/or IPs that Django will serve Inboxen on. There is support for wildcards, the syntax of which can be found in the Django documentation.


Default value: False

Enabling this puts Inboxen into debug mode, this should never be used in a production environment as it exposes the state of some calls in Inboxen including the settings file. This should be used when developing on Inboxen as it allows for tracebacks to be displayed instead of emailed and disables allowed_hosts checking.


Default value: False

A boolean flag which controls if the Inboxen instance permits registration, if disabled the site will not allow new users to be created through the public facing site and disables the links to the registration page.


Default value: 10

This is the time in minutes that the user is prevented from trying to login after a number of failed login attempts. The value should be an integer measured in minutes.


Default value: 5

This is the number of times people can attempt to login before receiving a cool down (the amount of time for the cool down is dictated by login_attempt_cooloff).


Default value: 1440

Window of time in minutes that the register rate-limit will use to calculate if have been too many registrations from one IP address. For example, if register_limit_window is 60 and register_limit_count is 5, then there will be limited to 5 registrations every hour.


Default value: 100

Maximum number of registrations from a single IP address over register_limit_window minutes.


Default value: en-gb

This specifies the language code that is used as a fallback when one can’t be detected by Django’s locale middleware (or if the middleware is disabled). This should be set to a standard language ID format 2.


Default value: static_content

This specifies where the directory is for serving static files. Django will use this directory to place static files when using:

python collectstatic


Default value: media_content

This specifies where the directory is for uploading media via the CMS. It should be writable by the Django app.


Default value: django@localhost

The email the server uses when sending emails.


Default value:’s Inboxen

The name of the site as displayed in page titles.


Default value: UTC

The timezone used for the site, this is used for example when storing dates in the database.


Default value: 0

If not 0, this is the maximum number of emails a user can have before they need to delete some. This deletion can be done automatically if the user prefers.



Default value: 5

The number of characters of the local portion of the email, For example, in the email “” the local portion is “pineapple” and the length would be 9 characters.


Default value: 1440

Window of time in minutes that the inbox rate-limit will use to calculate if a user is creating too many inboxes. For example, if inbox_limit_window is 60 and inbox_limit_count is 5, then a user will be limited to creating 5 inboxes every hour.


Default value: 100

Maximum number of inboxes can be created by a single user over inbox_limit_window minutes.



Default value: amqp://guest:guest@localhost:5672//

The URL that celery will look at to find tasks and to store results.


Default value: 3

The number of celery processes to start



Specifies the path where to store the liberation data. This needs to be kept secure as it will contain user data.


Default value: simple

Which method should be used to accelerate liberation data downloads.



Default value: inboxen

The name of the database.


User used when connecting to PostgreSQL.


The password used when connecting to PostgreSQL.


The host name or IP address to connect to for PostgreSQL.


The port to connect to for PostgreSQL.



Default value: file

This is the caching backend for Inboxen, this could be one of a number of supported backends:




Uses your configured database


Uses the file system


Uses Memcache

N.B: You will need to install “pylibmc” if you want to use the memcached



Default value: 300

The number of seconds before a cache entry is considered stale.