diff --git a/defaults/main.yml b/defaults/main.yml index 9a8c51b..8196147 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -56,6 +56,7 @@ gitea_mailer_host: localhost:25 gitea_mailer_from: noreply@your.domain gitea_mailer_user: "" gitea_mailer_password: "" +gitea_mailer_type: smtp gitea_fail2ban_enabled: false gitea_fail2ban_jail_maxretry: 10 diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 93f19ed..b3fcfe0 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -145,7 +145,7 @@ PASSWD = `{{ gitea_mailer_password }}` ; Send mails as plain text SEND_AS_PLAIN_TEXT = false ; Set Mailer Type (either SMTP, sendmail or dummy to just send to the log) -MAILER_TYPE = smtp +MAILER_TYPE = {{ gitea_mailer_type }} ; Specify an alternative sendmail binary SENDMAIL_PATH = sendmail ; Specify any extra sendmail arguments