django-orchestra/orchestra/apps/mails/settings.py

37 lines
1.0 KiB
Python
Raw Normal View History

2014-08-22 15:31:44 +00:00
from django.conf import settings
2014-10-06 14:57:02 +00:00
MAILS_DOMAIN_MODEL = getattr(settings, 'MAILS_DOMAIN_MODEL', 'domains.Domain')
2014-08-22 15:31:44 +00:00
2014-10-06 14:57:02 +00:00
MAILS_HOME = getattr(settings, 'MAILS_HOME', '/home/%(name)s/')
2014-08-22 15:31:44 +00:00
2014-10-06 14:57:02 +00:00
MAILS_SIEVETEST_PATH = getattr(settings, 'MAILS_SIEVETEST_PATH', '/dev/shm')
MAILS_SIEVETEST_BIN_PATH = getattr(settings, 'MAILS_SIEVETEST_BIN_PATH',
2014-08-22 15:31:44 +00:00
'%(orchestra_root)s/bin/sieve-test')
2014-10-06 14:57:02 +00:00
MAILS_VIRTUSERTABLE_PATH = getattr(settings, 'MAILS_VIRTUSERTABLE_PATH',
2014-08-22 15:31:44 +00:00
'/etc/postfix/virtusertable')
2014-10-06 14:57:02 +00:00
MAILS_VIRTDOMAINS_PATH = getattr(settings, 'MAILS_VIRTDOMAINS_PATH',
2014-08-22 15:31:44 +00:00
'/etc/postfix/virtdomains')
2014-10-06 14:57:02 +00:00
MAILS_PASSWD_PATH = getattr(settings, 'MAILS_PASSWD_PATH',
'/etc/dovecot/virtual_users')
MAILS_DEFAUL_FILTERING = getattr(settings, 'MAILS_DEFAULT_FILTERING',
2014-08-22 15:31:44 +00:00
'require ["fileinto","regex","envelope","vacation","reject","relational","comparator-i;ascii-numeric"];\n'
'\n'
'if header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score" "5" {\n'
' fileinto "Junk";\n'
' discard;\n'
'}'
)