Chapter 3
[ 49 ]
ssl_session_cache shared:MAIL:10m;
ssl_certificate /usr/local/etc/nginx/mail.example.com.crt;
ssl_certificate_key /usr/local/etc/nginx/mail.example.com.key;
pop3_capabilities TOP USER;
imap_capabilities IMAP4rev1 UIDPLUS QUOTA;
smtp_capabilities PIPELINING 8BITMIME DSN;
pop3_auth apop cram-md5;
imap_auth login cram-md5;
smtp_auth login cram-md5;
server {
listen 25;
protocol smtp;
timeout 120000;
}
server {
listen 465;
protocol smtp;
ssl on;
}
server {
listen 587;
protocol smtp;
starttls on;
}
server {
listen 110;
protocol pop3;
starttls on;
}
server {
listen 995;
protocol pop3;
ssl on;
}
server {
listen 143;
protocol imap;
starttls on;
}
server {
listen 993;
protocol imap;
ssl on;
}
}