nginx代理腾讯企业邮箱

本小妞迷上赌 提交于 2020-10-06 11:44:59
  upstream   mail {
        server smtp.exmail.qq.com: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

image.png

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!