Patrick Ben Koetter
2008-Jan-27 17:48 UTC
[Dovecot] Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location
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
Jim Horner
2008-Jan-27 18:11 UTC
[Dovecot] Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location
On Sunday 27 January 2008 12:48:24 Patrick Ben Koetter wrote:> I am trying to tell Dovecot deliver to use $mail_location as the location> # Dovecot > # dovecot-ldap.conf > user_attrs > mailHomeDirectory=home,mailUidNumber=uid,mailGidNumber=gid,mailQuota=quota>maildir:storage,mail=mailHomeDirectoryIt is my understanding that mail_location only gets uses if no mail attribute is specified. In any case, it appears that the above perhaps should read mailHomeDirectory=mail. Also making the home and the mail directory the same has caused problems for others on this list; like odd files showing up as mail folders in the email client. Jim