-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.example.toml
111 lines (83 loc) · 3.49 KB
/
config.example.toml
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
# plugins/wildduck.toml
["modules/zonemta-wildduck"]
enabled = ["receiver", "main", "sender"]
# to which SMTP interfaces this plugin applies to. Use "*" for all interfaces
interfaces = ["feeder"]
# optional hostname to be used in headers
# defaults to os.hostname()
hostname = "example.com"
# How long to keep auth records in log
# NB! removed, use const:authlog:time setting instead
#authlogExpireDays=30
disableUploads = false # if true then messages are not uploaded to Sent Mail folder
uploadAll = false # if false then messages from Outlook are not uploaded to Sent Mail folder
# SRS settings for forwarded emails
# ---------------------------------
["modules/zonemta-wildduck".srs]
# Handle rewriting of forwarded emails. If false then SRS is not used
# Only affect messages that have interface set to "forwarder"
enabled = true
# SRS secret value. Must be the same as in the MX side
secret = "secret value"
# SRS domain, must resolve back to MX
rewriteDomain = "example.com"
# DKIM Settings
# -------------
["modules/zonemta-wildduck".dkim]
# If true then also adds a signature for the outbound domain
signTransportDomain = false
# If set then decrypt encrypted DKIM keys using this password
#secret="a secret cat"
# Cipher to use to decrypt encrypted DKIM keys (legacy keys only)
#cipher="aes192"
# Logging Settings
# -------------
["modules/zonemta-wildduck".gelf]
enabled = false
component = "mta"
["modules/zonemta-wildduck".gelf.options]
graylogPort = 12201
graylogHostname = '127.0.0.1'
connection = 'lan'
# Certificate Settings
# -------------
["modules/zonemta-wildduck".certs]
# Configuration for centralised TLS certification handling
# If set then decrypt encrypted TLS keys using this password
#secret="a secret cat"
# Cipher to use to decrypt encrypted TLS keys (legacy keys only)
#cipher="aes192"
["modules/zonemta-wildduck".certs.tlsOptions]
# options from https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#tls_tls_createsecurecontext_options
minVersion = "TLSv1"
# Autogenerated SNI certificates
# ------------------------------
["modules/zonemta-wildduck".acme]
# ACME configuration for generating TLS certificates with Let's Encrypt
# Only relevant if acme.autogenerate.enabled is `true`, otherwise no certificates are generated using this module
# ACME production settings
# Must match with ACME settings in WildDuck
key = "production"
directoryUrl = "https://acme-v02.api.letsencrypt.org/directory"
email = "domainadmin@example.com"
# If hostname has a CAA record set then match it against this list
# CAA check is done before WildDuck tries to request certificate from ACME
caaDomains = ["letsencrypt.org"]
# Private key settings, if WildDuck has to generate a key by itself
keyBits = 2048
keyExponent = 65537
["modules/zonemta-wildduck".acme.autogenerate]
# If enabled then automatically generates TLS certificates based on SNI servernames
enabled = false
["modules/zonemta-wildduck".acme.autogenerate.cnameMapping]
# Sudomain CNAME mapping
# "abc" = ["def.com"] means that if the SNI servername domain is "abc.{domain}"
# then there must be a CNAME record for this domain that points to "def.com".
# If multiple CNAME targets are defined (eg ["def.com", "bef.com"], then at least 1 must match.
# Additionally, there must be at least 1 email account with "@{domain}" address.
# If there is no match, then TLS certificate is not generated.
#imap = ["imap.example.com"]
#smtp = ["smtp.example.com"]
#pop3 = ["imap.example.com"]
#["modules/zonemta-wildduck".mxRoutes]
# "*.l.google.com" = "gmail"