email_server: Open port 25 and document EMAIL_GATEWAY_PATTERN.

This commit is contained in:
Alex Vandiver
2025-07-01 11:50:01 -04:00
committed by Tim Abbott
parent 6a05ce7f86
commit a043d68b2d
5 changed files with 16 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ COPY entrypoint.sh /sbin/entrypoint.sh
COPY certbot-deploy-hook /sbin/certbot-deploy-hook
VOLUME ["$DATA_DIR"]
EXPOSE 80 443
EXPOSE 25 80 443
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["app:run"]

View File

@@ -59,6 +59,7 @@ services:
## Set this up if you plan to use your own CA certificate bundle for building
# CUSTOM_CA_CERTIFICATES:
ports:
- "25:25"
- "80:80"
- "443:443"
environment:
@@ -88,6 +89,10 @@ services:
## It seems that the email server needs to use ssl or tls and can't be used without it
SETTING_EMAIL_USE_SSL: "False"
SETTING_EMAIL_USE_TLS: "True"
## Uncomment to enable the incoming email gateway. You will need to
## ensure that email to emaildomain.example.com is routed to this host
## (e.g. via MX record)
# SETTING_EMAIL_GATEWAY_PATTERN: "%s@emaildomain.example.com"
ZULIP_AUTH_BACKENDS: "EmailAuthBackend"
## Uncomment this when configuring the mobile push notifications service
# SETTING_ZULIP_SERVICE_PUSH_NOTIFICATIONS: "True"

View File

@@ -47,6 +47,9 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: smtp
containerPort: 25
protocol: TCP
- name: http
containerPort: 80
protocol: TCP

View File

@@ -137,6 +137,9 @@ spec:
# - name: SETTING_PUSH_NOTIFICATION_BOUNCER_URL
# value: 'https://push.zulipchat.com'
ports:
- containerPort: 25
name: smtp
protocol: TCP
- containerPort: 80
name: http
protocol: TCP

View File

@@ -8,6 +8,10 @@ spec:
selector:
app: zulip
ports:
- name: smtp
port: 25
targetPort: 25
protocol: TCP
- name: http
port: 80
targetPort: 80