configure eurofusion.eu mailserver
This commit is contained in:
parent
138368964d
commit
211bbb657a
@ -7,6 +7,7 @@
|
|||||||
./packages.nix
|
./packages.nix
|
||||||
./jobs.nix
|
./jobs.nix
|
||||||
./matrix.nix
|
./matrix.nix
|
||||||
|
./email.nix
|
||||||
./magnetico.nix
|
./magnetico.nix
|
||||||
./nameserver.nix
|
./nameserver.nix
|
||||||
./custom
|
./custom
|
||||||
@ -36,6 +37,8 @@
|
|||||||
|
|
||||||
firewall.allowedTCPPorts = [
|
firewall.allowedTCPPorts = [
|
||||||
443 80 # reverse proxy
|
443 80 # reverse proxy
|
||||||
|
993 # imaps server
|
||||||
|
25 465 # smtp(s) server
|
||||||
8080 # hubot
|
8080 # hubot
|
||||||
5349 # turn server
|
5349 # turn server
|
||||||
5350 # turn server
|
5350 # turn server
|
||||||
@ -371,6 +374,12 @@
|
|||||||
|
|
||||||
# Syncthing
|
# Syncthing
|
||||||
locations."/sync/".proxyPass = "http://localhost:8384/";
|
locations."/sync/".proxyPass = "http://localhost:8384/";
|
||||||
|
|
||||||
|
# User static files
|
||||||
|
locations."/~rnhmjoj/" = {
|
||||||
|
alias = "/home/rnhmjoj/www/";
|
||||||
|
extraConfig = "charset UTF-8;";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Breve URL shortner
|
# Breve URL shortner
|
||||||
|
47
email.nix
Normal file
47
email.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(builtins.fetchTarball {
|
||||||
|
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/nixos-20.09/nixos-mailserver-nixos-20.09.tar.gz";
|
||||||
|
sha256 = "0vsvgxxg5cgmzwj98171j7h5l028f1yq784alb3lxgbk8znfk51y";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
security.acme = {
|
||||||
|
email = "rnhmjoj@inventati.org";
|
||||||
|
acceptTerms = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
mailserver = {
|
||||||
|
enable = true;
|
||||||
|
fqdn = "mail.eurofusion.eu";
|
||||||
|
domains = [ "eurofusion.eu"];
|
||||||
|
|
||||||
|
loginAccounts = config.secrets.emailAccounts;
|
||||||
|
|
||||||
|
extraVirtualAliases = {
|
||||||
|
"abuse@eurofusion.eu" = "rnhmjoj@eurofusion.eu";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Use Let's Encrypt certificate
|
||||||
|
certificateScheme = 3;
|
||||||
|
|
||||||
|
# There is one already (pdns-recursor)
|
||||||
|
localDnsResolver = false;
|
||||||
|
|
||||||
|
# Enable IMAP, SMTP
|
||||||
|
enableImapSsl = true;
|
||||||
|
enableSubmissionSsl = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Improve hashing speed
|
||||||
|
services.dovecot2.extraConfig = ''
|
||||||
|
auth_cache_verify_password_with_worker = yes
|
||||||
|
'';
|
||||||
|
# Prefer IPv6
|
||||||
|
services.postfix.extraConfig = ''
|
||||||
|
smtp_address_preference = ipv6
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
@ -1,45 +1,56 @@
|
|||||||
U2FsdGVkX1+vPSahxXvrF9VksU0RRYKHTGd8L5ECXT49Lue3R/orA+qqujgps8gu
|
U2FsdGVkX1+DiD6z7MsrFVFstFwr+CGVeRb33VySjKW27vef0uWZL+iVSp9lXO3j
|
||||||
TErsu3uflza1MXYIn58TDSY8CDEU0M3wNYax6K+bNYmcp/3b5faAjZaGmaxncQ/j
|
P/88dTkypnb/8GS0jj/nF/D6VThe3b+S2weY80UZTaUV1kd6bft0xzGXzsbN6bES
|
||||||
SkTcXOTzaSXZCuJsZt3pTsbG52vr2jJkSGj7nxzGc4pSY144pAh5Bb9ViHhzEgVX
|
xu/70H1pUN6EbpYi6spum8FpdOMTmKTZvUnOsF6Q1BlhxkmasHiXbQb+pdkVZGFF
|
||||||
jgp3VY9XRl8p9zPiW7SCMRf0extnqZ8eS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nP4li7WiCbhiElPdHg5cQzF9LHlaeKxUpwRqnme9vQK2CssA
|
||||||
|
ex8D444pY39WQLT5Ip+u7bta3H+xCjdBSVyjFYcrTQ4=
|
||||||
|
2
secrets/pass/gmarcer.pwd
Normal file
2
secrets/pass/gmarcer.pwd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
U2FsdGVkX196+2n2N30QJgKlS5tkir0VWlFSEcP4Yrqg38w/Il8PL/8SRklXLXwD
|
||||||
|
5NTcgNA4EXp8+ccS8n3cmS2RjqSZNp8ZGlgONxZPxwdcY2gV
|
2
secrets/pass/rnhmjoj.pwd
Normal file
2
secrets/pass/rnhmjoj.pwd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
U2FsdGVkX1+hzdJWty+aSUN/FIN3b8/9VyaEVNG5G+2FG0CgFOavWfW3g/o4ZcwD
|
||||||
|
3OCWEgTo7rqsQGGCbi92y/TnuTbMytrN+84eGQ0dVkV1COJD
|
Loading…
Reference in New Issue
Block a user