This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
протокол_pop3 [2009/06/17 16:17] val |
протокол_pop3 [2021/06/11 11:03] (current) admin [Пример диалога] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Протокол POP3 ====== | ====== Протокол POP3 ====== | ||
| - | ===== Пример pop3 диалога ===== | + | ===== Пример диалога ==== |
| <code> | <code> | ||
| - | server# telnet gate 110 | + | # telnet localhost 110 |
| - | user mailuser | + | </code><code> |
| - | pass 123 | + | user user1 |
| + | |||
| + | pass password1 | ||
| list | list | ||
| - | +OK 1 messages (810 octets) | + | |
| - | 1 810 | + | |
| - | . | + | |
| top 1 0 | 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 | 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 | dele 1 | ||
| - | +OK Message 1 deleted | + | |
| quit | quit | ||
| - | +OK | ||
| </code> | </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> | ||