forked from kriiv/inbound-email
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
54 lines (48 loc) · 1.73 KB
/
.env.example
File metadata and controls
54 lines (48 loc) · 1.73 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
# Core Configuration
WEBHOOK_URL=https://your-webhook-url.com
# WEBHOOK_RULES={"rules":[{"name":"support","conditions":{"to":"support@*"},"webhook":"https://support.webhook.com","priority":1}]}
PORT=25
SMTP_SECURE=false
WEBHOOK_CONCURRENCY=5
WEBHOOK_TIMEOUT=5000
WEBHOOK_RETRY_DELAY_MS=60000
SMTP_MAX_CLIENTS=200
SMTP_SOCKET_TIMEOUT=60000
SMTP_CLOSE_TIMEOUT=30000
SMTP_MAX_MESSAGE_SIZE=10485760
SMTP_RATE_LIMIT_WINDOW_MS=60000
SMTP_RATE_LIMIT_MAX_CONNECTIONS=120
MAX_QUEUE_SIZE=1000
REQUIRE_TRUSTED_RELAY=false
# TRUSTED_RELAY_IPS=127.0.0.1,10.0.0.5
# ALLOWED_SMTP_CLIENTS=127.0.0.1
# ALLOWED_SENDER_DOMAINS=example.com,partner.com
# REQUIRED_AUTH_RESULTS=spf=pass,dkim=pass,dmarc=pass
# Recipient Domain Filtering (comma-separated list of domains to accept emails for)
# Leave empty or unset to accept emails for all domains
# Example: ALLOWED_RECIPIENT_DOMAINS=inbox.example.com,mail.example.com
# ALLOWED_RECIPIENT_DOMAINS=
# Attachment Storage (S3 is optional - if not configured, local storage is used)
MAX_FILE_SIZE=5242880
# AWS_REGION=your-aws-region
# AWS_ACCESS_KEY_ID=your-aws-access-key
# AWS_SECRET_ACCESS_KEY=your-aws-secret-key
# S3_BUCKET_NAME=your-s3-bucket-name
# S3_ENDPOINT=http://localhost:9000
# S3_FORCE_PATH_STYLE=true
# Local Storage & Error Recovery
LOCAL_STORAGE_PATH=./temp-attachments
LOCAL_STORAGE_RETENTION=24
# LOCAL_STORAGE_ENCRYPTION_KEY=<32-byte key in hex or base64>
EXPOSE_LOCAL_ATTACHMENT_PATHS=false
S3_RETRY_INTERVAL=5
S3_MAX_RETRIES=100
DURABLE_QUEUE_PATH=./queue-data
# Logging
LOG_LEVEL=info
# Webhook security
# WEBHOOK_SECRET=replace-with-random-secret
ALLOW_INSECURE_WEBHOOK_HTTP=false
# Security (TLS) - Required if SMTP_SECURE=true
# TLS_KEY_PATH=/path/to/private-key.pem
# TLS_CERT_PATH=/path/to/certificate.pem