2017-03-06 05:45:50 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
log: {
|
|
|
|
level: 'silly'
|
|
|
|
},
|
|
|
|
|
2017-03-11 23:21:08 +08:00
|
|
|
// downgrade process user after binding to ports
|
|
|
|
//user: 'wildduck',
|
|
|
|
//group: 'wildduck',
|
|
|
|
|
|
|
|
// log to syslog if true
|
|
|
|
syslog: false,
|
|
|
|
|
|
|
|
// process title and syslog ident
|
|
|
|
ident: 'wildduck',
|
|
|
|
|
|
|
|
// how many processes to start
|
|
|
|
processes: 1,
|
|
|
|
|
2017-03-06 22:13:40 +08:00
|
|
|
mongo: 'mongodb://127.0.0.1:27017/wildduck',
|
2017-03-11 23:21:08 +08:00
|
|
|
|
2017-03-10 02:05:29 +08:00
|
|
|
redis: {
|
|
|
|
host: 'localhost',
|
|
|
|
port: 6379,
|
|
|
|
db: 3
|
|
|
|
},
|
2017-03-06 22:13:40 +08:00
|
|
|
|
2017-03-06 05:45:50 +08:00
|
|
|
imap: {
|
|
|
|
port: 9993,
|
2017-03-12 00:28:12 +08:00
|
|
|
host: '127.0.0.1',
|
2017-04-05 16:39:42 +08:00
|
|
|
// If certificate path is not defined, use built-in self-signed certs
|
2017-03-12 00:28:12 +08:00
|
|
|
//key: '/path/to/server/key.pem'
|
|
|
|
//cert: '/path/to/server/cert.pem'
|
2017-03-12 06:23:46 +08:00
|
|
|
secure: true,
|
|
|
|
// Max size for messages uploaded via APPEND
|
2017-03-27 15:36:45 +08:00
|
|
|
maxMB: 5,
|
|
|
|
// default quota storage in MB (can be overriden per user)
|
2017-04-05 16:39:42 +08:00
|
|
|
maxStorage: 1000
|
2017-03-06 05:45:50 +08:00
|
|
|
},
|
|
|
|
|
2017-03-06 22:13:40 +08:00
|
|
|
lmtp: {
|
2017-03-21 06:07:23 +08:00
|
|
|
enabled: false,
|
2017-03-06 22:13:40 +08:00
|
|
|
port: 2424,
|
2017-03-06 05:45:50 +08:00
|
|
|
host: '0.0.0.0',
|
2017-03-06 22:13:40 +08:00
|
|
|
maxMB: 5
|
|
|
|
},
|
|
|
|
|
2017-03-07 00:27:04 +08:00
|
|
|
smtp: {
|
|
|
|
enabled: true,
|
|
|
|
port: 2525,
|
2017-04-09 17:33:10 +08:00
|
|
|
// If certificate path is not defined, use built-in self-signed certs for STARTTLS
|
|
|
|
//key: '/path/to/server/key.pem'
|
|
|
|
//cert: '/path/to/server/cert.pem'
|
2017-03-07 00:27:04 +08:00
|
|
|
host: '0.0.0.0',
|
|
|
|
maxMB: 5
|
|
|
|
},
|
|
|
|
|
2017-04-08 02:29:14 +08:00
|
|
|
pop3: {
|
|
|
|
enabled: true,
|
|
|
|
port: 9995,
|
|
|
|
host: '0.0.0.0',
|
2017-04-09 17:33:10 +08:00
|
|
|
// If certificate path is not defined, use built-in self-signed certs
|
|
|
|
//key: '/path/to/server/key.pem'
|
|
|
|
//cert: '/path/to/server/cert.pem'
|
|
|
|
secure: true,
|
|
|
|
// how many latest messages to list for LIST and UIDL
|
|
|
|
maxMessages: 250
|
2017-04-08 02:29:14 +08:00
|
|
|
},
|
|
|
|
|
2017-03-06 22:13:40 +08:00
|
|
|
api: {
|
|
|
|
port: 8080
|
2017-03-06 05:45:50 +08:00
|
|
|
}
|
|
|
|
};
|