免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: 天天兄弟
打印 上一主题 下一主题

请教solaris 10 关闭pop3功能,关闭110端口 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-12-26 23:58 |只看该作者
原帖由 midc 于 2009-12-25 18:04 发表
在telnet的机器上抓包吧

恩 抓包是王道。看到底是谁在应答

论坛徽章:
0
12 [报告]
发表于 2009-12-29 11:29 |只看该作者
其实我想知道的是POP3怎么关?

论坛徽章:
0
13 [报告]
发表于 2009-12-29 20:47 |只看该作者
How to enable IMAP and POP3 on Solaris 10

In Solaris 10 internet service management using inetd is deprecated. Instead, you should use the System Managemen Facility. This uses an XML descriptor to describe how to start a service, how to stop it and how to restart it if it fails. Rather than writing the descriptor from scratch, Solaris provides a tool to migrate typical inetd.conf entries to the new XML format.
I used this to make the provided pop3d and inetd daemons be SMF complient.

I created a new file & added the two lines which I would have used to start the services if Solaris still used inetd.

cd /tmp
echo "pop3 stream tcp nowait root /usr/sfw/sbin/tcpd /opt/sfw/sbin/ipop3d" > imapd.txt
echo "imap stream tcp nowait root /usr/sfw/sbin/tcpd /opt/sfw/sbin/imapd" >> imapd.txt
/usr/sbin/inetconv -i /tmp/imapd.txt -o /tmp/
cp pop3-tcp.xml /var/svc/manifest/network/
cp imap-tcp.xml /var/svc/manifest/network/
svccfg import /var/svc/manifest/network/pop3-tcp.xml
svccfg import /var/svc/manifest/network/imap-tcp.xml
svcadm disable svc:/network/pop3/tcp:default
svcadm enable svc:/network/pop3/tcp:default
svcadm disable svc:/network/imap/tcp:default
svcadm enable svc:/network/imap/tcp:default
Lets try it and see if it works

bash-3.00# telnet localhost pop3
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 localhost v2003.83 server ready

Yus, seems to be OK...

论坛徽章:
0
14 [报告]
发表于 2010-01-09 09:59 |只看该作者
netstat -an|grep .110

论坛徽章:
0
15 [报告]
发表于 2010-01-11 11:14 |只看该作者

回复 #14 shot 的帖子

这句是查看什么的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP