forked from iredmail/iRedAdmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py.pgsql.sample
113 lines (98 loc) · 3.98 KB
/
settings.py.pgsql.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# -*- coding: utf-8 -*-
#
############################################################
# DO NOT MODIFY THIS LINE, IT'S USED TO IMPORT DEFAULT SETTINGS.
from libs.default_settings import *
############################################################
# General settings.
#
# Site webmaster's mail address.
webmaster = '[email protected]'
# Default language.
default_language = 'en_US'
# Database backend: pgsql.
backend = 'pgsql'
# Directory used to store mailboxes. Defaults to /var/vmail/vmail1.
# Note: This directory must be owned by 'vmail:vmail' with permission 0700.
storage_base_directory = '/var/vmail/vmail1'
# Default mta transport.
# There're 3 transports available in iRedMail:
#
# 1. dovecot: default LDA transport. Supported by all iRedMail releases.
# 2. lmtp:unix:private/dovecot-lmtp: LMTP (socket listener). Supported by
# iRedMail-0.8.6 and later releases.
# 3. lmtp:inet:127.0.0.1:24: LMTP (TCP listener). Supported by iRedMail-0.8.6
# and later releases.
#
# Note: You can set per-domain or per-user transport in account profile page.
default_mta_transport = 'dovecot'
# Min/Max admin password length. 0 means unlimited.
# - min_passwd_length: at least 1 character is required.
# Normal admin can not set shorter/longer password lengths than global settings
# defined here.
min_passwd_length = 8
max_passwd_length = 0
#####################################################################
# Database used to store iRedAdmin data. e.g. sessions, log.
#
iredadmin_db_host = '127.0.0.1'
iredadmin_db_port = 5432
iredadmin_db_name = 'iredadmin'
iredadmin_db_user = 'iredadmin'
iredadmin_db_password = 'password'
############################################
# Database used to store mail accounts.
#
vmail_db_host = '127.0.0.1'
vmail_db_port = 5432
vmail_db_name = 'vmail'
vmail_db_user = 'vmailadmin'
vmail_db_password = 'password'
##############################################################################
# Settings used for Amavisd-new integration. Provides spam/virus quaranting,
# releasing, etc.
#
# Log basic info of in/out emails into SQL (@storage_sql_dsn): True, False.
# It's @storage_sql_dsn setting in amavisd. You can find this setting
# in amavisd-new config files:
# - On RHEL/CentOS: /etc/amavisd.conf or /etc/amavisd/amavisd.conf
# - On Debian/Ubuntu: /etc/amavis/conf.d/50-user.conf
# - On FreeBSD: /usr/local/etc/amavisd.conf
amavisd_enable_logging = True
amavisd_db_host = '127.0.0.1'
amavisd_db_port = 5432
amavisd_db_name = 'amavisd'
amavisd_db_user = 'amavisd'
amavisd_db_password = 'password'
# #### Quarantining ####
# Release quarantined SPAM/Virus mails: True, False.
# iRedAdmin-Pro will connect to @amavisd_db_host to release quarantined mails.
# How to enable quarantining in Amavisd-new:
# http://www.iredmail.org/docs/quarantining.html
amavisd_enable_quarantine = True
# Port of Amavisd protocol 'AM.PDP-INET'. Default is 9998.
# If Amavisd is not running on database server specified in amavisd_db_host,
# please set the server address in parameter `AMAVISD_QUARANTINE_HOST`.
# Default is '127.0.0.1'. Sample setting:
#AMAVISD_QUARANTINE_HOST = '192.168.1.1'
amavisd_quarantine_port = 9998
# Enable per-recipient spam policy, white/blacklist.
amavisd_enable_policy_lookup = True
##############################################################################
# Settings used for iRedAPD integration. Provides throttling and more.
#
iredapd_enabled = True
iredapd_db_host = '127.0.0.1'
iredapd_db_port = 5432
iredapd_db_name = 'iredapd'
iredapd_db_user = 'iredapd'
iredapd_db_password = 'password'
##############################################################################
# Settings used for mlmmj (mailing list manager) and mlmmjadmin integration.
#
# The API auth token required to access mlmmjadmin API.
mlmmjadmin_api_auth_token = ''
############################################################
# Place your custom settings below, you can override all settings in this file
# and libs/default_settings.py here.
#