upstream mail {
server :465;
}
server {
access_log /tmp/c.log mains;
listen 84;
proxy_connect_timeout 10s;
proxy_timeout 30s; #后端连接超时时间
proxy_pass mail;
}nginx代理腾讯企业邮箱
/sbin/iptables -t filter -A OUTPUT -p tcp --dport 84 -d 192.168.10.247 -m comment --comment "#腾讯企业邮箱#" -j ACCEPT #邮件协议
ACCEPT tcp -- 0.0.0.0/0 192.168.10.247 tcp dpt:84 /* #腾讯企业邮箱# */
然后用 /etc/hosts

















