On Fri, 2006-08-04 at 00:55 +0400, Den Zinevitch wrote:
On Fri, 2006-08-04 at 00:37 +0400, Den Zinevitch wrote:
Hi all. I`ve got such problem: default_mail_env = mbox:%h/mail/:INBOX=/var/mail/domain.net.ua/%n - it works. But when I say: default_mail_env = mbox:%h/mail/:INBOX=/var/mail/%d/%n - it not. Log: Aug 3 22:51:19 serv dovecot: POP3(user): mbox: data=/home/user/mail/:INBOX=/var/mail//user Aug 3 22:51:19 serv dovecot: POP3(user): mbox: root=/home/user/mail, index=/home/user/mail, inbox=/var/mail//user Aug 3 22:51:19 serv dovecot: pop3-login: Login: user=<user>, method=PLAIN, rip=xx.xx.xx.x, lip=xxx.xxx.xxx.xxx Aug 3 22:51:19 serv dovecot: POP3(user): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
That means that the user didn't log in as user@domain.net.ua, or that you're stripping away the domain part. Are you using SQL passdb or something else?
ATTACHMENT: application/pgp-signature (signature.asc)
No SQL. Just simple auth from /etc/master.passwd. I have default config. User logs in, because in first case, when I say folder directly ( default_mail_env = mbox:%h/mail/:INBOX=/var/mail/domain.net.ua/%n ) - it works. What may be the reason of stripping away the domain part ?
Well, that really sounds to me like the user doesn't ever give the @domain part at all. If you think that it is sent, set auth_debug=yes and look at the logs. Since you're using passwd as passdb, there's nothing that should be stripping the domain.