Связка Dovecot+Postfix+Mysql Немогу забрать почту с postfix
root@posts:/home/vmail# telnet 192.168.4.25 110
Trying 192.168.4.25...
Connected to 192.168.4.25.
Escape character is '^]'.
+OK Dovecot ready.
user andrey
+OK
pass dr759123
-ERR Authentication failed.
dovecot.conf Код:
protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
mail_location = maildir:/home/vmail/%d/%n
mail_privileged_group = vmail
mail_debug = yes
verbose_proctitle = yes
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = andrey@dracon753.ru
mail_plugins = sieve
global_script_path = /home/vmail/globalsieverc
}
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
auth default {
mechanisms = plain login
passdb pam {
}
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
userdb passwd {
}
userdb static {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}
user = root
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}
###################
dovecot-sql.conf
###################
driver = mysql
connect = host=127.0.0.1 dbname=mail user=mailadmin password=123759
default_pass_scheme = PLAIN-MD5
password_query = SELECT email as user, password FROM users WHERE email='%u';
root@posts:/etc/dovecot#
логи Код:
2011-05-23 10:45:57 auth-worker(default): Info: pam(andrey,192.168.4.25): lookup service=dovecot
2011-05-23 10:45:57 auth-worker(default): Info: pam(andrey,192.168.4.25): #1/1 style=1 msg=Password:
2011-05-23 10:45:59 auth-worker(default): Info: pam(andrey,192.168.4.25): pam_authenticate() failed: Authentication failure (password mismatch?) (given password: dr759123)
2011-05-23 10:45:59 auth-worker(default): Info: sql(andrey,192.168.4.25): query: SELECT email as user, password FROM users WHERE email='andrey';
2011-05-23 10:45:59 auth-worker(default): Info: sql(andrey,192.168.4.25): unknown user
2011-05-23 10:46:01 auth(default): Info: client out: FAIL 1 user=andrey
2011-05-23 10:46:30 pop3-login: Info: Aborted login (auth failed, 1 attempts): user=<andrey>, method=PLAIN, rip=192.168.4.25, lip=192.168.4.25, secured