-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
74 lines (68 loc) · 1.74 KB
/
.env.example
File metadata and controls
74 lines (68 loc) · 1.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Local fallback mailbox. Used only when MAIL_ACCOUNTS_JSON is empty.
MAIL_HOST=imap.gmail.com
MAIL_PORT=993
MAIL_SECURE=true
MAIL_USER=your-email@example.com
MAIL_PASSWORD=your-app-password
MAILBOX=INBOX
# Mail scan window and network timeouts.
MAIL_LOOKBACK_MINUTES=30
MAIL_FETCH_LIMIT=30
MAIL_CONNECT_TIMEOUT_MS=20000
MAIL_SOCKET_TIMEOUT_MS=20000
# Web access password. Recommended for public deployments.
REQUIRE_ACCESS_PASSWORD=true
APP_ACCESS_PASSWORD=change-this-password
# Recommended multi-account mode.
# For Vercel, paste this as one-line JSON.
MAIL_ACCOUNTS_JSON=[
{
"id": "qq-main",
"label": "QQ 邮箱",
"kind": "qq",
"host": "imap.qq.com",
"port": 993,
"secure": true,
"user": "your-qq@qq.com",
"password": "your-qq-auth-code",
"mailbox": "INBOX"
},
{
"id": "gmail-main",
"label": "Gmail 主号",
"kind": "gmail",
"host": "imap.gmail.com",
"port": 993,
"secure": true,
"user": "your-email@gmail.com",
"password": "your-gmail-app-password",
"mailbox": "INBOX"
},
{
"id": "outlook-main",
"label": "Outlook 邮箱",
"kind": "outlook",
"host": "outlook.office365.com",
"port": 993,
"secure": true,
"user": "your@outlook.com",
"password": "oauth-placeholder",
"mailbox": "INBOX"
}
]
# Optional phone-to-mailbox mapping.
PHONE_ALIAS_JSON=[
{
"phone": "13800138000",
"accountId": "qq-main",
"label": "主手机号-QQ"
}
]
# Optional source filtering. Leave empty for automatic detection.
SOURCE_RULES_JSON=
# Optional Outlook OAuth. Required only when using Outlook accounts.
OUTLOOK_OAUTH_ENABLED=false
OUTLOOK_CLIENT_ID=
OUTLOOK_CLIENT_SECRET=
OUTLOOK_TENANT_ID=common
OUTLOOK_REDIRECT_URI=http://localhost:3000/api/outlook/callback