[Dovecot] Dovecot does not access /var/mail when using Maildir
Hello,
I'm running debain on my machine with postfix, squirrelmail and dovecot installed. Everything works fine and I'm able to access my mail via squirrelmail and via Outlook with imap. However I want to create subfolders what is not possible. After reading I discovered that I use mbox and that maildir is needed in order to be able to use subfolders. I have created a Maildir folder with the maildirmake.dovecot command in my /home/mirko directory and corrected the owner. Now dovecot uses the Maildir and I can create subfolers. However my problem is that I don't receive Emails in my Inbox. Incoming mails are delivered to /var/mail/mirko, but when dovecot uses Maildir it doesn't access this. I have played with the default_mail_env settings in dovecot.conf which does influence the use of mbox or Maildir. However the problem remains: As soon as Maildir is used, the Inbox is empty and I don't receive Email.
Is there a way when Maildir is used to point dovecot to /var/mail/ for the incoming Email? Or do I something else wrong? Your help is appreciated.
Greetings, Mirko
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
mirko@mirkonet.nl wrote:
Hello,
I'm running debain on my machine with postfix, squirrelmail and dovecot installed. Everything works fine and I'm able to access my mail via squirrelmail and via Outlook with imap. However I want to create subfolders what is not possible. After reading I discovered that I use mbox and that maildir is needed in order to be able to use subfolders. I have created a Maildir folder with the maildirmake.dovecot command in my /home/mirko directory and corrected the owner. Now dovecot uses the Maildir and I can create subfolers. However my problem is that I don't receive Emails in my Inbox. Incoming mails are delivered to /var/mail/mirko, but when dovecot uses Maildir it doesn't access this. I have played with the default_mail_env settings in dovecot.conf which does influence the use of mbox or Maildir. However the problem remains: As soon as Maildir is used, the Inbox is empty and I don't receive Email.
Is there a way when Maildir is used to point dovecot to /var/mail/ for the incoming Email? Or do I something else wrong? Your help is appreciated.
Greetings, Mirko
Mirko,
I don't use Postfix, so I don't know specifically how to do this, but you'll need to tell Postfix (or more specifically whatever postfix uses for local mail delivery) to deliver to Maildir format files. Once you do this, everything should start working as you expect it to.
currently your local mail delivery agent is still configured to delivery to mbox format files and thus into /var/mail/
hope this helps
alan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFD6bnbE2gsBSKjZHQRArxeAJ93li6eB5jHkzPkEMtj4tmsSufVwwCdGqWd 4JyzviLWzNL6VNNDVWL02p0= =9Ml+ -----END PGP SIGNATURE-----
A Colleague of mine has fount the problem, so for others, here is the solution:
Remove in /etc/postfix/main.cf: mailbox_command = procmail -a "$EXTENSION"
This command will force all the mail to var/mail/spool and when removed it will delivered nicely to /home/mirko/Maildir/Inbox
Greetings, Mirko
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
mirko@mirkonet.nl wrote:
Hello,
I'm running debain on my machine with postfix, squirrelmail and dovecot installed. Everything works fine and I'm able to access my mail via squirrelmail and via Outlook with imap. However I want to create subfolders what is not possible. After reading I discovered that I use mbox and that maildir is needed in order to be able to use subfolders. I have created a Maildir folder with the maildirmake.dovecot command in my /home/mirko directory and corrected the owner. Now dovecot uses the Maildir and I can create subfolers. However my problem is that I don't receive Emails in my Inbox. Incoming mails are delivered to /var/mail/mirko, but when dovecot uses Maildir it doesn't access this. I have played with the default_mail_env settings in dovecot.conf which does influence the use of mbox or Maildir. However the problem remains: As soon as Maildir is used, the Inbox is empty and I don't receive Email.
Is there a way when Maildir is used to point dovecot to /var/mail/ for the incoming Email? Or do I something else wrong? Your help is appreciated.
Greetings, Mirko
Mirko,
I don't use Postfix, so I don't know specifically how to do this, but you'll need to tell Postfix (or more specifically whatever postfix uses for local mail delivery) to deliver to Maildir format files. Once you do this, everything should start working as you expect it to.
currently your local mail delivery agent is still configured to delivery to mbox format files and thus into /var/mail/
hope this helps
alan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFD6bnbE2gsBSKjZHQRArxeAJ93li6eB5jHkzPkEMtj4tmsSufVwwCdGqWd 4JyzviLWzNL6VNNDVWL02p0= =9Ml+ -----END PGP SIGNATURE-----
On 2006-02-08 13:57:06 +0100, mirko@mirkonet.nl wrote:
A Colleague of mine has fount the problem, so for others, here is the solution:
Remove in /etc/postfix/main.cf: mailbox_command = procmail -a "$EXTENSION"
possible solution but imho the wrong way.
This command will force all the mail to var/mail/spool and when removed it will delivered nicely to /home/mirko/Maildir/Inbox
[[[ # DELIVERY TO MAILBOX # # The home_mailbox parameter specifies the optional pathname of a # mailbox file relative to a user's home directory. The default # mailbox file is /var/spool/mail/user or /var/mail/user. Specify # "Maildir/" for qmail-style delivery (the / is required). # #home_mailbox = Mailbox # home_mailbox = Maildir/
# The mail_spool_directory parameter specifies the directory where # UNIX-style mailboxes are kept. The default setting depends on the # system type. # #mail_spool_directory = /var/mail #mail_spool_directory = /var/spool/mail ]]]
hope this helps
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
participants (3)
-
Alan Premselaar
-
Marcus Rueckert
-
mirko@mirkonet.nl