This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
протокол_pop3 [2009/05/04 07:39] val created |
протокол_pop3 [2010/09/29 12:53] val removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Протокол POP3 ====== | ====== Протокол POP3 ====== | ||
+ | ===== Пример pop3 диалога ===== | ||
+ | <code> | ||
+ | server# telnet gate 110 | ||
+ | user mailuser | ||
+ | pass 123 | ||
+ | list | ||
+ | +OK 1 messages (810 octets) | ||
+ | 1 810 | ||
+ | . | ||
+ | top 1 0 | ||
+ | +OK 810 octets | ||
+ | Received: by gate.corpX.un (mbox mailuser) | ||
+ | (with Cubic Circle's cucipop (v1.31 1998/05/X) Thu Feb 2 18:12:X 2006) | ||
+ | … | ||
+ | retr 1 | ||
+ | +OK 810 octets | ||
+ | Received: by gate.corpX.un (mbox mailuser) | ||
+ | (with Cubic Circle's cucipop (v1.31 1998/05/X) Thu Feb 2 18:14:58 2006) | ||
+ | … | ||
+ | dele 1 | ||
+ | +OK Message 1 deleted | ||
+ | quit | ||
+ | +OK | ||
+ | </code> | ||
+ | |||
+ | ===== Настройка POP3 сервера ===== | ||
+ | |||
+ | ==== FreeBSD ==== | ||
+ | <code> | ||
+ | [gate:~ ] # pkg_add -r popper | ||
+ | |||
+ | [gate:~ ] # cat /etc/inetd.conf | ||
+ | ... | ||
+ | pop3 stream tcp nowait root /usr/local/libexec/popper popper | ||
+ | ... | ||
+ | |||
+ | [gate:~ ] # cat /etc/rc.conf | ||
+ | ... | ||
+ | inetd_enable=”YES” | ||
+ | ... | ||
+ | |||
+ | [gate:~ ] # /etc/rc.d/inetd start | ||
+ | </code> | ||
+ | |||
+ | ==== Ubuntu ==== | ||
+ | <code> | ||
+ | root@gate:~# apt-get install openbsd-inetd | ||
+ | |||
+ | root@gate:~# apt-get install qpopper | ||
+ | |||
+ | root@gate:~# grep pop /etc/inetd.conf | ||
+ | pop-3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.qpopper -f /etc/qpopper.conf | ||
+ | |||
+ | root@gate:~# /etc/init.d/openbsd-inetd start | ||
+ | </code> |