@ -70,6 +70,15 @@ data:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
{{ if .Values.nginx.noAuthSmtpServerIP -}}
location = /noauth {
add_header Auth-Status OK;
add_header Auth-Server {{ .Values.nginx.noAuthSmtpServerIP }};
add_header Auth-Port 25;
return 204;
{{- end }}
@ -33,6 +33,18 @@ data:
xclient on;
proxy_pass_error_message on;
noauthsmtp.conf: |-
server {
listen 25;
server_name localhost;
protocol smtp;
smtp_auth none;
smtp_capabilities none;
auth_http localhost:8080/noauth;
ssl.conf: |-
ssl_certificate /etc/nginx/ssl/tls.crt;
ssl_certificate_key /etc/nginx/ssl/tls.key;
@ -20,8 +20,12 @@ nginx:
- name: smtp
number: 587
protocol: TCP
- name: noauthsmtp
number: 25
annotations: {}
loadBalancerIP: ""
noAuthSmtpServerIP: ""
certificate:
issuer: letsencrypt-staging
issuerKind: ClusterIssuer