From 5bd13e36f4c3f4b286ec9db403be7b3dde3c4f94 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 27 Dec 2023 07:42:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20=E2=80=94=20Mail=20sending=20is?= =?UTF-8?q?=20now=20disabled=20by=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set disable_mail_sending to 0 to enable it --- CHANGELOG | 1 + lufi.conf.template | 5 +++-- t/mysql.conf | 5 +++++ t/postgresql.conf | 5 +++++ t/sqlite.conf | 5 +++++ t/test.t | 1 + 6 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 552de92..6e87176 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ Revision history for Lufi ?.??.? ????-??-?? + - 💥 — [BREAKING CHANGE] Mail sending is now disabled by default! Set disable_mail_sending to 0 to enable it 0.05.18 2022-03-19 - ✨ Add support for header authentication, thanks to @mildis (!69) diff --git a/lufi.conf.template b/lufi.conf.template index 2b71b03..b3f7db5 100644 --- a/lufi.conf.template +++ b/lufi.conf.template @@ -167,8 +167,9 @@ #mail_sender => 'no-reply@lufi.io', # Disable sending mail through the server - # optional, default is false - #disable_mail_sending => 0, + # Recommended option as mail sending can be abused by spammers + # optional, default is true + #disable_mail_sending => 1, ############# # DB settings diff --git a/t/mysql.conf b/t/mysql.conf index 1b8524c..08e66c0 100644 --- a/t/mysql.conf +++ b/t/mysql.conf @@ -156,6 +156,11 @@ # optional, default to no-reply@lufi.io #mail_sender => 'no-reply@lufi.io', + # Disable sending mail through the server + # Recommended option as mail sending can be abused by spammers + # optional, default is true + #disable_mail_sending => 1, + ############# # DB settings ############# diff --git a/t/postgresql.conf b/t/postgresql.conf index 8905779..b8adbad 100644 --- a/t/postgresql.conf +++ b/t/postgresql.conf @@ -152,6 +152,11 @@ # optional, default to no-reply@lufi.io #mail_sender => 'no-reply@lufi.io', + # Disable sending mail through the server + # Recommended option as mail sending can be abused by spammers + # optional, default is true + #disable_mail_sending => 1, + ############# # DB settings ############# diff --git a/t/sqlite.conf b/t/sqlite.conf index c1d33ee..1292525 100644 --- a/t/sqlite.conf +++ b/t/sqlite.conf @@ -156,6 +156,11 @@ # optional, default to no-reply@lufi.io #mail_sender => 'no-reply@lufi.io', + # Disable sending mail through the server + # Recommended option as mail sending can be abused by spammers + # optional, default is true + #disable_mail_sending => 1, + ############# # DB settings ############# diff --git a/t/test.t b/t/test.t index 5d0da45..2dfa7d8 100644 --- a/t/test.t +++ b/t/test.t @@ -58,6 +58,7 @@ BEGIN { how => 'sendmail' }, mail_sender => 'no-reply@lufi.io', + disable_mail_sending => 1, theme => 'default', upload_dir => 'files', session_duration => 3600,