1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Sendmail fix, #3299

This commit is contained in:
Ylian Saint-Hilaire 2021-11-26 10:51:34 -08:00
parent a8cba854de
commit 51744bb277
2 changed files with 8 additions and 3 deletions

View file

@ -1606,6 +1606,11 @@ function CreateMeshCentralServer(config, args) {
obj.mailserver = require('./meshmail.js').CreateMeshMail(obj);
obj.mailserver.verify();
if (obj.args.lanonly == true) { addServerWarning("SMTP server has limited use in LAN mode.", 18); }
} else if (obj.config.sendmail != null) {
// Sendmail server
obj.mailserver = require('./meshmail.js').CreateMeshMail(obj);
obj.mailserver.verify();
if (obj.args.lanonly == true) { addServerWarning("Sendmail has limited use in LAN mode.", 18); }
}
// Setup the email server for each domain