August 2017
Intermediate to advanced
278 pages
8h 53m
English
As SMTP can run on multiple ports, we need to tell NGINX to load balance these ports as well. To do this, we simply define multiple listen lines within the server block:
server {
listen 25;
listen 485;
listen 581;
proxy_pass smtppool;
access_log /var/log/nginx/smtp-access.log smtplog;
}
With the server port (named $server_port) logged in our custom log format, we're still able to trace issues down to a specific port.
Read now
Unlock full access