diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-09 12:38:50 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-09 12:38:50 +0200 |
commit | 05f8c21a6f756a7ae7d9ec95e422f1f1a1c7e030 (patch) | |
tree | f8455d786416a3e8a2e473e93d9db0f2ef3b82bd | |
parent | bbd5220ca7879e49858f309cb8fc22443138b4b9 (diff) | |
download | Nix-05f8c21a6f756a7ae7d9ec95e422f1f1a1c7e030.tar.gz Nix-05f8c21a6f756a7ae7d9ec95e422f1f1a1c7e030.tar.zst Nix-05f8c21a6f756a7ae7d9ec95e422f1f1a1c7e030.zip |
Add imap / pop3 / smtp subdomains to dns
-rw-r--r-- | modules/private/dns.nix | 9 | ||||
-rw-r--r-- | modules/private/websites/tools/tools/roundcubemail.nix | 7 |
2 files changed, 13 insertions, 3 deletions
diff --git a/modules/private/dns.nix b/modules/private/dns.nix index af53695..f12f982 100644 --- a/modules/private/dns.nix +++ b/modules/private/dns.nix | |||
@@ -108,6 +108,14 @@ | |||
108 | ${n} IN MX 10 mail.${conf.name}. | 108 | ${n} IN MX 10 mail.${conf.name}. |
109 | ;${n} IN MX 50 mx-1.${conf.name}. | 109 | ;${n} IN MX 50 mx-1.${conf.name}. |
110 | 110 | ||
111 | ; https://tools.ietf.org/html/rfc6186 | ||
112 | _submission._tcp${suffix} SRV 0 1 587 smtp.immae.eu. | ||
113 | _imap._tcp${suffix} SRV 0 1 143 imap.immae.eu. | ||
114 | _imaps._tcp${suffix} SRV 0 1 993 imap.immae.eu. | ||
115 | _pop3._tcp${suffix} SRV 10 1 110 pop3.immae.eu. | ||
116 | _pop3s._tcp${suffix} SRV 10 1 995 pop3.immae.eu. | ||
117 | _sieve._tcp${suffix} SRV 0 1 4190 imap.immae.eu. | ||
118 | |||
111 | ; Mail sender authentications | 119 | ; Mail sender authentications |
112 | ${n} IN TXT "v=spf1 mx ~all" | 120 | ${n} IN TXT "v=spf1 mx ~all" |
113 | _dmarc${suffix} IN TXT "v=DMARC1; p=none; adkim=r; aspf=r; fo=1; rua=mailto:postmaster+rua@immae.eu; ruf=mailto:postmaster+ruf@immae.eu;" | 121 | _dmarc${suffix} IN TXT "v=DMARC1; p=none; adkim=r; aspf=r; fo=1; rua=mailto:postmaster+rua@immae.eu; ruf=mailto:postmaster+ruf@immae.eu;" |
@@ -115,6 +123,7 @@ | |||
115 | immae_eu._domainkey${suffix} IN TXT ( "v=DKIM1; k=rsa; s=email; " | 123 | immae_eu._domainkey${suffix} IN TXT ( "v=DKIM1; k=rsa; s=email; " |
116 | "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzl3vLd8W5YAuumC5+ZT9OV7/14Pmh5JYtwyqKI3cfe9NnAqInt3xO4bZ7oqIxRKWN4SD39vm7O/QOvFdBt00ENOOzdP90s5gKw6eIP/4+vPTh0IWltAsmu9B2agzdtWUE7t2xFKIzEn8l9niRE2QYbVaqZv4sub98vY55fIgFoHtjkmNC7325S8fjDJGp6OPbyhAs6Xl5/adjF" | 124 | "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzl3vLd8W5YAuumC5+ZT9OV7/14Pmh5JYtwyqKI3cfe9NnAqInt3xO4bZ7oqIxRKWN4SD39vm7O/QOvFdBt00ENOOzdP90s5gKw6eIP/4+vPTh0IWltAsmu9B2agzdtWUE7t2xFKIzEn8l9niRE2QYbVaqZv4sub98vY55fIgFoHtjkmNC7325S8fjDJGp6OPbyhAs6Xl5/adjF" |
117 | "0ko4Y2p6RaxLQfjlS0bxmK4Qg6C14pIXHtzVeqOuWrwApqt5+AULSn97iUtqV/IJlEEjC6DUR44t3C/G0G/k46iFclCqRRi0hdPrOHCtZDbtMubnTN9eaUiNpkXh1WnCflHwtjQwIDAQAB" ) | 125 | "0ko4Y2p6RaxLQfjlS0bxmK4Qg6C14pIXHtzVeqOuWrwApqt5+AULSn97iUtqV/IJlEEjC6DUR44t3C/G0G/k46iFclCqRRi0hdPrOHCtZDbtMubnTN9eaUiNpkXh1WnCflHwtjQwIDAQAB" ) |
126 | eldiron._domainkey${suffix} IN TXT ${myconfig.env.mail.dkim.eldiron.public} | ||
118 | '' else ""} | 127 | '' else ""} |
119 | '') conf.withEmail)} | 128 | '') conf.withEmail)} |
120 | '' + (if conf.name == "immae.eu" then '' | 129 | '' + (if conf.name == "immae.eu" then '' |
diff --git a/modules/private/websites/tools/tools/roundcubemail.nix b/modules/private/websites/tools/tools/roundcubemail.nix index 8974d1b..c643ff6 100644 --- a/modules/private/websites/tools/tools/roundcubemail.nix +++ b/modules/private/websites/tools/tools/roundcubemail.nix | |||
@@ -17,11 +17,12 @@ rec { | |||
17 | text = '' | 17 | text = '' |
18 | <?php | 18 | <?php |
19 | $config['db_dsnw'] = '${env.psql_url}'; | 19 | $config['db_dsnw'] = '${env.psql_url}'; |
20 | // This is used as default @domain, don't use "imap.immae.eu" here! | ||
20 | $config['default_host'] = 'ssl://mail.immae.eu'; | 21 | $config['default_host'] = 'ssl://mail.immae.eu'; |
21 | $config['imap_conn_options'] = array("ssl" => array("verify_peer" => false)); | 22 | $config['imap_conn_options'] = array("ssl" => array("verify_peer" => false)); |
22 | $config['smtp_server'] = 'tls://mail.immae.eu'; | 23 | $config['smtp_server'] = 'tls://smtp.immae.eu'; |
23 | $config['smtp_port'] = '25'; | 24 | $config['smtp_port'] = '587'; |
24 | $config['managesieve_host'] = 'mail.immae.eu'; | 25 | $config['managesieve_host'] = 'imap.immae.eu'; |
25 | $config['managesieve_port'] = '4190'; | 26 | $config['managesieve_port'] = '4190'; |
26 | $config['managesieve_usetls'] = true; | 27 | $config['managesieve_usetls'] = true; |
27 | $config['managesieve_conn_options'] = array("ssl" => array("verify_peer" => false)); | 28 | $config['managesieve_conn_options'] = array("ssl" => array("verify_peer" => false)); |