码迷,mamicode.com
首页 > Web开发 > 详细

使用 Xinetd 端口代理

时间:2016-01-23 08:03:46      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:xinetd; 端口代理

使用 Xinetd 端口代理 Gmail 的 SMTP:

此法针对客户端,Web 端请自己想办法

yum install -y xinetd

cat /etc/xinetd.d/qqmail

service smtp-465
{
 type = UNLISTED
    port = 465
    bind = 0.0.0.0
    socket_type = stream
    wait = no
    user = nobody
    redirect = smtp.exmail.qq.com 465
    per_source = UNLIMITED
    cps = 100 2
}
service smtp-587
{
    type = UNLISTED
    port = 587
    bind = 0.0.0.0
    socket_type = stream
    wait = no
    user = nobody
    redirect = smtp.exmail.qq.com 587
    per_source = UNLIMITED
    cps = 100 2
 }


修改本地host指向代理即可通过客户端发邮件:

xxx.xxx.xxx.xxx smtp.exmail.qq.com



使用 Xinetd 端口代理

标签:xinetd; 端口代理

原文地址:http://374400.blog.51cto.com/364400/1737768

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!