Exim4 has two logs - main and reject.
Message from python prompt and mutt - shows activity in main, but not reject.
Message from Server 500 error with django app - no activity in main, and a message in reject -
My settings.py files...maybe you will see something missing or mis-configured for email from a django site (I removed some sensitive information).
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Application definition
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'south',
'inventory',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
DEBUG = False
TEMPLATE_DEBUG = False
ROOT_URLCONF = 'inventory_project.urls'
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'America/Phoenix'
USE_I18N = True
USE_L10N = True
USE_TZ = True
The second file base_beagle.py:
# settings/base_beagle.py
from base import *
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
The third file prod_beagle.py
# settings/prod_beagle.py
from base_beagle import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
TEMPLATE_DEBUG = False
ALLOWED_HOSTS = ['192.168.5.126', 'localhost']
EMAIL_HOST = "localhost"
EMAIL_PORT = 25
EMAIL_SUBJECT_PREFIX = "[Django-beagle] "
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'inventory_prod',
'USER': '********',
'PASSWORD': '*******',
}
}
INTERNAL_IPS = ("127.0.0.1","192.168.5.126")
ADMINS = (('mark', 'x...@xxxxxxxxxx.xxx'))
LOGIN_URL = '/mom/inventory/login/'
WSGI_APPLICATION = "inventory_project.wsgi.application"
Thanks,
Mark