From 3f9d9d77bebbda71768c8b7b9776cb7f4999d088 Mon Sep 17 00:00:00 2001 From: Vyacheslav Anzhiganov Date: Jul 01 2016 15:31:03 +0000 Subject: Custom SMTP settings --- diff --git a/doc/configuration.rst b/doc/configuration.rst index effe7af..6ec0b37 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -343,6 +343,42 @@ sending emails. Defaults to: ``localhost``. +SMTP_PORT +~~~~~~~~~ + +This configuration key allow to define the SMTP server port. + +SMTP by default uses TCP port 25. The protocol for mail submission is +the same, but uses port 587. +SMTP connections secured by SSL, known as SMTPS, default to port 465 +(nonstandard, but sometimes used for legacy reasons). + +Defaults to: ``25`` + +SMTP_SSL +~~~~~~~~ + +This configuration key to define using SMTP connections secured by SSL + +Defaults to: ``False`` + +SMTP_USERNAME +~~~~~~~~~~~~~ + +This configuration key allow to use SMTP authentication + +Note: Specify SMTP_USERNAME and SMTP_PASSWORD for using SMTP auth + +Defaults to: ``None`` + +SMTP_PASSWORD +~~~~~~~~~~~~~ + +This configuration key allow to use SMTP authentication + +Note: Specify SMTP_USERNAME and SMTP_PASSWORD for using SMTP auth + +Defaults to: ``None`` SHORT_LENGTH ~~~~~~~~~~~~ diff --git a/files/pagure.cfg.sample b/files/pagure.cfg.sample index 653edb3..7b4efd6 100644 --- a/files/pagure.cfg.sample +++ b/files/pagure.cfg.sample @@ -27,6 +27,11 @@ EMAIL_ERROR = 'pingou@pingoured.fr' ### Default SMTP server to use for sending emails SMTP_SERVER = 'localhost' +SMTP_PORT = 25 +SMTP_SSL = False +# Specify SMTP_USERNAME and SMTP_PASSWORD for enabling SMTP auth +SMTP_USERNAME = None +SMTP_PASSWORD = None ### Information used to sent notifications FROM_EMAIL = 'pagure@pagure.io'