[Dovecot] Help with logging in and getting mail

Andrew Falanga af300wsm at gmail.com
Sat Dec 29 23:00:05 EET 2007


Hi,

Very new to dovecot and to using POP3/IMAP (from this perspective anyway).

First things first, per the instructions from the web site:

dovecot version: 1.0.5

dovecot config:
# 1.0.5: /usr/local/etc/dovecot.conf
protocols: imap pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
verbose_proctitle: yes
first_valid_gid: 0
mail_extra_groups: mail
mail_location: mbox:~/mail/:INBOX=/var/mail/%u
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh 
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh 
tb-extra-mailbox-sep
imap_client_workarounds(pop3): outlook-idle
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain digest-md5
  user: vmail
  passdb:
    driver: sql
    args: /usr/local/etc/dovecot-sql.conf
  userdb:
    driver: sql
    args: /usr/local/etc/dovecot-sql.conf


Please help me diagnose what is causing the following problem.  Essentially, 
this user is a virtual user.  I have it so that the system user, vmail, is 
the basket into which all virtual users e-mail goes.  If my understanding is 
correct (and please enlighten me if it's not), mail aliases are setup 
to "map" aliased names into a real account.  From there, dovecot will return 
e-mail to the virtual user based upon the "To" field of the e-mail, correct?

I have some aliases in my sendmail config that do just this.  From the error 
below, it would seem that dovecot is actually authenticating the virutual 
user "jdunkin" in this case, but can't get some directories made.  I've seen 
on my FreeBSD system that each system user has a "mail" file in the 
directory, /var/mail/<userid>.


What needs to be done further?  Also, how do I ensure that virtual users are 
able to get their mail as well as system users?

Dec 29 15:01:54 whitbap dovecot: pop3-login: Login: user=<jdunkin>, 
method=PLAIN, rip=71.221.168.29, lip=192.168.2.23
Dec 29 15:01:54 whitbap dovecot: POP3(jdunkin): 
mkdir_parents(/var/mail/vmail//mail) failed: Not a directory
Dec 29 15:01:54 whitbap dovecot: POP3(jdunkin): Failed to create storage with 
data: mbox:/var/mail/vmail//mail/:INBOX=/var/mail/jdunkin
Dec 29 15:01:54 whitbap dovecot: child 61793 (pop3) returned error 89

Thanks,
Andy


More information about the dovecot mailing list