-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi @ll, sorry i am new to dovecot so this may asked before i this in dovecot.conf protocols = pop3 imap ssl_disable = yes mail_extra_groups = mail valid_chroot_dirs = /usr/local/virtual/ default_mail_env = maildir:/usr/local/virtual/%d/%n disable_plaintext_auth = no protocol lda { postmaster_address = postmaster at test.de } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } auth default_with_listener { mechanisms = plain userdb sql { args = /etc/dovecot/dovecot-sql.conf } passdb sql { args = /etc/dovecot/dovecot-sql.conf } userdb prefetch { } socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = vmail group = mail } } } plugin { quota = dirsize:/usr/local/virtual/%d/%n convert_mail = maildir:/usr/local/virtual/%d/%n } this in dovecot-sql.conf driver = mysql connect = dbname=postfix user=postfixadmin host=localhost passworddefault_pass_scheme = PLAIN password_query = SELECT password FROM mailbox WHERE username = '%u' user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = '%u' the result for maildir is like test.de/robert/ in postfix master.cf # Dovecot LDA dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient} in main.cf dovecot_destination_recipient_limit = 1 virtual_transport = dovecot this all works nice but at the final deliver the mail cant get to the maildir with Sep 21 14:00:54 testserv deliver(robert at test.de): userdb(robert at test.de) didn't return a home directory it seems that the correct maildir path isnt reportet to deliver , cause either i need another query, or deliver must have a default path the setup works nice if i switch virtual_transport = virtual in main.cf ( cause i have the postfix vda patch ) sombody know this problem , and can help me out? dovecot version is 1.0.rc7 - -- Mit freundlichen Gruessen Best Regards Robert Schetterer robert_at_schetterer_dot_org Munich / Bavaria / Germany https://www.schetterer.org https://www.schetterer.com/public-gpg-robert-schetterer.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) iD8DBQFFEoFjNxddAhXBw7QRAkYyAJ0SmcNhQez7zLI2ncvfKjT6/8VGVACfSYbQ 5Y+ZM2DmjrVFnpRNvGu30Zo=+UuD -----END PGP SIGNATURE----- -- Diese Nachricht wurde auf Viren und andere gef?hrliche Inhalte untersucht und ist - aktuelle Virenscanner vorausgesetzt - sauber. -------------- next part -------------- A non-text attachment was scrubbed... Name: robert.vcf Type: text/x-vcard Size: 197 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20060921/9967a4d2/attachment-0002.vcf>
On 2006-09-21 14:11:15 +0200, Robert Schetterer wrote:> user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE > username = '%u'user_query = SELECT concat('/srv/mail/homes/', maildir) as home, concat('maildir:/srv/mail/', maildir) as mail, 12345 AS uid, 12345 AS gid FROM mailbox WHERE username = '%u' darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org