-
Notifications
You must be signed in to change notification settings - Fork 1k
/
yaml.yml
219 lines (203 loc) 路 7.57 KB
/
yaml.yml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
version: 2
postal:
# The hostname that the Postal web interface runs on
web_hostname: postal.example.com
# The HTTP protocol to use for the Postal web interface
web_protocol: https
# The hostname that the Postal SMTP server runs on
smtp_hostname: postal.example.com
# Should IP pools be enabled for this installation?
use_ip_pools: false
# The maximum number of delivery attempts
default_maximum_delivery_attempts: 18
# The number of days to hold a message before they will be expired
default_maximum_hold_expiry_days: 7
# The number of days an address will remain in a suppression list before being removed
default_suppression_list_automatic_removal_days: 30
# The default threshold at which a message should be treated as spam
default_spam_threshold: 5
# The default threshold at which a message should be treated as spam failure
default_spam_failure_threshold: 20
# Domain verification and checking usually checks with a domain's nameserver. Enable this to check with the server's local nameservers.
use_local_ns_for_domain_verification: false
# Append a Resend-Sender header to all outgoing e-mails
use_resent_sender_header: true
# Path to the private key used for signing
signing_key_path: config/postal/signing.key
# An array of SMTP relays in the format of smtp://host:port
smtp_relays: []
web_server:
# The default port the web server should listen on unless overriden by the PORT environment variable
default_port: 5000
# The default bind address the web server should listen on unless overriden by the BIND_ADDRESS environment variable
default_bind_address: 127.0.0.1
# The maximum number of threads which can be used by the web server
max_threads: 5
worker:
# The default port for the worker health server to listen on
default_health_server_port: 9090
# The default bind address for the worker health server to listen on
default_health_server_bind_address: 127.0.0.1
main_db:
# Hostname for the main MariaDB server
host: localhost
# The MariaDB port to connect to
port: 3306
# The MariaDB username
username: postal
# The MariaDB password
password:
# The MariaDB database name
database: postal
# The maximum size of the MariaDB connection pool
pool_size: 5
# The encoding to use when connecting to the MariaDB database
encoding: utf8mb4
message_db:
# Hostname for the MariaDB server which stores the mail server databases
host: localhost
# The MariaDB port to connect to
port: 3306
# The MariaDB username
username: postal
# The MariaDB password
password:
# The encoding to use when connecting to the MariaDB database
encoding: utf8mb4
# The MariaDB prefix to add to database names
database_name_prefix: postal
logging:
# Enable the default Rails logger
rails_log_enabled: false
# A DSN which should be used to report exceptions to Sentry
sentry_dsn:
# Enable the Postal logger to log to STDOUT
enabled: true
# Enable highlighting of log lines
highlighting_enabled: false
gelf:
# GELF-capable host to send logs to
host:
# GELF port to send logs to
port: 12201
# The facility name to add to all log entries sent to GELF
facility: postal
smtp_server:
# The default port the SMTP server should listen on unless overriden by the PORT environment variable
default_port: 25
# The default bind address the SMTP server should listen on unless overriden by the BIND_ADDRESS environment variable
default_bind_address: 127.0.0.1
# The default port for the SMTP server health server to listen on
default_health_server_port: 9091
# The default bind address for the SMTP server health server to listen on
default_health_server_bind_address: 127.0.0.1
# Enable TLS for the SMTP server (requires certificate)
tls_enabled: false
# The path to the SMTP server's TLS certificate
tls_certificate_path: config/postal/smtp.cert
# The path to the SMTP server's TLS private key
tls_private_key_path: config/postal/smtp.key
# Override ciphers to use for SSL
tls_ciphers:
# The SSL versions which are supported
ssl_version: SSLv23
# Enable proxy protocol for use behind some load balancers
proxy_protocol: false
# Enable connection logging
log_connections: false
# The maximum message size to accept from the SMTP server (in MB)
max_message_size: 14
# A regular expression to use to exclude connections from logging
log_ip_address_exclusion_matcher:
dns:
# The names of the default MX records
mx_records:
- mx1.postal.example.com
- mx2.postal.example.com
# The location of the SPF record
spf_include: spf.postal.example.com
# The return path hostname
return_path_domain: rp.postal.example.com
# The domain to use for hosting route-specific addresses
route_domain: routes.postal.example.com
# The CNAME which tracking domains should be pointed to
track_domain: track.postal.example.com
# The hostname to use in HELO/EHLO when connecting to external SMTP servers
helo_hostname:
# The identifier to use for DKIM keys in DNS records
dkim_identifier: postal
# The prefix to add before TXT record verification string
domain_verify_prefix: postal-verification
# The domain to use on external domains which points to the Postal return path domain
custom_return_path_prefix: psrp
# The timeout to wait for DNS resolution
timeout: 5
# The path to the resolv.conf file containing addresses for local nameservers
resolv_conf_path: /etc/resolv.conf
smtp:
# The hostname to send application-level e-mails to
host: 127.0.0.1
# The port number to send application-level e-mails to
port: 25
# The username to use when authentication to the SMTP server
username:
# The password to use when authentication to the SMTP server
password:
# The type of authentication to use
authentication_type: login
# Use STARTTLS when connecting to the SMTP server and fail if unsupported
enable_starttls: false
# Detects if STARTTLS is enabled in the SMTP server and starts to use it
enable_starttls_auto: true
# When using TLS, you can set how OpenSSL checks the certificate. Use 'none' for no certificate checking
openssl_verify_mode: peer
# Use an SSL/TLS connection to the SMTP server (SMTPS)
ssl: false
# The name to use as the from name outgoing emails from Postal
from_name: Postal
# The e-mail to use as the from address outgoing emails from Postal
from_address: postal@example.com
rails:
# The Rails environment to run the application in
environment: production
# The secret key used to sign and encrypt cookies and session data in the application
secret_key:
rspamd:
# Enable rspamd for message inspection
enabled: false
# The hostname of the rspamd server
host: 127.0.0.1
# The port of the rspamd server
port: 11334
# Enable SSL for the rspamd connection
ssl: false
# The password for the rspamd server
password:
# Any flags for the rspamd server
flags:
spamd:
# Enable SpamAssassin for message inspection
enabled: false
# The hostname for the SpamAssassin server
host: 127.0.0.1
# The port of the SpamAssassin server
port: 783
clamav:
# Enable ClamAV for message inspection
enabled: false
# The host of the ClamAV server
host: 127.0.0.1
# The port of the ClamAV server
port: 2000
smtp_client:
# The open timeout for outgoing SMTP connections
open_timeout: 30
# The read timeout for outgoing SMTP connections
read_timeout: 30
migration_waiter:
# Wait for all migrations to run before starting a process
enabled: false
# The number of attempts to try waiting for migrations to complete before start
attempts: 120
# The number of seconds to wait between each migration check
sleep_time: 2