[Dovecot] default_mail_env %d problem

Timo Sirainen tss at iki.fi
Fri Aug 4 00:16:48 EEST 2006


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 at 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060804/2e61142c/attachment-0001.pgp 


More information about the dovecot mailing list