|
|
@ -250,6 +250,7 @@ mail {
|
|
|
|
listen 10025;
|
|
|
|
listen 10025;
|
|
|
|
protocol smtp;
|
|
|
|
protocol smtp;
|
|
|
|
smtp_auth plain;
|
|
|
|
smtp_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 10025;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Default IMAP server for the webmail (no encryption, but authentication)
|
|
|
|
# Default IMAP server for the webmail (no encryption, but authentication)
|
|
|
@ -257,6 +258,7 @@ mail {
|
|
|
|
listen 10143;
|
|
|
|
listen 10143;
|
|
|
|
protocol imap;
|
|
|
|
protocol imap;
|
|
|
|
smtp_auth plain;
|
|
|
|
smtp_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 10043;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# SMTP is always enabled, to avoid losing emails when TLS is failing
|
|
|
|
# SMTP is always enabled, to avoid losing emails when TLS is failing
|
|
|
@ -271,6 +273,7 @@ mail {
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
protocol smtp;
|
|
|
|
protocol smtp;
|
|
|
|
smtp_auth none;
|
|
|
|
smtp_auth none;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# All other protocols are disabled if TLS is failing
|
|
|
|
# All other protocols are disabled if TLS is failing
|
|
|
@ -283,6 +286,7 @@ mail {
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
protocol imap;
|
|
|
|
protocol imap;
|
|
|
|
imap_auth plain;
|
|
|
|
imap_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 143;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
server {
|
|
|
@ -293,6 +297,7 @@ mail {
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
protocol pop3;
|
|
|
|
protocol pop3;
|
|
|
|
pop3_auth plain;
|
|
|
|
pop3_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 110;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
server {
|
|
|
@ -303,6 +308,7 @@ mail {
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
protocol smtp;
|
|
|
|
protocol smtp;
|
|
|
|
smtp_auth plain;
|
|
|
|
smtp_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 587;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{% if TLS %}
|
|
|
|
{% if TLS %}
|
|
|
@ -311,6 +317,7 @@ mail {
|
|
|
|
listen [::]:465 ssl;
|
|
|
|
listen [::]:465 ssl;
|
|
|
|
protocol smtp;
|
|
|
|
protocol smtp;
|
|
|
|
smtp_auth plain;
|
|
|
|
smtp_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 465;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
server {
|
|
|
@ -318,6 +325,7 @@ mail {
|
|
|
|
listen [::]:993 ssl;
|
|
|
|
listen [::]:993 ssl;
|
|
|
|
protocol imap;
|
|
|
|
protocol imap;
|
|
|
|
imap_auth plain;
|
|
|
|
imap_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 993;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
server {
|
|
|
@ -325,6 +333,7 @@ mail {
|
|
|
|
listen [::]:995 ssl;
|
|
|
|
listen [::]:995 ssl;
|
|
|
|
protocol pop3;
|
|
|
|
protocol pop3;
|
|
|
|
pop3_auth plain;
|
|
|
|
pop3_auth plain;
|
|
|
|
|
|
|
|
auth_http_header Auth-Port 995;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|