-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.starttls.example.json
More file actions
57 lines (50 loc) · 1.42 KB
/
config.starttls.example.json
File metadata and controls
57 lines (50 loc) · 1.42 KB
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
{
"_comment": "Example: STARTTLS Mode (Opportunistic TLS)",
"_comment_description": "Connection starts as plaintext, then upgrades to TLS when client issues STARTTLS command",
"server": {
"port": 587,
"_comment_port": "Port 587 is the standard submission port with STARTTLS",
"hostname": "smtp.example.com",
"security_mode": "starttls",
"_comment_security_mode": "Server offers STARTTLS command to upgrade plaintext connection to encrypted",
"tls_cert_path": "/etc/smtp-forwarder/certs/server.crt",
"tls_key_path": "/etc/smtp-forwarder/certs/server.key",
"max_email_size": 10485760,
"max_concurrent_connections": 50,
"read_timeout": 60,
"write_timeout": 60
},
"auth": {
"enabled": true,
"_comment": "Authentication strongly recommended with STARTTLS",
"credentials": [
{
"username": "mail_user",
"password": "mail_password_123"
}
]
},
"routes": [
{
"pattern": "admin@example.com",
"webhook": {
"url": "https://api.example.com/webhooks/admin",
"secret": "whsec_admin_secret",
"timeout": 30
}
},
{
"pattern": "*@example.com",
"webhook": {
"url": "https://api.example.com/webhooks/all",
"timeout": 30
}
}
],
"defaults": {
"webhook": {
"url": "https://api.example.com/webhooks/default",
"timeout": 30
}
}
}