首页 > Web开发 > 详细

使用 Xinetd 端口代理

时间:2016-01-23 08:02:06      阅读:198      评论:0      收藏:0      [点我收藏+]

使用 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 端口代理

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!