Merge pull request #54 from orangerkater/define-mailer-type

issue #53: define mailer type
This commit is contained in:
Thomas Maurice 2020-07-22 18:35:13 +01:00 committed by GitHub
commit b1550d80ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -56,6 +56,7 @@ gitea_mailer_host: localhost:25
gitea_mailer_from: noreply@your.domain gitea_mailer_from: noreply@your.domain
gitea_mailer_user: "" gitea_mailer_user: ""
gitea_mailer_password: "" gitea_mailer_password: ""
gitea_mailer_type: smtp
gitea_fail2ban_enabled: false gitea_fail2ban_enabled: false
gitea_fail2ban_jail_maxretry: 10 gitea_fail2ban_jail_maxretry: 10

View file

@ -145,7 +145,7 @@ PASSWD = `{{ gitea_mailer_password }}`
; Send mails as plain text ; Send mails as plain text
SEND_AS_PLAIN_TEXT = false SEND_AS_PLAIN_TEXT = false
; Set Mailer Type (either SMTP, sendmail or dummy to just send to the log) ; 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 ; Specify an alternative sendmail binary
SENDMAIL_PATH = sendmail SENDMAIL_PATH = sendmail
; Specify any extra sendmail arguments ; Specify any extra sendmail arguments