Dovecot with Maildir

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Feb 2 07:34:20 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 2 Feb 2016, John Williams wrote:

> Dovecot logs as follows:
> Feb  1 19:36:34 speedy dovecot: imap-login: Login: user=<rsmith>, method=PLAIN, rip=10.163.195.83, lip=10.163.195.82, mpid=7481, session=<EbuSsb4qPQCto8NT>
> Feb  1 19:36:37 speedy dovecot: imap-login: Login: user=<rsmith>, method=PLAIN, rip=10.163.195.83, lip=10.163.195.82, mpid=7483, session=<qfSzsb4qQQCto8NT>
> Feb  1 19:36:37 speedy dovecot: imap(rsmith): Disconnected: Logged out in=95 out=440Feb  1 19:37:24 speedy dovecot: imap(rsmith): Connection closed in=275 out=995
> Feb  1 19:37:27 speedy dovecot: imap-login: Login: user=<rsmith>, method=PLAIN, rip=10.163.195.83, lip=10.163.195.82, mpid=7485, session=<NAm1tL4qRQCto8NT>
> Feb  1 19:37:28 speedy dovecot: imap(rsmith): Disconnected: Logged out in=298 out=1130

please increase logging, see mail_debug at 
http://wiki2.dovecot.org/Logging
That will reveal, what mail location and inbox is used really.

> The maildir on my instance is located in /var/log/mail.

/var/__log__/mail ??

> The output of doveadm is as follows:
> root at speedy:/var/mail# doveadm user -u jsmithuserdb: jsmith  system_groups_user: jsmith  uid       : 1000  gid       : 1000  home      : /home/jsmith
> If that home variable is suppose to be the maildir folder it is wrong.

That looks good. About home vs. mail location see 
http://wiki2.dovecot.org/VirtualUsers/Home (applies to all users)
and http://wiki2.dovecot.org/MailLocation

> It should be /var/mail/jsmith.  If that is the problem, where or how do

Is /var/mail/jsmith a directory or a file?

If it is a directory, use something like:

mail_location = maildir:/var/mail/%n
- -or-
mail_location = maildir:/var/mail/%n/Maildir

depending on how the content of the directory looks like.

If it is a file, use

mail_location = maildir:~/Maildir:INBOX=/var/mail/%n

===

How does the userdb section of doveconf -n looks like?

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVrBb/Xz1H7kL/d9rAQJ3ewf9Hif5QHRuwTacc9vPEcRleE++OUpe9V21
nftpqOgDW0a+NX6FRXRABg/lBAP0fUzRN3RKgFmdBLL6N1ZCMyLYKPgyr+8Lcs39
oDJejNSZ+HSjGRIxzH4zbf2G8PDlxjpT02jybJKvmegKIMaPxV9Q4knYj5Zo2IQB
lRgL4j+2WnP1P7gKuvvjoX/TbVh7v9cREULDM5krXXkZJ+TtsTMT8v5uYAAbxWGl
gdfqVYOF+dLuHrGCe1KdVxvn1vDKuotSpKLFsgr4WluavOQwJx0Ws3/NaKvfj66d
7Xzkg2zR1VnQH9QsnsBeqWzHcm1hwJTlxLmdBwxF8KL/jdF8M1YLfw==
=sEW+
-----END PGP SIGNATURE-----


More information about the dovecot mailing list