Remove imap and pop3 ports proxy
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
196d449a89
commit
e5b216f749
|
@ -67,30 +67,10 @@ stream {
|
|||
server mail.m-labs.hk:25;
|
||||
}
|
||||
|
||||
upstream pop3_backend {
|
||||
server mail.m-labs.hk:110;
|
||||
}
|
||||
|
||||
upstream imap_backend {
|
||||
server mail.m-labs.hk:143;
|
||||
}
|
||||
|
||||
upstream smtps_backend {
|
||||
server mail.m-labs.hk:465;
|
||||
}
|
||||
|
||||
upstream submission_backend {
|
||||
server mail.m-labs.hk:587;
|
||||
}
|
||||
|
||||
upstream imaps_backend {
|
||||
server mail.m-labs.hk:993;
|
||||
}
|
||||
|
||||
upstream pop3s_backend {
|
||||
server mail.m-labs.hk:995;
|
||||
}
|
||||
|
||||
# SMTP
|
||||
server {
|
||||
listen 25;
|
||||
|
@ -98,45 +78,10 @@ stream {
|
|||
proxy_protocol on;
|
||||
}
|
||||
|
||||
# POP3
|
||||
server {
|
||||
listen 110;
|
||||
proxy_pass pop3_backend;
|
||||
proxy_protocol on;
|
||||
}
|
||||
|
||||
# IMAP
|
||||
server {
|
||||
listen 143;
|
||||
proxy_pass imap_backend;
|
||||
proxy_protocol on;
|
||||
}
|
||||
|
||||
# SMTPS (Secure SMTP)
|
||||
server {
|
||||
listen 465;
|
||||
proxy_pass smtps_backend;
|
||||
proxy_protocol on;
|
||||
}
|
||||
|
||||
# Submission (Authenticated SMTP)
|
||||
server {
|
||||
listen 587;
|
||||
proxy_pass submission_backend;
|
||||
proxy_protocol on;
|
||||
}
|
||||
|
||||
# IMAPS (Secure IMAP)
|
||||
server {
|
||||
listen 993;
|
||||
proxy_pass imaps_backend;
|
||||
proxy_protocol on;
|
||||
}
|
||||
|
||||
# POP3S (Secure POP3)
|
||||
server {
|
||||
listen 995;
|
||||
proxy_pass pop3s_backend;
|
||||
proxy_protocol on;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue