Skip to content

Commit 366ff4e

Browse files
committed
Merge remote-tracking branch 'origin/master' into unittests
# Conflicts: # charts/docker-mailserver/Chart.yaml
2 parents 78d5e53 + 4ec28e2 commit 366ff4e

6 files changed

Lines changed: 76 additions & 21 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ First off, thank you for helping to improve this chart! :heart_eyes: :pray:
44

55
## Testing
66

7-
To test the chart locally, before submitting changes, run `./ci/scripts/local-ci.sh`
7+
To test the chart locally, before submitting changes, run `./.ci/scripts/local-ct-lint.sh`
88

99
## Submitting changes
1010

charts/docker-mailserver/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "13.3.1"
2+
appVersion: "14.0.0"
33
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
44
name: docker-mailserver
5-
version: 3.0.14
5+
version: 4.0.6
66
sources:
77
- https://github.com/docker-mailserver/docker-mailserver-helm
88
maintainers:

charts/docker-mailserver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# docker-mailserver Heml Chart
1+
# docker-mailserver Helm Chart
22

33
## Contents
44

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ spec:
2727
labels:
2828
app.kubernetes.io/name: {{ template "dockermailserver.fullname" . }}
2929
release: "{{ .Release.Name }}"
30+
{{- if .Values.deployment.labels }}
31+
{{ toYaml .Values.deployment.labels | indent 8 }}
32+
{{ end }}
3033
{{- if .Values.deployment.annotations }}
3134
annotations:
3235
{{ toYaml .Values.deployment.annotations | indent 8 }}
@@ -80,6 +83,18 @@ spec:
8083
{{- end }}
8184
{{- end }}
8285

