[sisyphus] Настройка Courier IMAP

Dmitry Lebkov =?iso-8859-1?q?dima_=CE=C1_sakhalin=2Eru?=
Ср Окт 30 10:51:18 MSK 2002


On Wed, 30 Oct 2002 09:32:01 +0300
Прокопьев Евгений <john на rmts.donpac.ru> wrote:

> Dmitry Lebkov wrote:
> 
> > В пакете есть скрипт /etc/rc.d/init.d/courier-authdaemon. Он должен
> > выполнятся до /etc/rc.d/init.d/courier-imap или courier-pop3d. Он
> > запускает соответствующий демон, обеспечивающий авторизацию.
> 
> Вот что я пытался сделать
> 
> [root на john root]# service courier-authdaemon stop
> Shutting down Courier-IMAP authdaemon.plain: 
>                                                             [  OK  ]
> [root на john root]# service courier-imapd stop
> Shutting down Courier IMAP daemon: 
>                                                             [  OK  ]
> [root на john root]# service courier-authdaemon start
> Starting Courier-IMAP authdaemon.plain: 
>                                                             [  OK  ]
> [root на john root]# service courier-imapd start
> Starting Courier IMAP daemon: 
>                                                             [  OK  ]

Вот это очень интересно - т.е. дважды сделан start и оба раза
сервер стартовал? А откуда "дровишки", в смысле init-скрипты?
Я у себя этого воспроизвести не могу.

$ rpm -qa | grep courier
courier-imap-doc-1.5.3-alt1
courier-imap-utils-1.5.3-alt1
courier-imap-1.5.3-alt1

У тебя пакет самосборный или пересобранный из Сизифа?

> [root на john root]# service courier-authdaemon status
> authdaemond.plain (pids 3346 3345 3344 3343 3342 3341 3340 3339 3338 
> 3337 3336 3335 3334 3333 3332 3331 3330 3329 3328 3327 3326 3325 3324 
> 3323 3322 3321 3320 3319 3318 3317 3316 3315 3314 3313 3312 3311 3310 
> 3309 3308 3307 3306 3305 3304 3303 3302 3301 3298 3297 3296 3295 3294) 
> are running...
> [root на john root]# ps auxw | grep 3346
> root      3346  0.0  0.4  2260  612 ?        S    09:25   0:00 
> /usr/lib/courier-imap/authlib/authdaemond.plain start
> root      3378  0.0  0.4  1680  544 pts/1    S    09:25   0:00 grep 3346
> [root на john root]# netstat -pan --inet | grep 143
> tcp        0      0 127.0.0.1:143           0.0.0.0:* 
> LISTEN      3361/couriertcpd
> tcp        0      0 127.0.0.1:1039          127.0.0.1:143 
> CLOSE_WAIT  2946/kmailR9B8zb.sl
> [root на john root]# telnet localhost 143
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> * OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.  See 
> COPYING for distribution information.
> 
> Однако kmail не говорит ничего при попытке доставить почту (и не 
> доставляет ее), а mozilla говорит: "В соединении с сервером localhost 
> отказано"

А что в логах (/var/log/maillog)?

Так. Настрой и запусти POP3-демона из пакета courier-imap. С ним проще
проверяться. После запуска сервера:

$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user test
+OK Password required.
pass test
+OK logged in.
quit
+OK Bye-bye.

Т.е. используем имя test и пароль test дла входа в почтовый ящик. Диалог должен
соответствовать приведенному выше.

WBR, Dmitry Lebkov



Подробная информация о списке рассылки Sisyphus