From 33048edc297183dabefe31785289538a996813ba Mon Sep 17 00:00:00 2001 From: Baptiste BEAUPLAT Date: Fri, 30 Nov 2018 22:35:52 +0100 Subject: [PATCH] Use a configurable bounce address as return-path --- debexpo/lib/email.py | 3 ++- development.ini | 3 +++ test.ini | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debexpo/lib/email.py b/debexpo/lib/email.py index 224fecd1..370d3d10 100644 --- a/debexpo/lib/email.py +++ b/debexpo/lib/email.py @@ -165,7 +165,8 @@ class Email(object): session.login(self.auth['user'], self.auth['password']) log.debug('Sending email to %s' % ', '.join(recipients)) - result = session.sendmail(pylons.config['debexpo.email'], recipients, message) + result = session.sendmail(pylons.config['debexpo.bounce_email'], + recipients, message) if result: # Something went wrong. diff --git a/development.ini b/development.ini index c097626d..de4542c5 100644 --- a/development.ini +++ b/development.ini @@ -63,6 +63,9 @@ debexpo.logo = /debexpo-logo.png # Site support email debexpo.email = support@mentors.debian.net +# Generic bounce email +debexpo.bounce_email = bounce@mentors.debian.net + # Whether to show Debian-specific options debexpo.debian_specific = true diff --git a/test.ini b/test.ini index a6c02ad3..611698ec 100644 --- a/test.ini +++ b/test.ini @@ -52,6 +52,9 @@ debexpo.logo = /debian.png # Site support email debexpo.email = email@example.org +# Generic bounce email +debexpo.bounce_email = bounce@example.org + # Whether to show Debian-specific options debexpo.debian_specific = true -- GitLab