стоит сабж. аутенфицирую юзеров через систему.
вот логи что пишет.
не могу натсроить аутенфикацию. как не одно выскакивает так другоеovecot: Sep 29 14:55:33 Info: auth(default): client in: AUTH 1 PLAIN service=POP3 lip=192.168.1.10 rip=192.168.1.2 resp=AHBlcmxpawBhZDBzNXM=
dovecot: Sep 29 14:55:33 Info: auth(default): passwd(perlik,192.168.1.2): lookup
dovecot: Sep 29 14:55:33 Info: auth(default): client out: OK 1 user=perlik
dovecot: Sep 29 14:55:33 Info: auth(default): master in: REQUEST 13 50152 1
dovecot: Sep 29 14:55:33 Info: auth(default): passwd(perlik,192.168.1.2): lookup
dovecot: Sep 29 14:55:33 Info: auth(default): master out: USER 13 perlik system_user=perlik uid=1001 gid=0 home=/home/perlik
dovecot: Sep 29 14:55:33 Info: pop3-login: Login: user=<perlik>, method=PLAIN, rip=192.168.1.2, lip=192.168.1.10
dovecot: Sep 29 14:55:33 Info: POP3(perlik): Effective uid=1001, gid=0
dovecot: Sep 29 14:55:33 Info: POP3(perlik): mbox: data=/var/mail/perlik
dovecot: Sep 29 14:55:33 Info: POP3(perlik): mbox: INBOX defaulted to /var/mail/perlik/inbox
dovecot: Sep 29 14:55:33 Info: POP3(perlik): mbox: root=/var/mail/perlik, index=/var/mail/perlik, inbox=/var/mail/perlik/inbox
dovecot: Sep 29 14:55:33 Error: POP3(perlik): mbox root directory can't be a file: /var/mail/perlik (http://wiki.dovecot.org/MailLocation/Mbox)
dovecot: Sep 29 14:55:33 Error: POP3(perlik): mkdir_parents(/var/mail/perlik/.imap/INBOX) failed: Not a directory
dovecot: Sep 29 14:55:33 Error: POP3(perlik): stat() failed with mbox file /var/mail/perlik/inbox: Not a directory
dovecot: Sep 29 14:55:33 Error: POP3(perlik): Couldn't init INBOX: Internal error occurred. Refer to server log for more information. [2007-09-29 14:55:33]
dovecot: Sep 29 14:55:33 Info: POP3(perlik): Mailbox init failed top=0/0, retr=0/0, del=0/0, size=0
вот мой конфиг
base_dir = /var/run/dovecot/protocols = pop3 imap
protocol pop3 {
listen = *:110
}
protocol imap {
listen = *:143
}log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
#ssl_cert_file = /etc/ssl/certs/dovecot.pem
#ssl_key_file = /etc/ssl/private/dovecot.key
ssl_disable = yes
disable_plaintext_auth = nologin_greeting = Welcome to IMAP/POP3 server
mail_location = mbox:/var/mail/%u
mail_debug = yesfirst_valid_uid = 0
first_valid_gid = 0pop3_uidl_format = %m
auth_verbose = yesauth_debug = yes
auth_debug_passwords = yes
perlik@router$ cat /usr/local/etc/dovecot.conf
base_dir = /var/run/dovecot/protocols = pop3 imap
protocol pop3 {
listen = *:110
}
protocol imap {
listen = *:143
}log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
#ssl_cert_file = /etc/ssl/certs/dovecot.pem
#ssl_key_file = /etc/ssl/private/dovecot.key
ssl_disable = yes
disable_plaintext_auth = nologin_greeting = Welcome to IMAP/POP3 server
mail_location = mbox:/var/mail/%u
mail_debug = yesfirst_valid_uid = 0
first_valid_gid = 0pop3_uidl_format = %m
auth_verbose = yesauth_debug = yes
auth_debug_passwords = yes
auth default {
# Разделенный пробелами список, используемых механизмов аутентификации:
# plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
mechanisms = plain# passdb sql {
# args = /usr/local/etc/dovecot-mysql.conf
#}
#
#userdb sql {
# args = /usr/local/etc/dovecot-mysql.conf
# }passdb passwd {
args = /etc/passwd
}
userdb passwd {
args = /etc/passwd
}
user = root}
>[оверквотинг удален]
>
>passdb passwd {
> args = /etc/passwd
>}
>userdb passwd {
> args = /etc/passwd
>}
>user = root
>
> }может это поможет? http://www.opennet.me/docs/RUS/exit_setup/dovecot.html
>[оверквотинг удален]
>> args = /etc/passwd
>>}
>>userdb passwd {
>> args = /etc/passwd
>>}
>>user = root
>>
>> }
>
>может это поможет? http://www.opennet.me/docs/RUS/exit_setup/dovecot.htmlнет я читалд эту статью через мускуль тоже самое. но мне важно что бы именно через системного пользователя было. Пока меня интересует тока эта версия
>[оверквотинг удален]
>auth_verbose = yes
>
>auth_debug = yes
>
>auth_debug_passwords = yes
>
>perlik@router$ cat /usr/local/etc/dovecot.conf
>base_dir = /var/run/dovecot/
>
>protocols = pop3 imapПотом обязательно настройте:
protocols = imap imaps pop3 pop3s>[оверквотинг удален]
>
>
>#ssl_cert_file = /etc/ssl/certs/dovecot.pem
>#ssl_key_file = /etc/ssl/private/dovecot.key
>ssl_disable = yes
>disable_plaintext_auth = no
>
>login_greeting = Welcome to IMAP/POP3 server
>
>mail_location = mbox:/var/mail/%umail_location = mbox:/var/imap/%u:INBOX=/var/mail/%u:INDEX=/var/imap-cache/%u
Вам нужно разнести ящики для IMAP и для IMAP-Cache
у /var/imap 755 dovecot:dovecot
у /var/imap-cache 777 dovecot:dovecot
попробуйте сначала 755, а потом, если не получится 777
>
>
>mail_debug = yes
>
>first_valid_uid = 0
>first_valid_gid = 0
>
>pop3_uidl_format = %mpop3_uidl_format = %08Xu%08Xv
# POP3 UIDL format to use. You can use following variables:
#
# %v - Mailbox UIDVALIDITY
# %u - Mail UID
# %m - MD5 sum of the mailbox headers in hex (mbox only)
# %f - filename (maildir only)
#
# If you want UIDL compatibility with other POP3 servers, use:
# UW's ipop3d : %08Xv%08Xu
# Courier version 0 : %f
# Courier version 1 : %u
# Courier version 2 : %v-%u
# Cyrus (<= 2.1.3) : %u
# Cyrus (>= 2.1.4) : %v.%u
# Older Dovecots : %v.%u
# tpop3d : %MfПокажите еще:
uname -a
pkg_info | grep dovecot
версию своего MTA
и формат ящиков в /var/mail - maildir или mailbox?