xinetd 을 이용한 POP3 (110)
/etc/xinetd.d/ipop3
service pop3 { disable = yes flags = REUSE socket_type = stream wait = no protocol = tcp user = root server = /usr/local/lib/popper server_args = qpopper -s port = 110 } |
disable = no 로 되어야지, pop3를 사용 가능해 집니다.
(참고: https://www.redhat.com/archives/seawolf-list/2002-January/msg00079.html )
Restarting xinetd 재시작하기
# /etc/init.d/xinetd restart or # /sbin/service xinetd restart
(참고: https://www.redhat.com/archives/rhl-list/2004-February/msg02423.html )
POP3 어카운트 체크하기
You can use telnet
to connect to the mail server and talk POP3 to check your credentials:
$ telnet pop.gmx.net 110
Trying 212.227.17.185...
Connected to pop.gmx.net.
Escape character is '^]'.
+OK POP server ready H migmx028 0MAbjW-1YwF4D0ml8-00BiVl
USER spamaccount80@gmx.de
+OK password required for user "spamaccount80@gmx.de"
PASS typeyourpassword
-ERR Error retrieving your GMX emails. Your connection is not encrypted. Enable SSL in your mail program. Instructions: https://ssl.gmx.net
Connection closed by foreign host.
Well, this failed because most mail server require a SSL/TLS encrypted session nowadays. So instead of using telnet
you can use socat
:
$ socat - OPENSSL:pop.gmx.net:995
+OK POP server ready H migmx113 0MC062-1Yzese0KO7-00AVNE
USER spamaccount80@gmx.de
+OK password required for user "spamaccount80@gmx.de"
PASS typeyourpassword
+OK mailbox "spamaccount80@gmx.de" has 13518 messages (191718918 octets) H migmx113
If you type a wrong password, the server will probably say something like:
-ERR authentication failed
Or instead of socat
you probably have openssl
laying around:
$ openssl s_client -quiet -connect pop.gmx.net:995
depth=2 C = DE, O = Deutsche Telekom AG, OU = T-TeleSec Trust Center, CN = Deutsche Telekom Root CA 2
verify error:num=19:self signed certificate in certificate chain
verify return:0
+OK POP server ready H migmx108 0MWpjO-1YiwnK3ZfP-00XoK
아래 글 출처:
http://cafe.daum.net/kssoft/8YGR/210?docid=5rCG|8YGR|210|20070418175018&q=host.allow%20httpd%3A
(로그인하지 않으셔도 가능)