dovecot: add lmtp support

This commit is contained in:
Nikolay Amiantov 2015-07-03 00:26:49 +03:00
parent 3a2275dd84
commit dea8ebcfc5

View File

@ -10,7 +10,7 @@ let
'' ''
base_dir = /var/run/dovecot2/ base_dir = /var/run/dovecot2/
protocols = ${optionalString cfg.enableImap "imap"} ${optionalString cfg.enablePop3 "pop3"} protocols = ${optionalString cfg.enableImap "imap"} ${optionalString cfg.enablePop3 "pop3"} ${optionalString cfg.enableLmtp "lmtp"}
'' ''
+ (if cfg.sslServerCert!="" then + (if cfg.sslServerCert!="" then
'' ''
@ -70,6 +70,11 @@ in
description = "Start the IMAP listener (when Dovecot is enabled)."; description = "Start the IMAP listener (when Dovecot is enabled).";
}; };
enableLmtp = mkOption {
default = false;
description = "Start the LMTP listener (when Dovecot is enabled).";
};
user = mkOption { user = mkOption {
default = "dovecot2"; default = "dovecot2";
description = "Dovecot user name."; description = "Dovecot user name.";