Some mail server updates and webmail

This commit is contained in:
Lillian Violet 2023-12-17 17:20:19 +01:00
parent ae1b931738
commit ed2799a955
3 changed files with 50 additions and 0 deletions

View file

@ -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
]; ];

View file

@ -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
View 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];
}