Am incercat urmatoarele configurari pentru dovecot, cu scopul de a ma
putea autentifica pe baza fisierelor /etc/passwd si /etc/shadow prin
pop3 si imap, pentru a "culege mesajele".
protocols = imap pop3
log_path = /var/amavis/dovecot.log
ssl_disable = yes
login_chroot = yes
login_user = dovecot
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
login_log_format = %$: %s
protocol imap {
}
protocol pop3 {
pop3_uidl_format = temp/%08Xu%08Xv
}
auth_debug = yes
auth_debug_passwords = yes
auth default {
mechanisms = plain
passdb passwd {
}
passdb shadow {
}
userdb passwd {
}
user = root
}
dict {
}
plugin {
}
La: cat /var/amavis/dovecot.log
dovecot: Sep 13 13:04:16 Info: auth(default): client in: AUTH 1
PLAIN service=POP3 lip=192.168.0.50 rip=192.168.0.10
resp=AGRvcnUAYWxpYmFiYTIwMDU=
dovecot: Sep 13 13:04:16 Info: auth(default): pam(doru,192.168.0.10):
pam_authenticate() failed: Authentication failure
dovecot: Sep 13 13:04:16 Info: auth(default):
passwd(doru,192.168.0.10): password mismatch
dovecot: Sep 13 13:04:16 Info: auth(default): client out: OK 1
user=doru
dovecot: Sep 13 13:04:16 Info: auth(default): master in: REQUEST
11 4578 1
dovecot: Sep 13 13:04:16 Info: auth(default): master out: USER 11
doru system_user=doru uid=500 gid=500 home=/home/doru
dovecot: Sep 13 13:04:16 Info: pop3-login: Login: user=<doru>,
method=PLAIN, rip=192.168.0.10, lip=192.168.0.50
dovecot: Sep 13 13:04:16 Error: POP3(doru):
open(/var/mail/.temp.mail.b.ro.5978.bb8f587caec4c9f7) failed:
Permission denied
dovecot: Sep 13 13:04:16 Error: POP3(doru): file_lock_dotlock() failed
with mbox file /var/mail/doru: Permission denied
dovecot: Sep 13 13:04:16 Info: POP3(doru): Mailbox init failed
top=0/0, retr=0/0, del=0/0, size=0
Ce am gresit? Postfix-ul trimite mail-urile in /var/mail, iar
drepturile pe acea zona sunt:
ls -al /var/mail/
total 60
drwxrwxr-x 2 root mail 4096 Sep 13 12:51 .
drwxr-xr-x 19 root root 4096 Sep 12 15:10 ..
-rw-rw---- 1 doru mail 14549 Sep 13 12:45 doru
-rw------- 1 root mail 16658 Sep 13 04:02 root
Dovecot trebuie sa aiba drepturi in /var/mail/ ?
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug