fix(authelia): Allow SMTP without username and password (SMTP relay) (#5770)

* SMTP username and password not required for support SMTP relays

I have changed the requiredness of the SMTP settings password and username field, to not required. This is necessary to support SMTP relays without authentication. (Like the Exchange Online one I’am using with ip verification)

Signed-off-by: StanMar-bit <84271654+StanMar-bit@users.noreply.github.com>

* adjust templates to handle smtp without user/pass

Signed-off-by: StanMar-bit <84271654+StanMar-bit@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
StanMar-bit 2022-12-25 10:11:37 +01:00 committed by GitHub
parent 091dfa758f
commit cec708a968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ sources:
- https://github.com/authelia/chartrepo
- https://github.com/authelia/authelia
type: application
version: 14.0.17
version: 14.0.18
annotations:
truecharts.org/catagories: |
- security

View File

@ -509,13 +509,11 @@ questions:
schema:
type: string
default: ""
required: true
- variable: plain_password
label: "Password"
schema:
type: string
default: ""
required: true
- variable: sender
label: "Sender"
schema:

View File

@ -173,7 +173,9 @@ data:
host: {{ $notifier.smtp.host }}
port: {{ default 25 $notifier.smtp.port }}
timeout: {{ default "5s" $notifier.smtp.timeout }}
username: {{ $notifier.smtp.username }}
{{- with $notifier.smtp.username }}
username: {{ . }}
{{- end }}
sender: {{ $notifier.smtp.sender }}
identifier: {{ $notifier.smtp.identifier }}
subject: {{ $notifier.smtp.subject | quote }}

View File

@ -36,7 +36,7 @@ data:
LDAP_PASSWORD: {{ .Values.authentication_backend.ldap.plain_password | b64enc | quote }}
{{- end }}
{{- if .Values.notifier.smtp.enabled }}
{{- if and .Values.notifier.smtp.enabled .Values.notifier.smtp.plain_password }}
SMTP_PASSWORD: {{ .Values.notifier.smtp.plain_password | b64enc | quote }}
{{- end }}