bekkalokk: actiated roundcube test
This commit is contained in:
parent
fa843c4a59
commit
7dc0b99a09
@ -13,6 +13,7 @@
|
||||
# ./services/website.nix
|
||||
./services/nginx.nix
|
||||
./services/gitea/default.nix
|
||||
./services/webmail
|
||||
# ./services/mediawiki.nix
|
||||
];
|
||||
|
||||
|
6
hosts/bekkalokk/services/webmail/default.nix
Normal file
6
hosts/bekkalokk/services/webmail/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ config, values, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./roundcube.nix
|
||||
];
|
||||
}
|
36
hosts/bekkalokk/services/webmail/roundcube.nix
Normal file
36
hosts/bekkalokk/services/webmail/roundcube.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.roundcube;
|
||||
domain = "webmail2.pvv.ntnu.no";
|
||||
in
|
||||
{
|
||||
services.roundcube = {
|
||||
enable = true;
|
||||
package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login plugins.thunderbird_labels plugins.contextmenu plugins.custom_from]);
|
||||
dicts = with pkgs.aspellDicts; [ en en-science en-computers nb nn fr de it];
|
||||
maxAttachmentSize = 20;
|
||||
# this is the url of the vhost, not necessarily the same as the fqdn of
|
||||
# the mailserver
|
||||
hostName = domain;
|
||||
|
||||
extraConfig = ''
|
||||
# starttls needed for authentication, so the fqdn required to match
|
||||
# the certificate
|
||||
$config['enable_installer'] = false;
|
||||
$config['default_host'] = "ssl://imap.pvv.ntnu.no";
|
||||
$config['default_port'] = 993;
|
||||
$config['smtp_server'] = "tls://smtp.pvv.ntnu.no";
|
||||
$config['smtp_port'] = 25;
|
||||
# $config['smtp_port'] = 465;
|
||||
# $config['smtp_user'] = "%u@pvv.ntnu.no";
|
||||
$config['mail_domain'] = "pvv.ntnu.no";
|
||||
$config['smtp_user'] = "%u";
|
||||
# $config['smtp_pass'] = "%p";
|
||||
$config['support_url'] = "";
|
||||
'';
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user