]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Cleanup e-mails from immae.eu domains
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 13 Apr 2019 08:41:30 +0000 (10:41 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 13 Apr 2019 08:41:30 +0000 (10:41 +0200)
nixops/modules/dns/default.nix
nixops/modules/websites/tools/cloud/nextcloud.nix
nixops/modules/websites/tools/dav/davical.nix
nixops/modules/websites/tools/diaspora/diaspora.nix
nixops/modules/websites/tools/git/mantisbt/mantisbt.nix
nixops/modules/websites/tools/mastodon/mastodon.nix
nixops/modules/websites/tools/mediagoblin/mediagoblin.nix
nixops/modules/websites/tools/peertube/peertube.nix
nixops/modules/websites/tools/tools/kanboard.nix
nixops/modules/websites/tools/tools/ttrss.nix
nixops/modules/websites/tools/tools/wallabag.nix

index 793771481803bc437c3026c3fc362266d15aa8dd..34019d11fbfde857c1b1246fc84c3cef83f24dd6 100644 (file)
@@ -68,8 +68,8 @@
         server-id none;
         '';
       zones = with myconfig.env.dns;
-        assert (builtins.substring ((builtins.stringLength soa.email)-1) 1 soa.email) == ".";
-        assert (builtins.substring ((builtins.stringLength soa.primary)-1) 1 soa.primary) == ".";
+        assert (builtins.substring ((builtins.stringLength soa.email)-1) 1 soa.email) != ".";
+        assert (builtins.substring ((builtins.stringLength soa.primary)-1) 1 soa.primary) != ".";
         (map (conf: {
           name = conf.name;
           master = false;
@@ -87,7 +87,7 @@
             else [];
           file = pkgs.writeText "${conf.name}.zone" ''
               $TTL 10800
-              @ IN SOA ${soa.primary} ${soa.email} ${soa.serial} ${soa.refresh} ${soa.retry} ${soa.expire} ${soa.ttl}
+              @ IN SOA ${soa.primary}. ${builtins.replaceStrings ["@"] ["."] soa.email}. ${soa.serial} ${soa.refresh} ${soa.retry} ${soa.expire} ${soa.ttl}
 
               ${lib.concatStringsSep "\n" (map (x: "@ IN NS ${x}.") (lib.concatMap (n: lib.attrsets.mapAttrsToList (k: v: k) ns.${n}) conf.ns))}
 
index 2e528283a38004e881615257000f0f591def84f8..59930fb0122587419fd92d6abfe9fa80e277e9a5 100644 (file)
@@ -148,9 +148,9 @@ let
         'mail_smtphost' => '127.0.0.1',
         'mail_smtpname' => ''',
         'mail_smtppassword' => ''',
-        'mail_from_address' => 'owncloud',
+        'mail_from_address' => 'nextcloud',
         'mail_smtpauth' => false,
-        'mail_domain' => 'immae.eu',
+        'mail_domain' => 'tools.immae.eu',
         'memcache.local' => '\\OC\\Memcache\\APCu',
         'memcache.locking' => '\\OC\\Memcache\\Redis',
         'filelocking.enabled' => true,
index 6668fa18021add11aee0c0eb53fcca4ce5d806a5..f6cb5bbe86d6f39d17a01ad3a7d6eb5f0ae90240 100644 (file)
@@ -22,7 +22,7 @@ let
 
         $c->readonly_webdav_collections = false;
 
-        $c->admin_email ='davical@immae.eu';
+        $c->admin_email ='davical@tools.immae.eu';
 
         $c->restrict_setup_to_admin = true;
 
index a57c529b92dff7257c8680f26ea36187853b1929..82bca8c7cabfea7c7b49539bcc68a755ce563c1e 100644 (file)
@@ -77,14 +77,14 @@ let
           wordpress:
         mail:
           enable: true
-          sender_address: 'diaspora@immae.eu'
+          sender_address: 'diaspora@tools.immae.eu'
           method: 'sendmail'
           smtp:
           sendmail:
             location: '/run/wrappers/bin/sendmail'
         admins:
           account: "ismael"
-          podmin_email: 'diaspora@immae.eu'
+          podmin_email: 'diaspora@tools.immae.eu'
         relay:
           outbound:
           inbound:
index 9bb8476c5a15d260e16b3a1361b18be2e20110b0..0cd98a1901f4afa2522d6a1295782f45a79403b5 100644 (file)
@@ -34,10 +34,10 @@ let
       $g_smtp_host             = 'localhost';
       $g_smtp_username         = ''';
       $g_smtp_password         = ''';
-      $g_webmaster_email       = 'webmaster@immae.eu';
-      $g_from_email            = 'noreply@immae.eu';
-      $g_return_path_email     = 'webmaster@immae.eu';
-      $g_from_name             = 'Mantis Bug Tracker at immae.eu';
+      $g_webmaster_email       = 'mantisbt@tools.immae.eu';
+      $g_from_email            = 'mantisbt@tools.immae.eu';
+      $g_return_path_email     = 'mantisbt@tools.immae.eu';
+      $g_from_name             = 'Mantis Bug Tracker at git.immae.eu';
       $g_email_receive_own     = OFF;
       # --- LDAP ---
       $g_login_method = LDAP;
index d4e437ac67cbcda1a2a4ac264df7093d1dde6b27..90e537f011e4931c6b7360f9d4fd331ab4af1ff5 100644 (file)
@@ -80,7 +80,7 @@ let
     VAPID_PUBLIC_KEY=${env.vapid.public}
 
     SMTP_DELIVERY_METHOD=sendmail
-    SMTP_FROM_ADDRESS=notifications@mastodon.immae.eu
+    SMTP_FROM_ADDRESS=mastodon@tools.immae.eu
     SENDMAIL_LOCATION="/run/wrappers/bin/sendmail"
     PAPERCLIP_ROOT_PATH=${varDir}
 
index 53796d572bdaa1fd237dd5b92daa2884a82f404a..e1876ae18400365e7cc249ecc73e2a93221c7582 100644 (file)
@@ -196,7 +196,7 @@ in
 
       [mediagoblin]
       direct_remote_path = /mgoblin_static/
-      email_sender_address = "mediagoblin@mail.immae.eu"
+      email_sender_address = "mediagoblin@tools.immae.eu"
 
       #sql_engine = sqlite:///%(data_basedir)s/mediagoblin.db
       sql_engine = ${env.psql_url}
index 75629bd269c1d4f23b7aa4d6221b2189db956b21..ba49e2bdfc1f9630f05ddb9f21b80a3505150bbe 100644 (file)
@@ -98,7 +98,7 @@ let
           tls: true # If you use StartTLS: false
           disable_starttls: false
           ca_file: null # Used for self signed certificates
-          from_address: 'peertube@immae.eu'
+          from_address: 'peertube@tools.immae.eu'
         storage:
           tmp: '${varDir}/storage/tmp/'
           avatars: '${varDir}/storage/avatars/'
@@ -130,7 +130,7 @@ let
           captions:
             size: 500 # Max number of video captions/subtitles you want to cache
         admin:
-          email: 'peertube@immae.eu'
+          email: 'peertube@tools.immae.eu'
         contact_form:
           enabled: true
         signup:
index 399d3e1ab94e713cfca51a21d17e7c597a7726f8..8408ffa56185f5dfe1747fada5be011971d69b71 100644 (file)
@@ -12,7 +12,7 @@ rec {
   };
   config = writeText "config.php" ''
     <?php
-    define('MAIL_FROM', 'kanboard@immae.eu');
+    define('MAIL_FROM', 'kanboard@tools.immae.eu');
 
     define('DB_DRIVER', 'postgres');
     define('DB_USERNAME', '${env.postgresql.user}');
index 1239b9dc5efba65e4094558b0ec2420629046380..ca049e69b2a77f87a2ff6d98d143a193f17f48cd 100644 (file)
@@ -94,11 +94,11 @@ let
         define('SPHINX_INDEX', 'ttrss, delta');
 
         define('ENABLE_REGISTRATION', false);
-        define('REG_NOTIFY_ADDRESS', 'outils@immae.eu');
+        define('REG_NOTIFY_ADDRESS', 'ttrss@tools.immae.eu');
         define('REG_MAX_USERS', 10);
 
         define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
-        define('SMTP_FROM_ADDRESS', 'outils@immae.eu');
+        define('SMTP_FROM_ADDRESS', 'ttrss@tools.immae.eu');
         define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
 
         define('LDAP_AUTH_SERVER_URI', 'ldap://ldap.immae.eu:389/');
index a4ce1e079fec7d9d9566b1fb9a62d9ddb8cae5f8..03779fef0623ef8e20c8aa5ba79ba8297a75dab7 100644 (file)
@@ -24,10 +24,10 @@ let
           locale: fr
           secret: ${env.secret}
           twofactor_auth: true
-          twofactor_sender: wallabag@immae.eu
+          twofactor_sender: wallabag@tools.immae.eu
           fosuser_registration: false
           fosuser_confirmation: true
-          from_email: wallabag@immae.eu
+          from_email: wallabag@tools.immae.eu
           rss_limit: 50
           rabbitmq_host: localhost
           rabbitmq_port: 5672