-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.js
26 lines (24 loc) · 851 Bytes
/
config.js
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
"use strict";
var config = {
"attachmentsBucket": "mybucket.mydomain.com",
"attachmentsPrefix": "attachments",
"debug": true,
"rules": { // first match
"^mail.example.com$": { // exact "Object key prefix" match
"to": "somerecipient@yourdomain.com",
"from": "mail <mail@yourdomain.com>",
"subject": "[mail] ",
},
"example.com": { // matches any "Object key prefix" containing "example.com"
"to": "somerecipient+wildcard@yourdomain.com",
"from": "mail <mail@yourdomain.com>",
"subject": "",
},
".*": { // matches everything - don't forget the dot!
"to": "catchall@yourdomain.com",
"from": "mail <mail@yourdomain.com>",
"subject": "[catchall] ",
}
}
}
module.exports = config