86+
# Extra volumes
87+
{{- with .Values.deployment.extraVolumes }}
88+
{{- toYaml . | nindent 8 }}
89+
{{- end }}
90+
91+
{{- if .Values.deployment.initContainers }}
92+
initContainers:
93+
{{- with .Values.deployment.initContainers }}
94+
{{- toYaml . | nindent 8 }}
95+
{{- end }}
96+
{{- end }}
97+
8398
containers:
8499
- name: docker-mailserver
85100
image: {{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}
@@ -147,6 +162,11 @@ spec:
147162
{{- end }}
148163
{{- end }}
149164

165+
# Mount Extra Volumes
166+
{{- with $.Values.deployment.extraVolumeMounts }}
167+
{{- toYaml . | nindent 12 }}
168+
{{- end }}
169+
150170
livenessProbe:
151171
exec:
152172
command:
@@ -174,6 +194,8 @@ spec:
174194
- name: submission
175195
containerPort: 587
176196
{{- if .Values.proxyProtocol.enabled }}
197+
- name: smtp-proxy
198+
containerPort: 12525
177199
- name: subs-proxy
178200
containerPort: 10465
179201
- name: sub-proxy
@@ -244,4 +266,4 @@ spec:
244266
readonly: true
245267
{{- end }}
246268
{{- end }}
247-
{{- end }}
269+
{{- end }}

charts/docker-mailserver/templates/service.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ metadata:
1111
prometheus.io/path: {{ .Values.monitoring.service.path | quote }}
1212
prometheus.io/port: {{ .Values.monitoring.service.port | quote }}
1313
##
14-
{{- if .Values.service.annotations }}
15-
{{ toYaml .Values.service.annotations | indent 2 }}
16-
{{ end }}
14+
{{- if .Values.service.annotations }}
15+
{{ toYaml .Values.service.annotations | indent 4 }}
16+
{{ end }}
1717
labels:
1818
app.kubernetes.io/name: {{ template "dockermailserver.fullname" . }}
1919
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
2020
heritage: "{{ .Release.Service }}"
2121
release: "{{ .Release.Name }}"
22-
{{- if .Values.service.labels }}
23-
{{ toYaml .Values.service.labels | indent 2 }}
24-
{{ end }}
22+
{{- if .Values.service.labels }}
23+
{{ toYaml .Values.service.labels | indent 4 }}
24+
{{ end }}
2525
name: {{ template "dockermailserver.fullname" . }}
2626
spec:
2727
## If a load balancer is being used, ensure that the newer type of LB that passes along IP information is used
@@ -55,6 +55,9 @@ spec:
5555
nodePort: {{ default "30587" .Values.service.nodePort.submission }}
5656
{{ end }}
5757
{{- if .Values.proxyProtocol.enabled }}
58+
- name: smtp-proxy
59+
targetPort: smtp-proxy
60+
port: 12525
5861
- name: subs-proxy
5962
targetPort: subs-proxy
6063
port: 10465

charts/docker-mailserver/values.yaml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ deployment:
7777
# -----------------------------------------------
7878
LOG_LEVEL: info
7979
SUPERVISOR_LOGLEVEL:
80-
ONE_DIR: 1
8180
DMS_VMAIL_UID:
8281
DMS_VMAIL_GID:
8382
ACCOUNT_PROVISIONER:
@@ -103,6 +102,7 @@ deployment:
103102
RSPAMD_GREYLISTING: 0
104103
RSPAMD_HFILTER: 1
105104
RSPAMD_HFILTER_HOSTNAME_UNKNOWN_SCORE: 6
105+
RSPAMD_NEURAL: 0
106106
ENABLE_AMAVIS: 0
107107
AMAVIS_LOGLEVEL: 0
108108
ENABLE_DNSBL: 0
@@ -131,6 +131,7 @@ deployment:
131131
LOGWATCH_SENDER:
132132
REPORT_RECIPIENT:
133133
REPORT_SENDER:
134+
LOGROTATE_COUNT: 4
134135
LOGROTATE_INTERVAL: weekly
135136
POSTFIX_REJECT_UNKNOWN_CLIENT_HOSTNAME: 0
136137
POSTFIX_INET_PROTOCOLS: all
@@ -147,7 +148,7 @@ deployment:
147148
SA_TAG: 2.0
148149
SA_TAG2: 6.31
149150
SA_KILL: 10.0
150-
SA_SPAM_SUBJECT: '***SPAM*** '
151+
SPAM_SUBJECT: '***SPAM*** '
151152

152153
# -----------------------------------------------
153154
# --- Fetchmail Section -------------------------
@@ -271,6 +272,27 @@ deployment:
271272
## Optionally specify tolerations for the deployment
272273
tolerations: []
273274

275+
## Optionally specify initContainers
276+
initContainers: []
277+
# - name: init
278+
# image: alpine:3
279+
# command: [sh, -c]
280+
# args:
281+
# - echo "Hello, world!" > /mnt/extra-storage/test
282+
# volumeMounts:
283+
# - name: extra-storage
284+
# mountPath: /mnt/extra-storage
285+
286+
## Optionally specify a list of extra mounts to add (normally used with extraVolumes)
287+
extraVolumeMounts: []
288+
# - name: extra-storage
289+
# mountPath: /mnt/extra-storage
290+
291+
## Optionally specify a list of extra volumes to add
292+
extraVolumes: []
293+
# - name: extra-storage
294+
# emptyDir: {}
295+
274296
service:
275297
## What scope the service should be exposed in. One of:
276298
## - LoadBalancer (to the world)
@@ -576,22 +598,30 @@ configMaps:
576598
-o milter_macro_daemon_name=ORIGINATING
577599
-o cleanup_service_name=sender-cleanup
578600
-o smtpd_upstream_proxy_protocol=haproxy
601+
602+
# Smtp with proxy
603+
12525 inet n - n - 1 postscreen
604+
-o syslog_name=postfix/smtp-proxy
605+
-o postscreen_upstream_proxy_protocol=haproxy
606+
-o postscreen_cache_map=btree:$data_directory/postscreen_10025_cache
579607
EOS
580608
{{- end }}
581609
582610
## The secrets key works the same way as the configs key. Use secrets to store sensitive information,
583611
## such as DKIM signing keys.
584612
##
585613
## secrets:
586-
## - name: rspamd.example.com # This is the name of the Secret
587-
## create: true # If true, create a new Secret
588-
## path: rspamd.dkim.rsa-2048-mail-example.com.private.txt
589-
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
614+
## rspamd.example.com:
615+
## name: rspamd.example.com # This is the name of the Secret
616+
## create: true # If true, create a new Secret
617+
## path: rspamd.dkim.rsa-2048-mail-example.com.private.txt
618+
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
590619
##
591-
## - name: rspamd.dkim.rsa-2048-mail-example.com.public
592-
## create: true
593-
## path: rspamd/dkim/rsa-2048-mail-example.com.public
594-
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
620+
## rspamd.dkim.rsa-2048-mail-example.com.public:
621+
## name: rspamd.dkim.rsa-2048-mail-example.com.public
622+
## create: true
623+
## path: rspamd/dkim/rsa-2048-mail-example.com.public
624+
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
595625
##
596626
## If you set the create key to false, then you must manually create the ConfigMaps before deploying the chart.
597627
##

0 commit comments

Comments
 (0)