|
|
@ -44,6 +44,12 @@ spec: |
|
|
|
value: {{ .Values.mail.domain | quote }} |
|
|
|
- name: POSTMASTER |
|
|
|
value: "admin" |
|
|
|
{{- if .Values.mail.ldap.server }} |
|
|
|
- name: LDAP_SRV |
|
|
|
value: {{ .Values.mail.ldap.server }} |
|
|
|
- name: BASE_DN |
|
|
|
value: {{ .Values.mail.ldap.baseDN }} |
|
|
|
{{- end }} |
|
|
|
ports: |
|
|
|
- name: imap |
|
|
|
containerPort: 143 |
|
|
@ -91,6 +97,14 @@ spec: |
|
|
|
value: {{ .Values.mail.relayNets | quote }} |
|
|
|
- name: RELAYHOST |
|
|
|
value: {{ .Values.mail.relayHost | quote }} |
|
|
|
{{- if .Values.mail.ldap.server }} |
|
|
|
- name: LDAP_SRV |
|
|
|
value: {{ .Values.mail.ldap.server }} |
|
|
|
- name: BASE_DN |
|
|
|
value: {{ .Values.mail.ldap.baseDN }} |
|
|
|
- name: MBOX_DOMAINS |
|
|
|
value: {{ .Values.mail.ldap.mboxDomains }} |
|
|
|
{{- end }} |
|
|
|
ports: |
|
|
|
- name: smtp |
|
|
|
containerPort: 25 |
|
|
@ -114,6 +128,7 @@ spec: |
|
|
|
name: mailvol |
|
|
|
resources: |
|
|
|
{{- toYaml .Values.smtp.resources | nindent 12 }} |
|
|
|
{{- if not .Values.mail.ldap.server }} |
|
|
|
- name: admin |
|
|
|
securityContext: |
|
|
|
{{- toYaml .Values.securityContext | nindent 12 }} |
|
|
@ -186,7 +201,7 @@ spec: |
|
|
|
name: mailvol |
|
|
|
resources: |
|
|
|
{{- toYaml .Values.redis.resources | nindent 12 }} |
|
|
|
|
|
|
|
{{- end }} |
|
|
|
volumes: |
|
|
|
- name: mailvol |
|
|
|
persistentVolumeClaim: |
|
|
|