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 COPY certbot-deploy-hook /sbin/certbot-deploy-hook
VOLUME ["$DATA_DIR"] VOLUME ["$DATA_DIR"]
EXPOSE 80 443 EXPOSE 25 80 443
ENTRYPOINT ["/sbin/entrypoint.sh"] ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["app:run"] 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 ## Set this up if you plan to use your own CA certificate bundle for building
# CUSTOM_CA_CERTIFICATES: # CUSTOM_CA_CERTIFICATES:
ports: ports:
- "25:25"
- "80:80" - "80:80"
- "443:443" - "443:443"
environment: 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 ## 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_SSL: "False"
SETTING_EMAIL_USE_TLS: "True" 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" ZULIP_AUTH_BACKENDS: "EmailAuthBackend"
## Uncomment this when configuring the mobile push notifications service ## Uncomment this when configuring the mobile push notifications service
# SETTING_ZULIP_SERVICE_PUSH_NOTIFICATIONS: "True" # SETTING_ZULIP_SERVICE_PUSH_NOTIFICATIONS: "True"

View File

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

View File

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

View File

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