Gmail 客户端跳板

一直使用的是gmail的邮箱,关键经常还不能访问,简直就是操蛋~
本地使用客户端跟是麻烦的事情,经常要去找合适的host文件才可以。。。

# 安装服务
yum install -y xinetd
#配置文件
cat>/etc/xinetd.d/gmail<<EOF
service imap
{
type = UNLISTED
port = 993
bind = 0.0.0.0
socket_type = stream
wait = no
user = nobody
redirect = imap.gmail.com 993
per_source = UNLIMITED
cps = 100 2
}
service smtp-465
{
type = UNLISTED
port = 465
bind = 0.0.0.0
socket_type = stream
wait = no
user = nobody
redirect = smtp.gmail.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.gmail.com 587
per_source = UNLIMITED
cps = 100 2
}
EOF

# 启动服务
service xinetd restart

防火墙

iptables -I INPUT -p tcp --dport 465 -j ACCEPT
iptables -I INPUT -p tcp --dport 587 -j ACCEPT
iptables -I INPUT -p tcp --dport 993 -j ACCEPT
service iptables save
service iptables restart
service iptables status

DNSMasq

address=/smtp.gmail.com/173.248.163.237
address=/imap.gmail.com/173.248.163.237

本地配置host文件

173.248.163.237 smtp.gmail.com
173.248.163.237 imap.gmail.com

There are no comment yet.

HTML tag cannot be used in this comment.