2023-07-09 07:51:51 +00:00
|
|
|
from orchestra.contrib.settings import Setting
|
|
|
|
from orchestra.settings import ORCHESTRA_BASE_DOMAIN
|
|
|
|
|
|
|
|
|
|
|
|
LISTS_DOMAIN_MODEL = Setting('LISTS_DOMAIN_MODEL',
|
|
|
|
'domains.Domain',
|
|
|
|
validators=[Setting.validate_model_label]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
LISTS_DEFAULT_DOMAIN = Setting('LISTS_DEFAULT_DOMAIN',
|
2023-09-01 15:47:43 +00:00
|
|
|
'grups.{}'.format(ORCHESTRA_BASE_DOMAIN),
|
2023-07-09 07:51:51 +00:00
|
|
|
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default."
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
LISTS_LIST_URL = Setting('LISTS_LIST_URL',
|
2023-09-01 15:47:43 +00:00
|
|
|
# 'https://lists.{}/mailman/listinfo/%(name)s'.format(ORCHESTRA_BASE_DOMAIN),
|
|
|
|
'https://www.{0}/mailman3/lists/%(name)s.{0}'.format(LISTS_DEFAULT_DOMAIN),
|
2023-07-09 07:51:51 +00:00
|
|
|
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default."
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
LISTS_MAILMAN_POST_LOG_PATH = Setting('LISTS_MAILMAN_POST_LOG_PATH',
|
|
|
|
'/var/log/mailman3/smtp'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
LISTS_MAILMAN_ROOT_DIR = Setting('LISTS_MAILMAN_ROOT_DIR',
|
|
|
|
'/var/lib/mailman3'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
LISTS_VIRTUAL_ALIAS_PATH = Setting('LISTS_VIRTUAL_ALIAS_PATH',
|
|
|
|
'/etc/postfix/mailman3_virtusertable'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
LISTS_VIRTUAL_ALIAS_DOMAINS_PATH = Setting('LISTS_VIRTUAL_ALIAS_DOMAINS_PATH',
|
|
|
|
'/etc/postfix/mailman3_virtdomains'
|
|
|
|
)
|