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