mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-01-12 15:26:28 +01:00
address review comments
This commit is contained in:
parent
14cc97446d
commit
1861e82add
3 changed files with 4 additions and 18 deletions
|
@ -75,16 +75,7 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
template = mkOption {
|
||||
type = types.nullOr types.lines;
|
||||
default = null;
|
||||
description = ''
|
||||
The text of a template for the autoconfig XML file.
|
||||
If provided, overrides `templateFile`.
|
||||
'';
|
||||
};
|
||||
|
||||
extraProviderConfig = mkOption {
|
||||
extraEmailProvider = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
|
|
|
@ -23,6 +23,6 @@
|
|||
<authentication>password-cleartext</authentication>
|
||||
<username>%EMAILADDRESS%</username>
|
||||
</outgoingServer>
|
||||
@extraProviderConfig@
|
||||
@extraEmailProvider@
|
||||
</emailProvider>
|
||||
</clientConfig>
|
||||
|
|
|
@ -30,16 +30,11 @@ in {
|
|||
mailserver.autoconfig.webRoot = pkgs.substituteAll ({
|
||||
name = "config-v1.1.xml";
|
||||
dir = "mail";
|
||||
src = if cfg.template == null
|
||||
then cfg.templateFile
|
||||
else pkgs.writeTextFile {
|
||||
name = "mailserver-autoconfig-template.xml";
|
||||
text = cfg.template;
|
||||
};
|
||||
src = cfg.templateFile;
|
||||
} // {
|
||||
hostname = ms.fqdn;
|
||||
inherit (cfg)
|
||||
emailProviderId displayName displayShortName extraProviderConfig;
|
||||
emailProviderId displayName displayShortName extraEmailProvider;
|
||||
imapSslServer = incomingServer ms.enableImapSsl 993 "SSL";
|
||||
imapServer = incomingServer ms.enableImapSsl 143 "STARTTLS";
|
||||
pop3SslServer = incomingServer ms.enablePop3Ssl 995 "SSL";
|
||||
|
|
Loading…
Reference in a new issue