Dont use proxy_proto by default for streams, disable default mail server configuration
Some checks failed
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 25s
Create Docker Image / Build Docker Image (arm64) (push) Failing after 54s
Create Docker Image / Final Docker Image Manifest (push) Has been skipped

This commit is contained in:
Deon George 2024-10-14 14:07:26 +11:00
parent 2eb94a9106
commit 9cfb210ebb
2 changed files with 20 additions and 20 deletions

View File

@ -14,23 +14,25 @@ mail {
#ssl_session_cache shared:SSL:10m;
#ssl_session_timeout 10m;
server {
listen 25;
listen 465 ssl;
protocol smtp;
smtp_auth login plain cram-md5;
}
include /etc/nginx/mail.d/*.conf;
server {
listen 110;
listen 995 ssl;
protocol pop3;
pop3_auth plain apop cram-md5;
}
server {
listen 143;
listen 993 ssl;
protocol imap;
}
# server {
# listen 25;
# listen 465 ssl;
# protocol smtp;
# smtp_auth login plain cram-md5;
# }
#
# server {
# listen 110;
# listen 995 ssl;
# protocol pop3;
# pop3_auth plain apop cram-md5;
# }
#
# server {
# listen 143;
# listen 993 ssl;
# protocol imap;
# }
}

View File

@ -8,7 +8,5 @@ stream {
'$session_time "$upstream_addr" '
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
proxy_protocol on;
include /etc/nginx/stream.d/*.conf;
}