Some mail server updates and webmail
This commit is contained in:
parent
04733e7d64
commit
9a2ac3d4e3
|
@ -19,6 +19,7 @@
|
||||||
./postgres.nix
|
./postgres.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./mail-server.nix
|
./mail-server.nix
|
||||||
|
./webmail.nix
|
||||||
./gotosocial.nix
|
./gotosocial.nix
|
||||||
./akkoma.nix
|
./akkoma.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
#The thing you want for multiple domains is SNI, I don't know how to set that up
|
||||||
imports = [
|
imports = [
|
||||||
(builtins.fetchTarball {
|
(builtins.fetchTarball {
|
||||||
# Pick a release version you are interested in and set its hash, e.g.
|
# Pick a release version you are interested in and set its hash, e.g.
|
||||||
|
@ -60,6 +61,29 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mailboxes = {
|
||||||
|
Inbox = {
|
||||||
|
auto = "subscribe";
|
||||||
|
specialUse = "Inbox";
|
||||||
|
};
|
||||||
|
Drafts = {
|
||||||
|
auto = "subscribe";
|
||||||
|
specialUse = "Drafts";
|
||||||
|
};
|
||||||
|
Junk = {
|
||||||
|
auto = "subscribe";
|
||||||
|
specialUse = "Junk";
|
||||||
|
};
|
||||||
|
Sent = {
|
||||||
|
auto = "subscribe";
|
||||||
|
specialUse = "Sent";
|
||||||
|
};
|
||||||
|
Trash = {
|
||||||
|
auto = "no";
|
||||||
|
specialUse = "Trash";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
rejectRecipients = [
|
rejectRecipients = [
|
||||||
"no-reply@nextcloud.gladtherescake.eu"
|
"no-reply@nextcloud.gladtherescake.eu"
|
||||||
"no-reply@akkoma.gladtherescake.eu"
|
"no-reply@akkoma.gladtherescake.eu"
|
||||||
|
|
25
nixos/queen/webmail.nix
Normal file
25
nixos/queen/webmail.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; {
|
||||||
|
services.roundcube = {
|
||||||
|
enable = true;
|
||||||
|
# this is the url of the vhost, not necessarily the same as the fqdn of
|
||||||
|
# the mailserver
|
||||||
|
hostName = "mail.lillianviolet.dev";
|
||||||
|
extraConfig = ''
|
||||||
|
# starttls needed for authentication, so the fqdn required to match
|
||||||
|
# the certificate
|
||||||
|
$config['smtp_server'] = "tls://${config.mailserver.fqdn}";
|
||||||
|
$config['smtp_user'] = "%u";
|
||||||
|
$config['smtp_pass'] = "%p";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.enable = true;
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
|
}
|
Loading…
Reference in a new issue