[Dovecot] imap+unix users and pop3+virtual users

Wendell Turner wendell at pmei.com
Fri Dec 14 21:28:00 EET 2007


This should be simple, but I'm missing something.  My virtual
users cannot access their mail.

I would like Unix users to get their mail via imap which is
deposited in /var/spool/mail/username.  (This works.)

I would like virtual users to get their mail via pop3 which is
deposited in /var/spool/mail/vhosts/example.com/auser/mail/inbox
(postfix does in fact put the mail there).  Those users can get
authenticated via file /var/dovecot/passwd, but cannot retrieve
their mail.

The log message is shown below.  The file/directory is there,
but doesn't dovecot see it?

Thanks,

Wendell

--------------------

Info: POP3(auser at example.com): mbox: data=/var/spool/mail/vhosts/example.com/auser/mail/:INBOX=/var/mail/auser at example.com

Info: POP3(auser at example.com): mbox: root=/var/spool/mail/vhosts/example.com/auser/mail, index=/var/spool/mail/vhosts/example.com/auser/mail, inbox=/var/mail/auser at example.com

Info: POP3(auser at example.com): Mailbox init failed top=0/0, retr=0/0, del=0/0, size=0

--------------------

  /usr/sbin/dovecot -n

# 1.0.7: /etc/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot-info.log
protocols: pop3 imap imaps pop3s
ssl_cert_file: /etc/CA/cert.pem
ssl_key_file: /etc/CA/key.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: mbox:~/mail/:INBOX=/var/mail/%u
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
auth default:
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
    driver: pam
  passdb:
    driver: passwd-file
    args: /etc/dovecot/passwd
  userdb:
    driver: passwd
  userdb:
    driver: static
    args: uid=vmail gid=vmail home=/var/spool/mail/vhosts/%d/%n



More information about the dovecot mailing list