[Dovecot] Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location

Patrick Ben Koetter p at state-of-mind.de
Sun Jan 27 19:48:24 EET 2008


I am trying to tell Dovecot deliver to use $mail_location as the location to
store mail for system users. From the docs I've read
<http://wiki.dovecot.org/MailLocation> I believe this is possible, but mail to
my system users always gets delivered to their /home/<USERNAME> homedirectory.

Here's what I've done so far:

# Postfix main.cf
mailbox_command = /usr/lib/dovecot/deliver

# Dovecot
# dovecot-ldap.conf
user_attrs = mailHomeDirectory=home,mailUidNumber=uid,mailGidNumber=gid,mailQuota=quota=maildir:storage,mail=mailHomeDirectory

Above you can see, I query for $mail as documented in
<http://wiki.dovecot.org/UserDatabase>.

# dovecot.conf
# dovecot -n
# 1.0.5: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/ssl/mail.state-of-mind.de.crt
ssl_key_file: /etc/ssl/private/mail.state-of-mind.de.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
mail_extra_groups: mail
mail_location: maildir:~
mail_debug: yes
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): outlook-idle netscape-eoh delay-newmail
imap_client_workarounds(imap): outlook-idle netscape-eoh delay-newmail
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 login digest-md5 cram-md5 ntlm
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  socket:
    type: listen
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: virtual
      group: virtual

What am I missing?

TIA,

p at rick


-- 
state of mind
Agentur für Kommunikation, Design und Softwareentwicklung

Patrick Koetter            Tel: 089 45227227
Echinger Strasse 3         Fax: 089 45227226
85386 Eching               Web: http://www.state-of-mind.de

Amtsgericht München        Partnerschaftsregister PR 563


More information about the dovecot mailing list