Email needs atleast 256m even on 1gb droplet

This commit is contained in:
Girish Ramakrishnan
2016-12-29 18:22:36 -08:00
parent b25d61fbb5
commit af69ddc220
+1 -1
View File
@@ -229,7 +229,7 @@ function startMail(callback) {
const dataDir = paths.DATA_DIR;
const fqdn = config.fqdn();
const mailFqdn = config.adminFqdn();
const memoryLimit = (1 + Math.round(os.totalmem()/(1024*1024*1024)/4)) * 128;
const memoryLimit = Math.max((1 + Math.round(os.totalmem()/(1024*1024*1024)/4)) * 128, 256);
// TODO: watch for a signal here should the certificate path change. Note that haraka reloads
// config automatically if the contents of the certificate changes (eg, renawal).