При попытки получить ее от туда батом по pop3 происходит облом. По imap я еще не пробовал.
В логе :
dovecot: Aug 23 00:09:36 Info: pop3-login: Disconnected (auth failed, 1 attempts): user=<aaa>, method=PLAIN, rip=9.11.8.22, lip=1.2.3.4
подконнектится телнетом
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK dovecot MUA ready
user aaa
+OK
pass bbbb
-ERR Authentication failed.
Connection closed by foreign host.
Все кругом обшарил но не нашел причин.
Даю условия задачи:
Система: FreeBSD mail.aol.spb.ru 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #1: Sat Aug 9 14:46:13 MSD 2008
Dovecot 1.1.2
dovecot.conf
Код: Выделить всё
base_dir = /var/run/dovecot/
protocols = imap pop3
listen = *
ssl_disable = yes
disable_plaintext_auth = no
shutdown_clients = yes
log_path = /var/log/dovecot.log
log_timestamp = "%b %d %H:%M:%S "
login_dir = /var/run/dovecot/login
login_chroot = yes
login_user = dovecot
login_process_size = 64
login_process_per_connection = yes
login_processes_count = 3
login_max_processes_count = 64
login_greeting = dovecot MUA ready
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
login_log_format = %$: %s
verbose_proctitle = yes
first_valid_uid = 25
first_valid_gid = 0
mail_access_groups = mailmull
mail_debug = yes
mail_location = maildir:/var/mail/exim/%d/%n
umask = 0077
protocol imap {
imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
postmaster_address = system@domen.ru
auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
mechanisms = plain
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = mailnull
#group = mail
}
}
passdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
userdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
user = root
}
plugin {
}
Код: Выделить всё
driver = mysql
connect = host=localhost dbname=exim user=exim password=exim
default_pass_scheme = PLAIN
password_query = SELECT `username` as `user`, `password` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'
user_query = SELECT `maildir` AS `home`, 26 AS `uid`, 26 AS `gid` FROM `mailbox` WHERE `username` = '%n@%d' AND `active`='1'