]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Configure mailer spool for nextcloud
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 26 Jan 2019 16:18:43 +0000 (17:18 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 26 Jan 2019 16:18:43 +0000 (17:18 +0100)
nixops/modules/websites/tools/cloud/nextcloud.nix

index 3c6bfc9505e79b209a3c78498d01b0985e2a9e3f..1a490258306b27851c7430d8adbd1e00ecaf36e7 100644 (file)
@@ -126,10 +126,10 @@ let
         'loglevel' => 0,
         'trashbin_retention_obligation' => 'auto',
         'htaccess.RewriteBase' => '/',
-        'mail_smtpmode' => 'smtp',
-        'mail_smtphost' => 'mail.immae.eu',
-        'mail_smtpname' => ${"''"},
-        'mail_smtppassword' => ${"''"},
+        'mail_smtpmode' => 'sendmail',
+        'mail_smtphost' => '127.0.0.1',
+        'mail_smtpname' => ''',
+        'mail_smtppassword' => ''',
         'mail_from_address' => 'owncloud',
         'mail_smtpauth' => false,
         'mail_domain' => 'immae.eu',
@@ -249,7 +249,7 @@ let
         php_value[opcache.revalidate_freq] = 1
         php_admin_value[memory_limit] = 512M
 
-        php_admin_value[open_basedir] = "${basedir}:/proc/meminfo:/dev/urandom:/proc/self/fd:/tmp"
+        php_admin_value[open_basedir] = "/run/wrappers/bin/sendmail:${basedir}:/proc/meminfo:/dev/urandom:/proc/self/fd:/tmp"
         php_admin_value[session.save_path] = "${varDir}/phpSessions"
         '';
     };