Set APPEND max size in config

This commit is contained in:
Andris Reinman 2017-03-12 00:23:46 +02:00
parent db2e462580
commit ae4a8fe800
2 changed files with 5 additions and 2 deletions

View file

@ -31,7 +31,9 @@ module.exports = {
host: '127.0.0.1',
//key: '/path/to/server/key.pem'
//cert: '/path/to/server/cert.pem'
secure: true
secure: true,
// Max size for messages uploaded via APPEND
maxMB: 5
},
lmtp: {

View file

@ -24,7 +24,8 @@ let serverOptions = {
info: log.silly.bind(log, 'IMAP'),
debug: log.silly.bind(log, 'IMAP'),
error: log.error.bind(log, 'IMAP')
}
},
maxMessage: config.imap.maxMB * 1024 * 1024
};
if (config.imap.key) {